Changeset 319 in SHVCSoftware for branches/SHM-3.0-dev/source/Lib/TLibCommon
- Timestamp:
- 2 Aug 2013, 22:20:38 (11 years ago)
- Location:
- branches/SHM-3.0-dev/source/Lib/TLibCommon
- Files:
-
- 7 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
Note: See TracChangeset for help on using the changeset viewer.