From e71b5d2d2f139a7c4aa1e6e70be4aab787eaaa75 Mon Sep 17 00:00:00 2001 From: Karsten Suehring Date: Fri, 18 Jan 2019 12:12:22 +0100 Subject: [PATCH] remove macro JVET_L0081_VPDU_SPLIT_CONSTRAINTS --- source/Lib/CommonLib/CommonDef.h | 2 -- source/Lib/CommonLib/TypeDef.h | 1 - source/Lib/CommonLib/UnitPartitioner.cpp | 8 -------- source/Lib/EncoderLib/EncModeCtrl.cpp | 4 ---- 4 files changed, 15 deletions(-) diff --git a/source/Lib/CommonLib/CommonDef.h b/source/Lib/CommonLib/CommonDef.h index b8f966700..f8a0c092c 100644 --- a/source/Lib/CommonLib/CommonDef.h +++ b/source/Lib/CommonLib/CommonDef.h @@ -275,9 +275,7 @@ static const int MAX_TU_SIZE = 128; static const int MAX_LOG2_TU_SIZE_PLUS_ONE = 8; ///< log2(MAX_TU_SIZE) + 1 static const int MAX_NUM_PARTS_IN_CTU = ( ( MAX_CU_SIZE * MAX_CU_SIZE ) >> ( MIN_CU_LOG2 << 1 ) ); static const int MAX_TR_SIZE = MAX_CU_SIZE; -#if JVET_L0081_VPDU_SPLIT_CONSTRAINTS static const int MAX_TU_SIZE_FOR_PROFILE = 64; -#endif static const int MAX_LOG2_DIFF_CU_TR_SIZE = 2; static const int MAX_CU_TILING_PARTITIONS = 1 << ( MAX_LOG2_DIFF_CU_TR_SIZE << 1 ); diff --git a/source/Lib/CommonLib/TypeDef.h b/source/Lib/CommonLib/TypeDef.h index c426bbf4f..7b1e99f0a 100644 --- a/source/Lib/CommonLib/TypeDef.h +++ b/source/Lib/CommonLib/TypeDef.h @@ -59,7 +59,6 @@ #define JVET_L0285_8BIT_TRANSFORM_CORE 1 // Primary transform using 8-bit cores -#define JVET_L0081_VPDU_SPLIT_CONSTRAINTS 1 // VPDU constraints for binary and ternary partitions #define JVET_L0104_NO_4x4BI_INTER_CU 1 // Prohibit 4x4 bi-prediction for inter CU #define JVET_L0266_HMVP 1 //History-based MVP diff --git a/source/Lib/CommonLib/UnitPartitioner.cpp b/source/Lib/CommonLib/UnitPartitioner.cpp index 9dd51e2d0..a60ee6815 100644 --- a/source/Lib/CommonLib/UnitPartitioner.cpp +++ b/source/Lib/CommonLib/UnitPartitioner.cpp @@ -398,29 +398,21 @@ bool QTBTPartitioner::canSplit( const PartSplit split, const CodingStructure &cs { case CU_HORZ_SPLIT: if( area.height <= minBtSize || area.height > maxBtSize ) return false; -#if JVET_L0081_VPDU_SPLIT_CONSTRAINTS if( area.width > MAX_TU_SIZE_FOR_PROFILE && area.height <= MAX_TU_SIZE_FOR_PROFILE ) return false; -#endif break; case CU_VERT_SPLIT: if( area.width <= minBtSize || area.width > maxBtSize ) return false; -#if JVET_L0081_VPDU_SPLIT_CONSTRAINTS if( area.width <= MAX_TU_SIZE_FOR_PROFILE && area.height > MAX_TU_SIZE_FOR_PROFILE ) return false; -#endif break; case CU_TRIH_SPLIT: if( ( cs.sps->getSpsNext().getMTTMode() & 1 ) != 1 ) return false; if( area.height <= 2 * minTtSize || area.height > maxTtSize || area.width > maxTtSize) return false; -#if JVET_L0081_VPDU_SPLIT_CONSTRAINTS if( area.width > MAX_TU_SIZE_FOR_PROFILE || area.height > MAX_TU_SIZE_FOR_PROFILE ) return false; -#endif break; case CU_TRIV_SPLIT: if( ( cs.sps->getSpsNext().getMTTMode() & 1 ) != 1 ) return false; if( area.width <= 2 * minTtSize || area.width > maxTtSize || area.height > maxTtSize) return false; -#if JVET_L0081_VPDU_SPLIT_CONSTRAINTS if( area.width > MAX_TU_SIZE_FOR_PROFILE || area.height > MAX_TU_SIZE_FOR_PROFILE ) return false; -#endif break; default: break; diff --git a/source/Lib/EncoderLib/EncModeCtrl.cpp b/source/Lib/EncoderLib/EncModeCtrl.cpp index 84b29a76f..149bbc1f5 100644 --- a/source/Lib/EncoderLib/EncModeCtrl.cpp +++ b/source/Lib/EncoderLib/EncModeCtrl.cpp @@ -1502,15 +1502,11 @@ bool EncModeCtrlMTnoRQT::tryMode( const EncTestMode& encTestmode, const CodingSt { unsigned maxBTD = cs.pcv->getMaxBtDepth( slice, partitioner.chType ); const CodingUnit *cuBR = bestCS->cus.back(); -#if JVET_L0081_VPDU_SPLIT_CONSTRAINTS unsigned height = partitioner.currArea().lumaSize().height; -#endif if( bestCU && ( ( bestCU->btDepth == 0 && maxBTD >= ( slice.isIntra() ? 3 : 2 ) ) || ( bestCU->btDepth == 1 && cuBR && cuBR->btDepth == 1 && maxBTD >= ( slice.isIntra() ? 4 : 3 ) ) ) -#if JVET_L0081_VPDU_SPLIT_CONSTRAINTS && ( width <= MAX_TU_SIZE_FOR_PROFILE && height <= MAX_TU_SIZE_FOR_PROFILE ) -#endif && cuECtx.get( DID_HORZ_SPLIT ) && cuECtx.get( DID_VERT_SPLIT ) ) { return false; -- GitLab