Changeset 319 in SHVCSoftware
- Timestamp:
- 2 Aug 2013, 22:20:38 (11 years ago)
- Location:
- branches/SHM-3.0-dev/source/Lib
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.0-dev/source/Lib/TLibCommon/TComDataCU.cpp
r318 r319 4019 4019 } 4020 4020 4021 #if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED4021 #if INTRA_BL 4022 4022 Void TComDataCU::getBaseLumaBlk ( UInt uiWidth, UInt uiHeight, UInt uiAbsPartIdx, Pel* piPred, UInt uiStride ) 4023 4023 { -
branches/SHM-3.0-dev/source/Lib/TLibCommon/TComDataCU.h
r317 r319 489 489 // ------------------------------------------------------------------------------------------------------------------- 490 490 491 #if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED491 #if INTRA_BL 492 492 Void getBaseLumaBlk ( UInt uiWidth, UInt uiHeight, UInt uiAbsPartIdx, Pel* piPred, UInt uiStride ); 493 493 Void getBaseChromaBlk ( UInt uiWidth, UInt uiHeight, UInt uiAbsPartIdx, Pel* piPred, UInt uiStride, UInt uiChromaId ); -
branches/SHM-3.0-dev/source/Lib/TLibCommon/TComPrediction.cpp
r313 r319 408 408 } 409 409 410 #if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED410 #if INTRA_BL 411 411 Void TComPrediction::getBaseBlk( TComDataCU* pcCU, TComYuv* pcYuvPred, Int iPartAddr, Int iWidth, Int iHeight ) 412 412 { -
branches/SHM-3.0-dev/source/Lib/TLibCommon/TComTrQuant.cpp
r313 r319 1314 1314 Int scalingListType = (pcCU->isIntra(uiAbsPartIdx) ? 0 : 3) + g_eTTable[(Int)eTxt]; 1315 1315 assert(scalingListType < 6); 1316 #if NO_RESIDUAL_FLAG_FOR_BLPRED1317 if(pcCU->isIntraBL(uiAbsPartIdx) && eTxt == TEXT_LUMA)1318 {1319 invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, DC_IDX, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType, pcCU->getTransformSkip(uiAbsPartIdx, eTxt) );1320 }1321 else1322 {1323 invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, REG_DCT, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType, pcCU->getTransformSkip(uiAbsPartIdx, eTxt) );1324 }1325 #else1326 1316 invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, REG_DCT, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType, pcCU->getTransformSkip(uiAbsPartIdx, eTxt) ); 1327 #endif1328 1317 } 1329 1318 else … … 1809 1798 Int ui16CtxCbf = 0; 1810 1799 Int iBestLastIdxP1 = 0; 1811 #if NO_RESIDUAL_FLAG_FOR_BLPRED1812 if( (!pcCU->isIntra( uiAbsPartIdx ) || pcCU->isIntraBL( uiAbsPartIdx )) && eTType == TEXT_LUMA && pcCU->getTransformIdx( uiAbsPartIdx ) == 0 )1813 #else1814 1800 if( !pcCU->isIntra( uiAbsPartIdx ) && eTType == TEXT_LUMA && pcCU->getTransformIdx( uiAbsPartIdx ) == 0 ) 1815 #endif1816 1801 { 1817 1802 ui16CtxCbf = 0; -
branches/SHM-3.0-dev/source/Lib/TLibCommon/TComYuv.cpp
r313 r319 184 184 } 185 185 186 #if NO_RESIDUAL_FLAG_FOR_BLPRED187 Void TComYuv::copyFromPicLuma ( TComPicYuv* pcPicYuvSrc, UInt iCuAddr, UInt uiZorderIdxInCU, UInt uiAbsZorderIdx, UInt uiWidth, UInt uiHeight )188 {189 Int y;190 191 Pel* pDst = getLumaAddr(uiAbsZorderIdx);192 Pel* pSrc = pcPicYuvSrc->getLumaAddr ( iCuAddr, uiZorderIdxInCU + uiAbsZorderIdx );193 194 UInt iDstStride = getStride();195 UInt iSrcStride = pcPicYuvSrc->getStride();196 for ( y = uiHeight; y != 0; y-- )197 {198 ::memcpy( pDst, pSrc, sizeof(Pel)*uiWidth);199 pDst += iDstStride;200 pSrc += iSrcStride;201 }202 }203 204 Void TComYuv::copyFromPicChroma( TComPicYuv* pcPicYuvSrc, UInt iCuAddr, UInt uiZorderIdxInCU, UInt uiAbsZorderIdx, UInt uiCWidth, UInt uiCHeight, UInt uiChromaId )205 {206 Int y;207 208 if (!uiChromaId)209 {210 Pel* pDstU = getCbAddr(uiAbsZorderIdx);211 Pel* pSrcU = pcPicYuvSrc->getCbAddr( iCuAddr, uiZorderIdxInCU + uiAbsZorderIdx );212 213 UInt iDstStride = getCStride();214 UInt iSrcStride = pcPicYuvSrc->getCStride();215 for ( y = uiCHeight; y != 0; y-- )216 {217 ::memcpy( pDstU, pSrcU, sizeof(Pel)*(uiCWidth) );218 pSrcU += iSrcStride;219 pDstU += iDstStride;220 }221 }222 else223 {224 Pel* pDstV = getCrAddr(uiAbsZorderIdx);225 Pel* pSrcV = pcPicYuvSrc->getCrAddr( iCuAddr, uiZorderIdxInCU + uiAbsZorderIdx );226 227 UInt iDstStride = getCStride();228 UInt iSrcStride = pcPicYuvSrc->getCStride();229 for ( y = uiCHeight; y != 0; y-- )230 {231 ::memcpy( pDstV, pSrcV, sizeof(Pel)*(uiCWidth) );232 pSrcV += iSrcStride;233 pDstV += iDstStride;234 }235 }236 }237 #endif238 239 186 Void TComYuv::copyToPartYuv( TComYuv* pcYuvDst, UInt uiDstPartIdx ) 240 187 { -
branches/SHM-3.0-dev/source/Lib/TLibCommon/TComYuv.h
r313 r319 115 115 Void copyFromPicLuma ( TComPicYuv* pcPicYuvSrc, UInt iCuAddr, UInt uiAbsZorderIdx ); 116 116 Void copyFromPicChroma ( TComPicYuv* pcPicYuvSrc, UInt iCuAddr, UInt uiAbsZorderIdx ); 117 #if NO_RESIDUAL_FLAG_FOR_BLPRED118 Void copyFromPicLuma ( TComPicYuv* pcPicYuvSrc, UInt iCuAddr, UInt uiZorderIdxInCU, UInt uiAbsZorderIdx, UInt uiWidth, UInt uiHeight );119 Void copyFromPicChroma( TComPicYuv* pcPicYuvSrc, UInt iCuAddr, UInt uiZorderIdxInCU, UInt uiAbsZorderIdx, UInt uiCWidth, UInt uiCHeight, UInt uiChromaId );120 #endif121 117 122 118 // Copy Small YUV buffer to the part of other Big YUV buffer -
branches/SHM-3.0-dev/source/Lib/TLibCommon/TypeDef.h
r318 r319 119 119 #if INTRA_BL 120 120 #define INTRA_BL_DST4x4 1 ///< L0067/L0204: DST4x4 for Intra BL 121 #define NO_RESIDUAL_FLAG_FOR_BLPRED 1 ///< L0437: Root cbf for Intra_BL122 121 123 122 #endif -
branches/SHM-3.0-dev/source/Lib/TLibDecoder/TDecCu.cpp
r313 r319 442 442 #if INTRA_BL 443 443 case MODE_INTRA_BL: 444 #if NO_RESIDUAL_FLAG_FOR_BLPRED445 xReconIntraBL( m_ppcCU[uiDepth], uiAbsPartIdx, uiDepth );446 #else447 444 xReconIntraQT( m_ppcCU[uiDepth], uiAbsPartIdx, uiDepth ); 448 #endif449 445 break; 450 446 #endif … … 516 512 517 513 //===== get prediction signal ===== 518 #if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED514 #if INTRA_BL 519 515 if(pcCU->isIntraBL ( uiAbsPartIdx ) ) 520 516 { … … 607 603 608 604 //===== get prediction signal ===== 609 #if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED605 #if INTRA_BL 610 606 if(pcCU->isIntraBL ( uiAbsPartIdx ) ) 611 607 { … … 930 926 931 927 } 932 933 #if NO_RESIDUAL_FLAG_FOR_BLPRED934 Void935 TDecCu::xReconIntraBL( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )936 {937 m_ppcYuvReco[uiDepth]->copyFromPicLuma ( pcCU->getSlice()->getFullPelBaseRec(m_layerId - 1), pcCU->getAddr(), pcCU->getZorderIdxInCU(), 0, pcCU->getWidth(0), pcCU->getHeight(0));938 m_ppcYuvReco[uiDepth]->copyFromPicChroma( pcCU->getSlice()->getFullPelBaseRec(m_layerId - 1), pcCU->getAddr(), pcCU->getZorderIdxInCU(), 0, (pcCU->getWidth(0)>>1), (pcCU->getHeight(0)>>1), 0);939 m_ppcYuvReco[uiDepth]->copyFromPicChroma( pcCU->getSlice()->getFullPelBaseRec(m_layerId - 1), pcCU->getAddr(), pcCU->getZorderIdxInCU(), 0, (pcCU->getWidth(0)>>1), (pcCU->getHeight(0)>>1), 1);940 941 // inter recon942 xDecodeInterTexture( pcCU, 0, uiDepth );943 944 // clip for only non-zero cbp case945 if ( ( pcCU->getCbf( 0, TEXT_LUMA ) ) || ( pcCU->getCbf( 0, TEXT_CHROMA_U ) ) || ( pcCU->getCbf(0, TEXT_CHROMA_V ) ) )946 {947 m_ppcYuvReco[uiDepth]->addClip( m_ppcYuvReco[uiDepth], m_ppcYuvResi[uiDepth], 0, pcCU->getWidth( 0 ) );948 }949 else950 {951 m_ppcYuvReco[uiDepth]->copyPartToPartYuv( m_ppcYuvReco[uiDepth],0, pcCU->getWidth( 0 ),pcCU->getHeight( 0 ));952 }953 }954 #endif955 956 928 //! \} -
branches/SHM-3.0-dev/source/Lib/TLibDecoder/TDecCu.h
r313 r319 122 122 Void xIntraRecLumaBlk ( TComDataCU* pcCU, UInt uiTrDepth, UInt uiAbsPartIdx, TComYuv* pcRecoYuv, TComYuv* pcPredYuv, TComYuv* pcResiYuv ); 123 123 Void xIntraRecChromaBlk ( TComDataCU* pcCU, UInt uiTrDepth, UInt uiAbsPartIdx, TComYuv* pcRecoYuv, TComYuv* pcPredYuv, TComYuv* pcResiYuv, UInt uiChromaId ); 124 #if NO_RESIDUAL_FLAG_FOR_BLPRED125 Void xReconIntraBL ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );126 #endif127 124 128 125 Void xReconPCM ( TComDataCU* pcCU, UInt uiDepth ); -
branches/SHM-3.0-dev/source/Lib/TLibDecoder/TDecEntropy.cpp
r313 r319 451 451 pcCU->setCbfSubParts ( 0, TEXT_LUMA, uiAbsPartIdx, uiDepth ); 452 452 #if INTRA_BL 453 #if NO_RESIDUAL_FLAG_FOR_BLPRED454 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 ) )455 #else456 453 if( ( !pcCU->isIntra(uiAbsPartIdx) ) && uiDepth == pcCU->getDepth( uiAbsPartIdx ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, 0 ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, 0 ) ) 457 #endif458 454 #else 459 455 if( pcCU->getPredictionMode(uiAbsPartIdx) != MODE_INTRA && uiDepth == pcCU->getDepth( uiAbsPartIdx ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, 0 ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, 0 ) ) … … 556 552 UInt uiChromaOffset = uiLumaOffset>>2; 557 553 558 #if NO_RESIDUAL_FLAG_FOR_BLPRED559 if( pcCU->isIntra(uiAbsPartIdx) && !pcCU->isIntraBL(uiAbsPartIdx) )560 #else561 554 if( pcCU->isIntra(uiAbsPartIdx) ) 562 #endif563 555 { 564 556 } -
branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncCu.cpp
r313 r319 1889 1889 1890 1890 m_pcPredSearch->setBaseRecPic( m_pcPicYuvRecBase ); 1891 #if NO_RESIDUAL_FLAG_FOR_BLPRED1892 rpcTempCU->setDepthSubParts( uiDepth, 0 );1893 // rpcTempCU->setLumaIntraDirSubParts( DC_IDX, 0, uiDepth );1894 // rpcTempCU->setChromIntraDirSubParts( DC_IDX, 0, uiDepth );1895 m_ppcPredYuvTemp[uiDepth]->copyFromPicLuma ( rpcTempCU->getSlice()->getFullPelBaseRec(rpcTempCU->getLayerId() - 1), rpcTempCU->getAddr(), rpcTempCU->getZorderIdxInCU(), 0, rpcTempCU->getWidth(0), rpcTempCU->getHeight(0));1896 m_ppcPredYuvTemp[uiDepth]->copyFromPicChroma( rpcTempCU->getSlice()->getFullPelBaseRec(rpcTempCU->getLayerId() - 1), rpcTempCU->getAddr(), rpcTempCU->getZorderIdxInCU(), 0, (rpcTempCU->getWidth(0)>>1), (rpcTempCU->getHeight(0)>>1), 0);1897 m_ppcPredYuvTemp[uiDepth]->copyFromPicChroma( rpcTempCU->getSlice()->getFullPelBaseRec(rpcTempCU->getLayerId() - 1), rpcTempCU->getAddr(), rpcTempCU->getZorderIdxInCU(), 0, (rpcTempCU->getWidth(0)>>1), (rpcTempCU->getHeight(0)>>1), 1);1898 m_pcPredSearch->encodeResAndCalcRdInterCU( rpcTempCU, m_ppcOrigYuv[uiDepth], m_ppcPredYuvTemp[uiDepth], m_ppcResiYuvTemp[uiDepth], m_ppcResiYuvBest[uiDepth], m_ppcRecoYuvTemp[uiDepth], false );1899 rpcTempCU->getTotalCost() = m_pcRdCost->calcRdCost( rpcTempCU->getTotalBits(), rpcTempCU->getTotalDistortion() );1900 #else1901 1902 1891 m_pcPredSearch->estIntraBLPredQT( rpcTempCU, m_ppcOrigYuv[uiDepth], m_ppcPredYuvTemp[uiDepth], m_ppcResiYuvTemp[uiDepth], m_ppcRecoYuvTemp[uiDepth] ); 1903 1892 … … 1923 1912 } 1924 1913 rpcTempCU->getTotalCost() = m_pcRdCost->calcRdCost( rpcTempCU->getTotalBits(), rpcTempCU->getTotalDistortion() ); 1925 #endif1926 1914 1927 1915 xCheckDQP( rpcTempCU ); -
branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncEntropy.cpp
r313 r319 343 343 344 344 #if INTRA_BL 345 #if NO_RESIDUAL_FLAG_FOR_BLPRED346 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 #else348 345 if( ( !pcCU->isIntra( uiAbsPartIdx ) ) && uiDepth == pcCU->getDepth( uiAbsPartIdx ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, 0 ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, 0 ) ) 349 #endif350 346 #else 351 347 if( pcCU->getPredictionMode(uiAbsPartIdx) != MODE_INTRA && uiDepth == pcCU->getDepth( uiAbsPartIdx ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, 0 ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, 0 ) ) … … 607 603 UInt uiChromaOffset = uiLumaOffset>>2; 608 604 609 #if NO_RESIDUAL_FLAG_FOR_BLPRED610 if( pcCU->isIntra(uiAbsPartIdx) && !pcCU->isIntraBL(uiAbsPartIdx) )611 #else612 605 if( pcCU->isIntra(uiAbsPartIdx) ) 613 #endif614 606 { 615 607 DTRACE_CABAC_VL( g_nSymbolCounter++ ) -
branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncSearch.cpp
r313 r319 1055 1055 pcCU->getPattern()->initAdiPattern( pcCU, uiAbsPartIdx, uiTrDepth, m_piYuvExt, m_iYuvExtStride, m_iYuvExtHeight, bAboveAvail, bLeftAvail ); 1056 1056 //===== get prediction signal ===== 1057 #if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED1057 #if INTRA_BL 1058 1058 if(pcCU->isIntraBL ( uiAbsPartIdx ) ) 1059 1059 { … … 1247 1247 1248 1248 //===== get prediction signal ===== 1249 #if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED1249 #if INTRA_BL 1250 1250 if(pcCU->isIntraBL ( uiAbsPartIdx ) ) 1251 1251 { … … 4567 4567 Void TEncSearch::encodeResAndCalcRdInterCU( TComDataCU* pcCU, TComYuv* pcYuvOrg, TComYuv* pcYuvPred, TComYuv*& rpcYuvResi, TComYuv*& rpcYuvResiBest, TComYuv*& rpcYuvRec, Bool bSkipRes ) 4568 4568 { 4569 #if NO_RESIDUAL_FLAG_FOR_BLPRED4570 if ( pcCU->isIntra(0) && !pcCU->isIntraBL(0))4571 #else4572 4569 if ( pcCU->isIntra(0) ) 4573 #endif4574 4570 { 4575 4571 return; … … 4682 4678 pcCU->setTransformSkipSubParts ( 0, 0, 0, 0, pcCU->getDepth(0) ); 4683 4679 } 4684 #if NO_RESIDUAL_FLAG_FOR_BLPRED4685 else if(pcCU->getLayerId() > 0 && pcCU->isIntraBL(0) && uiZeroDistortion == uiDistortion) // all zeros4686 {4687 const UInt uiQPartNum = pcCU->getPic()->getNumPartInCU() >> (pcCU->getDepth(0) << 1);4688 ::memset( pcCU->getTransformIdx() , 0, uiQPartNum * sizeof(UChar) );4689 ::memset( pcCU->getCbf( TEXT_LUMA ) , 0, uiQPartNum * sizeof(UChar) );4690 ::memset( pcCU->getCbf( TEXT_CHROMA_U ), 0, uiQPartNum * sizeof(UChar) );4691 ::memset( pcCU->getCbf( TEXT_CHROMA_V ), 0, uiQPartNum * sizeof(UChar) );4692 ::memset( pcCU->getCoeffY() , 0, uiWidth * uiHeight * sizeof( TCoeff ) );4693 ::memset( pcCU->getCoeffCb() , 0, uiWidth * uiHeight * sizeof( TCoeff ) >> 2 );4694 ::memset( pcCU->getCoeffCr() , 0, uiWidth * uiHeight * sizeof( TCoeff ) >> 2 );4695 pcCU->setTransformSkipSubParts ( 0, 0, 0, 0, pcCU->getDepth(0) );4696 }4697 #endif4698 4680 else 4699 4681 { … … 4994 4976 Int scalingListType = 3 + g_eTTable[(Int)TEXT_LUMA]; 4995 4977 assert(scalingListType < 6); 4996 #if NO_RESIDUAL_FLAG_FOR_BLPRED4997 if(pcCU->isIntraBL(uiAbsPartIdx) )4998 {4999 m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,DC_IDX, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(), pcCoeffCurrY, trWidth, trHeight, scalingListType );//this is for inter mode only5000 }5001 else5002 {5003 m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,REG_DCT, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(), pcCoeffCurrY, trWidth, trHeight, scalingListType );//this is for inter mode only5004 }5005 #else5006 4978 m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,REG_DCT, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(), pcCoeffCurrY, trWidth, trHeight, scalingListType );//this is for inter mode only 5007 #endif5008 5009 4979 const UInt uiNonzeroDistY = m_pcRdCost->getDistPart(g_bitDepthY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getLumaAddr( absTUPartIdx ), m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(), 5010 4980 pcResi->getLumaAddr( absTUPartIdx ), pcResi->getStride(), trWidth,trHeight ); … … 5275 5245 assert(scalingListType < 6); 5276 5246 5277 #if NO_RESIDUAL_FLAG_FOR_BLPRED5278 if(pcCU->isIntraBL(uiAbsPartIdx) )5279 {5280 m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,DC_IDX, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(), pcCoeffCurrY, trWidth, trHeight, scalingListType, true );5281 }5282 else5283 {5284 m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,REG_DCT, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(), pcCoeffCurrY, trWidth, trHeight, scalingListType, true );5285 }5286 #else5287 5247 m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,REG_DCT, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(), pcCoeffCurrY, trWidth, trHeight, scalingListType, true ); 5288 #endif5289 5248 5290 5249 uiNonzeroDistY = m_pcRdCost->getDistPart(g_bitDepthY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getLumaAddr( absTUPartIdx ), m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(), … … 5618 5577 { 5619 5578 #if INTRA_BL 5620 #if NO_RESIDUAL_FLAG_FOR_BLPRED5621 assert( !pcCU->isIntra(uiAbsPartIdx) || pcCU->isIntraBL(uiAbsPartIdx));5622 #else5623 5579 assert( !pcCU->isIntra(uiAbsPartIdx) ); 5624 #endif5625 5580 #else 5626 5581 assert( pcCU->getPredictionMode(uiAbsPartIdx) != MODE_INTRA ); … … 5863 5818 { 5864 5819 m_pcEntropyCoder->encodeIntraBLFlag(pcCU, 0, true); 5865 #if !NO_RESIDUAL_FLAG_FOR_BLPRED5866 5820 assert( pcCU->isIntraBL( 0 ) == false ); 5867 #endif 5868 } 5869 #endif 5870 #if NO_RESIDUAL_FLAG_FOR_BLPRED 5871 if( !pcCU->isIntraBL(0)) 5872 { 5821 } 5873 5822 #endif 5874 5823 m_pcEntropyCoder->encodePredMode( pcCU, 0, true ); 5875 5824 m_pcEntropyCoder->encodePartSize( pcCU, 0, pcCU->getDepth(0), true ); 5876 5825 m_pcEntropyCoder->encodePredInfo( pcCU, 0, true ); 5877 #if NO_RESIDUAL_FLAG_FOR_BLPRED 5878 } 5879 #endif 5826 5880 5827 Bool bDummy = false; 5881 5828 m_pcEntropyCoder->encodeCoeff ( pcCU, 0, pcCU->getDepth(0), pcCU->getWidth(0), pcCU->getHeight(0), bDummy );
Note: See TracChangeset for help on using the changeset viewer.