Changeset 17 in SHVCSoftware for trunk/source/Lib/TLibCommon
- Timestamp:
- 29 Jan 2013, 03:06:57 (12 years ago)
- Location:
- trunk/source/Lib/TLibCommon
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComTrQuant.cpp
r16 r17 1496 1496 assert(scalingListType < 6); 1497 1497 #if INTER_TRANSFORMSKIP 1498 #if NO_RESIDUAL_FLAG_FOR_BLPRED 1499 if(pcCU->isIntraBL(uiAbsPartIdx) && eTxt == TEXT_LUMA) 1500 invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, DC_IDX, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType, pcCU->getTransformSkip(uiAbsPartIdx, eTxt) ); 1501 else 1502 invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, REG_DCT, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType, pcCU->getTransformSkip(uiAbsPartIdx, eTxt) ); 1503 #else 1498 1504 invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, REG_DCT, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType, pcCU->getTransformSkip(uiAbsPartIdx, eTxt) ); 1505 #endif 1499 1506 #else 1500 1507 invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, REG_DCT, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType ); … … 2107 2114 Int ui16CtxCbf = 0; 2108 2115 Int iBestLastIdxP1 = 0; 2116 #if NO_RESIDUAL_FLAG_FOR_BLPRED 2117 if( (!pcCU->isIntra( uiAbsPartIdx ) || pcCU->isIntraBL( uiAbsPartIdx )) && eTType == TEXT_LUMA && pcCU->getTransformIdx( uiAbsPartIdx ) == 0 ) 2118 #else 2109 2119 if( !pcCU->isIntra( uiAbsPartIdx ) && eTType == TEXT_LUMA && pcCU->getTransformIdx( uiAbsPartIdx ) == 0 ) 2120 #endif 2110 2121 { 2111 2122 ui16CtxCbf = 0; -
trunk/source/Lib/TLibCommon/TComYuv.cpp
r2 r17 184 184 } 185 185 186 #if NO_RESIDUAL_FLAG_FOR_BLPRED 187 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 else 223 { 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 #endif 238 186 239 Void TComYuv::copyToPartYuv( TComYuv* pcYuvDst, UInt uiDstPartIdx ) 187 240 { -
trunk/source/Lib/TLibCommon/TComYuv.h
r2 r17 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_BLPRED 118 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 #endif 117 121 118 122 // Copy Small YUV buffer to the part of other Big YUV buffer -
trunk/source/Lib/TLibCommon/TypeDef.h
r15 r17 60 60 #if INTRA_BL 61 61 #define INTRA_BL_DST4x4 1 ///< L0067/L0204 DST4x4 for Intra BL 62 #define NO_RESIDUAL_FLAG_FOR_BLPRED 1 ///< L0437 Root cbf for Intra_BL 62 63 63 64 // Hooks
Note: See TracChangeset for help on using the changeset viewer.