Commit acf8643e authored by Karsten Suehring's avatar Karsten Suehring

fix maximum ternary split size as reported in issue #87

Uses option #1 re-defining the meaning of maxTtSize being the longest side of the partition.
parent 971390c9
......@@ -472,11 +472,11 @@ bool QTBTPartitioner::canSplit( const PartSplit split, const CodingStructure &cs
break;
case CU_TRIH_SPLIT:
if( ( cs.sps->getSpsNext().getMTTMode() & 1 ) != 1 ) return false;
if( area.height <= 2 * minTtSize || area.height > maxTtSize ) return false;
if( area.height <= 2 * minTtSize || area.height > maxTtSize || area.width > maxTtSize) return false;
break;
case CU_TRIV_SPLIT:
if( ( cs.sps->getSpsNext().getMTTMode() & 1 ) != 1 ) return false;
if( area.width <= 2 * minTtSize || area.width > maxTtSize ) return false;
if( area.width <= 2 * minTtSize || area.width > maxTtSize || area.height > maxTtSize) return false;
break;
default:
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment