Ignore:
Timestamp:
5 Apr 2015, 22:37:43 (9 years ago)
Author:
tech
Message:

Disabled chroma for depth.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-13.1-dev0/source/Lib/TLibDecoder/TDecEntropy.cpp

    r1163 r1169  
    176176    decodeIntraDirModeLuma  ( pcCU, uiAbsPartIdx, uiDepth );
    177177#if H_3D_DIM_SDC
     178#if H_3D_DISABLE_CHROMA
     179    if(!pcCU->getSDCFlag(uiAbsPartIdx) && !pcCU->getSlice()->getIsDepth() )
     180#else
    178181    if(!pcCU->getSDCFlag(uiAbsPartIdx))
     182#endif
    179183#endif
    180184    decodeIntraDirModeChroma( pcCU, uiAbsPartIdx, uiDepth );
     
    541545Void TDecEntropy::xDecodeTransform( TComDataCU* pcCU, UInt offsetLuma, UInt offsetChroma, UInt uiAbsPartIdx, UInt uiDepth, UInt width, UInt height, UInt uiTrIdx, Bool& bCodeDQP, Int quadtreeTULog2MinSizeInCU)
    542546{
     547
     548#if H_MV_ENC_DEC_TRAC
     549  UInt uiLPelX   = pcCU->getCUPelX() + g_auiRasterToPelX[ g_auiZscanToRaster[uiAbsPartIdx] ];
     550  UInt uiTPelY   = pcCU->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiAbsPartIdx] ];
     551 
     552  DTRACE_TU_S("=========== transform_tree ===========\n")
     553  DTRACE_TU("x0", uiLPelX)
     554  DTRACE_TU("x1", uiTPelY)
     555  DTRACE_TU("log2TrafoSize", g_uiMaxCUWidth>>uiDepth)
     556  DTRACE_TU("trafoDepth"  , uiDepth)
     557#endif
     558
    543559  UInt uiSubdiv;
    544560  const UInt uiLog2TrafoSize = g_aucConvertToBit[pcCU->getSlice()->getSPS()->getMaxCUWidth()]+2 - uiDepth;
     
    593609    if( bFirstCbfOfCU || uiLog2TrafoSize > 2 )
    594610    {
     611#if H_3D_DISABLE_CHROMA
     612      if (!pcCU->getSlice()->getIsDepth() )     
     613      {
    595614      if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth - 1 ) )
    596615      {
     
    601620        m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth, uiDepth );
    602621      }
     622    }
     623    else
     624    {
     625        if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth - 1 ) )
     626        {
     627          pcCU->setCbfSubParts( 0, TEXT_CHROMA_U, uiAbsPartIdx, uiTrDepth - 1 );
     628        }
     629        if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth - 1 ) )
     630        {
     631          pcCU->setCbfSubParts( 0, TEXT_CHROMA_V, uiAbsPartIdx, uiTrDepth - 1 );
     632        }
     633      }
     634#else
     635      if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth - 1 ) )
     636      {
     637        m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth, uiDepth );
     638      }
     639      if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth - 1 ) )
     640      {
     641        m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth, uiDepth );
     642      }
     643#endif
    603644    }
    604645    else
     
    762803    assert( pcCU->getTransformIdx(uiAbsPartIdx) == 0 );
    763804    assert( pcCU->getCbf(uiAbsPartIdx, TEXT_LUMA) == 1 );
     805#if H_3D_DISABLE_CHROMA
     806    if (!pcCU->getSlice()->getIsDepth() )
     807    {
     808      assert( pcCU->getCbf(uiAbsPartIdx, TEXT_CHROMA_U) == 1 );
     809      assert( pcCU->getCbf(uiAbsPartIdx, TEXT_CHROMA_V) == 1 );
     810    }
     811#else
    764812    assert( pcCU->getCbf(uiAbsPartIdx, TEXT_CHROMA_U) == 1 );
    765813    assert( pcCU->getCbf(uiAbsPartIdx, TEXT_CHROMA_V) == 1 );
     814#endif
    766815  }
    767816
Note: See TracChangeset for help on using the changeset viewer.