Skip to content
Snippets Groups Projects
Commit 15342a40 authored by Adam Wieckowski's avatar Adam Wieckowski
Browse files

fixed if-embedding and parenthases

parent facb343b
No related branches found
No related tags found
No related merge requests found
......@@ -339,10 +339,18 @@ void QTBTPartitioner::canSplit( const CodingStructure &cs, bool& canNo, bool& ca
canBv = parlSplit != CU_VERT_SPLIT;
}
if( canBtt ) if( ( area.width <= minBtSize && area.height <= minBtSize )
&& ( ( area.width <= minTtSize && area.height <= minTtSize ) || cs.sps->getSpsNext().getMTTMode() == 0 ) ) canBtt = false;
if( canBtt ) if( ( area.width > maxBtSize || area.height > maxBtSize )
&& ( ( area.width > maxTtSize || area.height > maxTtSize ) || cs.sps->getSpsNext().getMTTMode() == 0 ) ) canBtt = false;
if( canBtt && ( area.width <= minBtSize && area.height <= minBtSize )
&& ( ( area.width <= minTtSize && area.height <= minTtSize )
|| cs.sps->getSpsNext().getMTTMode() == 0 ) )
{
canBtt = false;
}
if( canBtt && ( area.width > maxBtSize || area.height > maxBtSize )
&& ( ( area.width > maxTtSize || area.height > maxTtSize )
|| cs.sps->getSpsNext().getMTTMode() == 0 ) )
{
canBtt = false;
}
if( !canBtt )
{
......
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