Ignore:
Timestamp:
2 Mar 2013, 09:25:00 (12 years ago)
Author:
seregin
Message:

port simulcast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncEntropy.cpp

    r51 r54  
    166166  }
    167167
     168#if INTRA_BL
     169  if( pcCU->isIntraBL( uiAbsPartIdx ) )
     170  {
     171    return;
     172  }
     173#endif
     174
    168175  m_pcEntropyCoderIf->codePredMode( pcCU, uiAbsPartIdx );
    169176}
     
    244251    }
    245252  }
     253#if INTRA_BL
     254    if( pcCU->isIntra(uiAbsPartIdx) && pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_NxN && uiDepth == pcCU->getDepth(uiAbsPartIdx) )
     255#else
    246256 
    247257  if( pcCU->getPredictionMode(uiAbsPartIdx) == MODE_INTRA && pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_NxN && uiDepth == pcCU->getDepth(uiAbsPartIdx) )
     258#endif
    248259  {
    249260    assert( uiSubdiv );
     
    331342    }
    332343   
     344#if INTRA_BL
     345#if NO_RESIDUAL_FLAG_FOR_BLPRED
     346    if( ( !pcCU->isIntra( uiAbsPartIdx ) || pcCU->isIntraBL(uiAbsPartIdx)) && uiDepth == pcCU->getDepth( uiAbsPartIdx ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, 0 ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, 0 ) )
     347#else
     348    if( ( !pcCU->isIntra( uiAbsPartIdx ) ) && uiDepth == pcCU->getDepth( uiAbsPartIdx ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, 0 ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, 0 ) )
     349#endif
     350#else
    333351    if( pcCU->getPredictionMode(uiAbsPartIdx) != MODE_INTRA && uiDepth == pcCU->getDepth( uiAbsPartIdx ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, 0 ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, 0 ) )
     352#endif
    334353    {
    335354      assert( pcCU->getCbf( uiAbsPartIdx, TEXT_LUMA, 0 ) );
     
    412431Void TEncEntropy::encodePredInfo( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD )
    413432{
     433#if INTRA_BL
     434  assert ( !pcCU->isIntraBL( uiAbsPartIdx ) );
     435#endif
    414436  if( bRD )
    415437  {
     
    585607  UInt uiChromaOffset = uiLumaOffset>>2;
    586608   
     609#if NO_RESIDUAL_FLAG_FOR_BLPRED
     610  if( pcCU->isIntra(uiAbsPartIdx) && !pcCU->isIntraBL(uiAbsPartIdx) )
     611#else
    587612  if( pcCU->isIntra(uiAbsPartIdx) )
     613#endif
    588614  {
    589615    DTRACE_CABAC_VL( g_nSymbolCounter++ )
     
    733759}
    734760
     761#if INTRA_BL
     762Void TEncEntropy::encodeIntraBLFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD )
     763{
     764  if( pcCU->getLayerId() == 0 )
     765  {
     766    return;
     767  }
     768
     769  if( bRD )
     770  {
     771    uiAbsPartIdx = 0;
     772  }
     773  m_pcEntropyCoderIf->codeIntraBLFlag( pcCU, uiAbsPartIdx );
     774}
     775#endif
    735776//! \}
Note: See TracChangeset for help on using the changeset viewer.