Ignore:
Timestamp:
3 Feb 2014, 11:35:43 (10 years ago)
Author:
rwth
Message:
  • first version of DBBP (requires some cleanup)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-9.3-dev1-RWTH/source/Lib/TLibEncoder/TEncEntropy.cpp

    r773 r816  
    240240    uiAbsPartIdx = 0;
    241241  }
     242 
     243#if H_3D_DBBP
     244  PartSize eVirtualPartSize = pcCU->getPartitionSize(uiAbsPartIdx);
     245  if( pcCU->getDBBPFlag(uiAbsPartIdx) )
     246  {
     247    // temporarily change partition size for DBBP blocks
     248    pcCU->setPartSizeSubParts(RWTH_DBBP_PACK_MODE, uiAbsPartIdx, uiDepth);
     249  }
     250#endif
     251 
    242252  m_pcEntropyCoderIf->codePartSize( pcCU, uiAbsPartIdx, uiDepth );
     253 
     254#if H_3D_DBBP
     255  if( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) && pcCU->getPartitionSize(uiAbsPartIdx) == RWTH_DBBP_PACK_MODE )
     256  {
     257    encodeDBBPFlag(pcCU, uiAbsPartIdx, bRD);
     258   
     259    if( pcCU->getDBBPFlag(uiAbsPartIdx) )
     260    {
     261      AOF( pcCU->getPartitionSize(uiAbsPartIdx) == RWTH_DBBP_PACK_MODE );
     262      // restore virtual partition size for DBBP blocks
     263      pcCU->setPartSizeSubParts(eVirtualPartSize, uiAbsPartIdx, uiDepth);
     264    }
     265  }
     266#endif
    243267}
    244268
     
    873897#endif
    874898
     899#if H_3D_DBBP
     900Void TEncEntropy::encodeDBBPFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD )
     901{
     902  if( bRD )
     903  {
     904    uiAbsPartIdx = 0;
     905  }
     906  m_pcEntropyCoderIf->codeDBBPFlag( pcCU, uiAbsPartIdx );
     907}
     908#endif
     909
    875910//! \}
Note: See TracChangeset for help on using the changeset viewer.