Ticket #312: TEncEntropy_t312.patch

File TEncEntropy_t312.patch, 819 bytes (added by zhyang123, 12 years ago)
  • TEncEntropy.cpp

     
    10011001    if( uiLog2TrafoSize <= pcCU->getSlice()->getSPS()->getQuadtreeTULog2MaxSize() )
    10021002    {
    10031003      const UInt uiTrDepthCurr = uiDepth - pcCU->getDepth( uiAbsPartIdx );
    1004       const Bool bFirstCbfOfCU = uiLog2TrafoSize == pcCU->getSlice()->getSPS()->getQuadtreeTULog2MaxSize() || uiTrDepthCurr == 0;
     1004          const Bool bFirstCbfOfCU = (uiLog2TrafoSize == pcCU->getSlice()->getSPS()->getQuadtreeTULog2MaxSize() && (uiLog2TrafoSize > 2 || uiInnerQuadIdx == 3))|| uiTrDepthCurr == 0;
    10051005      if( bFirstCbfOfCU || uiLog2TrafoSize > 2 )
    10061006      {
    10071007        if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepthCurr - 1 ) )