Changeset 319 in SHVCSoftware


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
Files:
13 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
  • branches/SHM-3.0-dev/source/Lib/TLibDecoder/TDecCu.cpp

    r313 r319  
    442442#if INTRA_BL
    443443    case MODE_INTRA_BL:
    444 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    445       xReconIntraBL( m_ppcCU[uiDepth], uiAbsPartIdx, uiDepth );
    446 #else
    447444      xReconIntraQT( m_ppcCU[uiDepth], uiAbsPartIdx, uiDepth );
    448 #endif
    449445      break;
    450446#endif
     
    516512 
    517513  //===== get prediction signal =====
    518 #if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED
     514#if INTRA_BL
    519515  if(pcCU->isIntraBL ( uiAbsPartIdx ) )
    520516  {
     
    607603 
    608604  //===== get prediction signal =====
    609 #if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED
     605#if INTRA_BL
    610606  if(pcCU->isIntraBL ( uiAbsPartIdx ) )
    611607  {
     
    930926
    931927}
    932 
    933 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    934 Void
    935 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 recon
    942   xDecodeInterTexture( pcCU, 0, uiDepth );
    943 
    944   // clip for only non-zero cbp case
    945   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   else
    950   {
    951     m_ppcYuvReco[uiDepth]->copyPartToPartYuv( m_ppcYuvReco[uiDepth],0, pcCU->getWidth( 0 ),pcCU->getHeight( 0 ));
    952   }
    953 }
    954 #endif
    955 
    956928//! \}
  • branches/SHM-3.0-dev/source/Lib/TLibDecoder/TDecCu.h

    r313 r319  
    122122  Void  xIntraRecLumaBlk        ( TComDataCU* pcCU, UInt uiTrDepth, UInt uiAbsPartIdx, TComYuv* pcRecoYuv, TComYuv* pcPredYuv, TComYuv* pcResiYuv );
    123123  Void  xIntraRecChromaBlk      ( TComDataCU* pcCU, UInt uiTrDepth, UInt uiAbsPartIdx, TComYuv* pcRecoYuv, TComYuv* pcPredYuv, TComYuv* pcResiYuv, UInt uiChromaId );
    124 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    125   Void  xReconIntraBL           ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
    126 #endif
    127124 
    128125  Void  xReconPCM               ( TComDataCU* pcCU, UInt uiDepth );
  • branches/SHM-3.0-dev/source/Lib/TLibDecoder/TDecEntropy.cpp

    r313 r319  
    451451    pcCU->setCbfSubParts ( 0, TEXT_LUMA, uiAbsPartIdx, uiDepth );
    452452#if INTRA_BL
    453 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    454     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 #else
    456453    if( ( !pcCU->isIntra(uiAbsPartIdx) ) && uiDepth == pcCU->getDepth( uiAbsPartIdx ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, 0 ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, 0 ) )
    457 #endif
    458454#else
    459455    if( pcCU->getPredictionMode(uiAbsPartIdx) != MODE_INTRA && uiDepth == pcCU->getDepth( uiAbsPartIdx ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, 0 ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, 0 ) )
     
    556552  UInt uiChromaOffset = uiLumaOffset>>2;
    557553 
    558 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    559   if( pcCU->isIntra(uiAbsPartIdx) && !pcCU->isIntraBL(uiAbsPartIdx) )
    560 #else
    561554  if( pcCU->isIntra(uiAbsPartIdx) )
    562 #endif
    563555  {
    564556  }
  • branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncCu.cpp

    r313 r319  
    18891889
    18901890  m_pcPredSearch->setBaseRecPic( m_pcPicYuvRecBase );
    1891 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    1892   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 #else
    1901 
    19021891  m_pcPredSearch->estIntraBLPredQT( rpcTempCU, m_ppcOrigYuv[uiDepth], m_ppcPredYuvTemp[uiDepth], m_ppcResiYuvTemp[uiDepth], m_ppcRecoYuvTemp[uiDepth] );
    19031892
     
    19231912  }
    19241913  rpcTempCU->getTotalCost() = m_pcRdCost->calcRdCost( rpcTempCU->getTotalBits(), rpcTempCU->getTotalDistortion() );
    1925 #endif
    19261914 
    19271915  xCheckDQP( rpcTempCU );
  • branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncEntropy.cpp

    r313 r319  
    343343   
    344344#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
    348345    if( ( !pcCU->isIntra( uiAbsPartIdx ) ) && uiDepth == pcCU->getDepth( uiAbsPartIdx ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, 0 ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, 0 ) )
    349 #endif
    350346#else
    351347    if( pcCU->getPredictionMode(uiAbsPartIdx) != MODE_INTRA && uiDepth == pcCU->getDepth( uiAbsPartIdx ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, 0 ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, 0 ) )
     
    607603  UInt uiChromaOffset = uiLumaOffset>>2;
    608604   
    609 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    610   if( pcCU->isIntra(uiAbsPartIdx) && !pcCU->isIntraBL(uiAbsPartIdx) )
    611 #else
    612605  if( pcCU->isIntra(uiAbsPartIdx) )
    613 #endif
    614606  {
    615607    DTRACE_CABAC_VL( g_nSymbolCounter++ )
  • branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncSearch.cpp

    r313 r319  
    10551055    pcCU->getPattern()->initAdiPattern( pcCU, uiAbsPartIdx, uiTrDepth, m_piYuvExt, m_iYuvExtStride, m_iYuvExtHeight, bAboveAvail, bLeftAvail );
    10561056    //===== get prediction signal =====
    1057 #if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED
     1057#if INTRA_BL
    10581058    if(pcCU->isIntraBL ( uiAbsPartIdx ) )
    10591059    {
     
    12471247
    12481248    //===== get prediction signal =====
    1249 #if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED
     1249#if INTRA_BL
    12501250  if(pcCU->isIntraBL ( uiAbsPartIdx ) )
    12511251  {
     
    45674567Void TEncSearch::encodeResAndCalcRdInterCU( TComDataCU* pcCU, TComYuv* pcYuvOrg, TComYuv* pcYuvPred, TComYuv*& rpcYuvResi, TComYuv*& rpcYuvResiBest, TComYuv*& rpcYuvRec, Bool bSkipRes )
    45684568{
    4569 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    4570   if ( pcCU->isIntra(0) && !pcCU->isIntraBL(0))
    4571 #else
    45724569  if ( pcCU->isIntra(0) )
    4573 #endif
    45744570  {
    45754571    return;
     
    46824678      pcCU->setTransformSkipSubParts ( 0, 0, 0, 0, pcCU->getDepth(0) );
    46834679    }
    4684 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    4685     else if(pcCU->getLayerId() > 0 && pcCU->isIntraBL(0) && uiZeroDistortion == uiDistortion) // all zeros
    4686     {
    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 #endif
    46984680    else
    46994681    {
     
    49944976      Int scalingListType = 3 + g_eTTable[(Int)TEXT_LUMA];
    49954977      assert(scalingListType < 6);     
    4996 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    4997       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 only
    5000       }
    5001       else
    5002       {
    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 only
    5004       }
    5005 #else
    50064978      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 #endif
    5008      
    50094979      const UInt uiNonzeroDistY = m_pcRdCost->getDistPart(g_bitDepthY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getLumaAddr( absTUPartIdx ), m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(),
    50104980      pcResi->getLumaAddr( absTUPartIdx ), pcResi->getStride(), trWidth,trHeight );
     
    52755245        assert(scalingListType < 6);     
    52765246
    5277 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    5278         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         else
    5283         {
    5284           m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,REG_DCT, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(),  pcCoeffCurrY, trWidth, trHeight, scalingListType, true );
    5285         }
    5286 #else
    52875247        m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,REG_DCT, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(),  pcCoeffCurrY, trWidth, trHeight, scalingListType, true );
    5288 #endif
    52895248
    52905249        uiNonzeroDistY = m_pcRdCost->getDistPart(g_bitDepthY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getLumaAddr( absTUPartIdx ), m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(),
     
    56185577  {
    56195578#if INTRA_BL
    5620 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    5621     assert( !pcCU->isIntra(uiAbsPartIdx) || pcCU->isIntraBL(uiAbsPartIdx));
    5622 #else
    56235579    assert( !pcCU->isIntra(uiAbsPartIdx) );
    5624 #endif
    56255580#else
    56265581    assert( pcCU->getPredictionMode(uiAbsPartIdx) != MODE_INTRA );
     
    58635818    {
    58645819      m_pcEntropyCoder->encodeIntraBLFlag(pcCU, 0, true);
    5865 #if !NO_RESIDUAL_FLAG_FOR_BLPRED
    58665820      assert( pcCU->isIntraBL( 0 ) == false );
    5867 #endif
    5868     }
    5869 #endif
    5870 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    5871     if( !pcCU->isIntraBL(0))
    5872     {
     5821    }
    58735822#endif
    58745823    m_pcEntropyCoder->encodePredMode( pcCU, 0, true );
    58755824    m_pcEntropyCoder->encodePartSize( pcCU, 0, pcCU->getDepth(0), true );
    58765825    m_pcEntropyCoder->encodePredInfo( pcCU, 0, true );
    5877 #if NO_RESIDUAL_FLAG_FOR_BLPRED
    5878     }
    5879 #endif
     5826
    58805827    Bool bDummy = false;
    58815828    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.