Changeset 319 in SHVCSoftware for branches/SHM-3.0-dev/source/Lib/TLibCommon


Ignore:
Timestamp:
2 Aug 2013, 22:20:38 (11 years ago)
Author:
seregin
Message:

remove NO_RESIDUAL_FLAG_FOR_BLPRED

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  
    40194019}
    40204020
    4021 #if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED
     4021#if INTRA_BL
    40224022Void TComDataCU::getBaseLumaBlk ( UInt uiWidth, UInt uiHeight, UInt uiAbsPartIdx, Pel* piPred, UInt uiStride )
    40234023{
  • branches/SHM-3.0-dev/source/Lib/TLibCommon/TComDataCU.h

    r317 r319  
    489489  // -------------------------------------------------------------------------------------------------------------------
    490490 
    491 #if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED
     491#if INTRA_BL
    492492  Void          getBaseLumaBlk   ( UInt uiWidth, UInt uiHeight, UInt uiAbsPartIdx, Pel* piPred, UInt uiStride );
    493493  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  
    408408}
    409409
    410 #if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED
     410#if INTRA_BL
    411411Void TComPrediction::getBaseBlk( TComDataCU* pcCU, TComYuv* pcYuvPred, Int iPartAddr, Int iWidth, Int iHeight )
    412412{
  • branches/SHM-3.0-dev/source/Lib/TLibCommon/TComTrQuant.cpp

    r313 r319  
    13141314    Int scalingListType = (pcCU->isIntra(uiAbsPartIdx) ? 0 : 3) + g_eTTable[(Int)eTxt];
    13151315    assert(scalingListType < 6);
    1316 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    1317     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     else
    1322     {
    1323       invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, REG_DCT, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType, pcCU->getTransformSkip(uiAbsPartIdx, eTxt) );
    1324     }
    1325 #else
    13261316    invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, REG_DCT, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType, pcCU->getTransformSkip(uiAbsPartIdx, eTxt) );
    1327 #endif
    13281317  }
    13291318  else
     
    18091798  Int     ui16CtxCbf          = 0;
    18101799  Int     iBestLastIdxP1      = 0;
    1811 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    1812   if( (!pcCU->isIntra( uiAbsPartIdx ) || pcCU->isIntraBL( uiAbsPartIdx )) && eTType == TEXT_LUMA && pcCU->getTransformIdx( uiAbsPartIdx ) == 0 )
    1813 #else
    18141800  if( !pcCU->isIntra( uiAbsPartIdx ) && eTType == TEXT_LUMA && pcCU->getTransformIdx( uiAbsPartIdx ) == 0 )
    1815 #endif
    18161801  {
    18171802    ui16CtxCbf   = 0;
  • branches/SHM-3.0-dev/source/Lib/TLibCommon/TComYuv.cpp

    r313 r319  
    184184}
    185185
    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 
    239186Void TComYuv::copyToPartYuv( TComYuv* pcYuvDst, UInt uiDstPartIdx )
    240187{
  • branches/SHM-3.0-dev/source/Lib/TLibCommon/TComYuv.h

    r313 r319  
    115115  Void    copyFromPicLuma      ( TComPicYuv* pcPicYuvSrc, UInt iCuAddr, UInt uiAbsZorderIdx );
    116116  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
    121117 
    122118  //  Copy Small YUV buffer to the part of other Big YUV buffer
  • branches/SHM-3.0-dev/source/Lib/TLibCommon/TypeDef.h

    r318 r319  
    119119#if INTRA_BL
    120120#define INTRA_BL_DST4x4                  1      ///< L0067/L0204: DST4x4 for Intra BL
    121 #define NO_RESIDUAL_FLAG_FOR_BLPRED      1      ///< L0437: Root cbf for Intra_BL
    122121
    123122#endif
Note: See TracChangeset for help on using the changeset viewer.