Commit bc3fd6d8 authored by Frank Bossen's avatar Frank Bossen

Merge branch 'ternary-split' into 'master'

Ternary split: fix for issue #87

See merge request !111
parents 971390c9 acf8643e
Pipeline #111 passed with stage
......@@ -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