Skip to content
Snippets Groups Projects
Commit 32eea0f3 authored by Yin Zhao's avatar Yin Zhao Committed by Xiang Li
Browse files

JVET-P0063: fix local dual tree on split condition

parent 1b2b6b19
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,8 @@
#define JVET_P0111_CHROMA_422_FIX 1 // JVET-P0422: Bug fix of chroma 422 intra mode mapping
#define JVET_P0063_LDT_SPLIT_FIX 1 // JVET-P0063: Fix local dual tree on BT/TT split conditions in inter coding region
#define JVET_P0329_PLANAR_SIMPLIFICATION 1 // JVET-P0329: simplify planar prediction by comparison removal
#define JVET_P0516_PLT_BINARIZATION 1 // JVET-P0516: PLT is always signaled when pred mode is euqal to 1 (intra mode)
......
......@@ -435,6 +435,9 @@ void QTBTPartitioner::canSplit( const CodingStructure &cs, bool& canNo, bool& ca
if( area.width <= minBtSize ) canBv = false;
if( area.width <= MAX_TB_SIZEY && area.height > MAX_TB_SIZEY ) canBv = false;
if( chType == CHANNEL_TYPE_CHROMA && areaC.width * areaC.height <= MIN_DUALTREE_CHROMA_SIZE ) canBv = false;
#if JVET_P0063_LDT_SPLIT_FIX
if( modeType == MODE_TYPE_INTER && area.width * area.height == 32 ) canBv = canBh = false;
#endif
if( area.height <= 2 * minTtSize || area.height > maxTtSize || area.width > maxTtSize )
canTh = false;
if( area.width > MAX_TB_SIZEY || area.height > MAX_TB_SIZEY ) canTh = false;
......@@ -443,6 +446,9 @@ void QTBTPartitioner::canSplit( const CodingStructure &cs, bool& canNo, bool& ca
canTv = false;
if( area.width > MAX_TB_SIZEY || area.height > MAX_TB_SIZEY ) canTv = false;
if( chType == CHANNEL_TYPE_CHROMA && areaC.width * areaC.height <= MIN_DUALTREE_CHROMA_SIZE*2 ) canTv = false;
#if JVET_P0063_LDT_SPLIT_FIX
if( modeType == MODE_TYPE_INTER && area.width * area.height == 64 ) canTv = canTh = false;
#endif
}
bool QTBTPartitioner::canSplit( const PartSplit split, const CodingStructure &cs )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment