Ticket #60: bugfix_MAX_TR_SPLIT_Intra.patch

File bugfix_MAX_TR_SPLIT_Intra.patch, 935 bytes (added by tpoirier, 8 years ago)
  • source/Lib/EncoderLib/IntraSearch.cpp

     
    15241524{
    15251525  const UnitArea &currArea  = partitioner.currArea();
    15261526  TransformUnit &currTU     = *cs.getTU( currArea.blocks[partitioner.chType], partitioner.chType );
    1527 #if HEVC_USE_RQT
     1527#if HEVC_USE_RQT || ENABLE_BMS
    15281528  UInt      currDepth       = partitioner.currTrDepth;
    1529 #endif
    1530 #if HEVC_USE_RQT
    15311529  const Bool subdiv         = currTU.depth > currDepth;
    15321530
    15331531  if (subdiv)
    15341532  {
     1533#if ENABLE_BMS
     1534    if (partitioner.canSplit(TU_MAX_TR_SPLIT, cs))
     1535    {
     1536      partitioner.splitCurrArea(TU_MAX_TR_SPLIT, cs);
     1537    }
     1538    else
     1539#endif
     1540#if HEVC_USE_RQT
    15351541    partitioner.splitCurrArea( TU_QUAD_SPLIT, cs );
     1542#else
     1543      THROW("Implicit TU split not available!");
     1544#endif
    15361545
    15371546    do
    15381547    {