Changeset 54 in SHVCSoftware for branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncEntropy.cpp
- Timestamp:
- 2 Mar 2013, 09:25:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncEntropy.cpp
r51 r54 166 166 } 167 167 168 #if INTRA_BL 169 if( pcCU->isIntraBL( uiAbsPartIdx ) ) 170 { 171 return; 172 } 173 #endif 174 168 175 m_pcEntropyCoderIf->codePredMode( pcCU, uiAbsPartIdx ); 169 176 } … … 244 251 } 245 252 } 253 #if INTRA_BL 254 if( pcCU->isIntra(uiAbsPartIdx) && pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_NxN && uiDepth == pcCU->getDepth(uiAbsPartIdx) ) 255 #else 246 256 247 257 if( pcCU->getPredictionMode(uiAbsPartIdx) == MODE_INTRA && pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_NxN && uiDepth == pcCU->getDepth(uiAbsPartIdx) ) 258 #endif 248 259 { 249 260 assert( uiSubdiv ); … … 331 342 } 332 343 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 333 351 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 334 353 { 335 354 assert( pcCU->getCbf( uiAbsPartIdx, TEXT_LUMA, 0 ) ); … … 412 431 Void TEncEntropy::encodePredInfo( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD ) 413 432 { 433 #if INTRA_BL 434 assert ( !pcCU->isIntraBL( uiAbsPartIdx ) ); 435 #endif 414 436 if( bRD ) 415 437 { … … 585 607 UInt uiChromaOffset = uiLumaOffset>>2; 586 608 609 #if NO_RESIDUAL_FLAG_FOR_BLPRED 610 if( pcCU->isIntra(uiAbsPartIdx) && !pcCU->isIntraBL(uiAbsPartIdx) ) 611 #else 587 612 if( pcCU->isIntra(uiAbsPartIdx) ) 613 #endif 588 614 { 589 615 DTRACE_CABAC_VL( g_nSymbolCounter++ ) … … 733 759 } 734 760 761 #if INTRA_BL 762 Void 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 735 776 //! \}
Note: See TracChangeset for help on using the changeset viewer.