Changeset 34 in SHVCSoftware for branches/SHM-1.0-dev/source/Lib


Ignore:
Timestamp:
8 Feb 2013, 00:16:24 (12 years ago)
Author:
seregin
Message:

Merge with trunk

Location:
branches/SHM-1.0-dev/source
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-1.0-dev/source

  • branches/SHM-1.0-dev/source/Lib/TLibCommon/TComPic.cpp

    r32 r34  
    586586}
    587587
    588 
    589 
    590 
    591588Void TComPic::copyUpsampledMvField(TComPic* pcPicBase)
    592589{
    593 
    594 
    595 
    596590  Int iBWidth   = pcPicBase->getPicYuvRec()->getWidth () - pcPicBase->getPicYuvRec()->getPicCropLeftOffset() - pcPicBase->getPicYuvRec()->getPicCropRightOffset();
    597591  Int iBHeight  = pcPicBase->getPicYuvRec()->getHeight() - pcPicBase->getPicYuvRec()->getPicCropTopOffset() - pcPicBase->getPicYuvRec()->getPicCropBottomOffset();
     
    599593  Int iEWidth   = getPicYuvRec()->getWidth() -  getPicYuvRec()->getPicCropLeftOffset() - getPicYuvRec()->getPicCropRightOffset();
    600594  Int iEHeight  = getPicYuvRec()->getHeight() - getPicYuvRec()->getPicCropTopOffset() -  getPicYuvRec()->getPicCropBottomOffset();
    601 
    602 
     595 
    603596  UInt upSampleRatio = 0;
    604597  if(iEWidth == iBWidth && iEHeight == iBHeight)
     
    654647        }
    655648      }
    656 
    657649      else
    658650      {
  • branches/SHM-1.0-dev/source/Lib/TLibCommon/TComTrQuant.cpp

    r17 r34  
    14981498#if NO_RESIDUAL_FLAG_FOR_BLPRED
    14991499    if(pcCU->isIntraBL(uiAbsPartIdx) && eTxt == TEXT_LUMA)
     1500    {
    15001501      invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, DC_IDX, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType, pcCU->getTransformSkip(uiAbsPartIdx, eTxt) );
     1502    }
    15011503    else
     1504    {
    15021505      invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, REG_DCT, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType, pcCU->getTransformSkip(uiAbsPartIdx, eTxt) );
     1506    }
    15031507#else
    15041508    invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, REG_DCT, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType, pcCU->getTransformSkip(uiAbsPartIdx, eTxt) );
  • branches/SHM-1.0-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r27 r34  
    169169        for (Int i=0; i<m_cIlpPic[j]->getPicSym()->getNumberOfCUsInFrame(); i++)
    170170        {
    171             m_cIlpPic[j]->getPicSym()->getCU(i)->initCU(m_cIlpPic[j], i);
     171          m_cIlpPic[j]->getPicSym()->getCU(i)->initCU(m_cIlpPic[j], i);
    172172        }
    173173      }
  • branches/SHM-1.0-dev/source/Lib/TLibEncoder/TEncCu.cpp

    r32 r34  
    13521352    {
    13531353#if REF_IDX_ME_ZEROMV
    1354     Bool bZeroMVILR = rpcTempCU->xCheckZeroMVILRMerge(uhInterDirNeighbours[uiMergeCand], cMvFieldNeighbours[0 + 2*uiMergeCand], cMvFieldNeighbours[1 + 2*uiMergeCand]);
    1355     if(bZeroMVILR)
    1356     {
     1354      Bool bZeroMVILR = rpcTempCU->xCheckZeroMVILRMerge(uhInterDirNeighbours[uiMergeCand], cMvFieldNeighbours[0 + 2*uiMergeCand], cMvFieldNeighbours[1 + 2*uiMergeCand]);
     1355      if(bZeroMVILR)
     1356      {
    13571357#endif
    13581358        if(!(uiNoResidual==1 && mergeCandBuffer[uiMergeCand]==1))
     
    14081408    }
    14091409#if REF_IDX_ME_ZEROMV
    1410   }
     1410      }
    14111411#endif
    14121412   }
  • branches/SHM-1.0-dev/source/Lib/TLibEncoder/TEncSearch.cpp

    r32 r34  
    34293429        {
    34303430#if REF_IDX_ME_ZEROMV
    3431       Bool bZeroMVILR = pcCU->xCheckZeroMVILRMvdL1Zero(iRefList, iRefIdxTemp, aaiMvpIdx[iRefList][iRefIdxTemp]);
    3432       if(bZeroMVILR)
    3433       {
     3431          Bool bZeroMVILR = pcCU->xCheckZeroMVILRMvdL1Zero(iRefList, iRefIdxTemp, aaiMvpIdx[iRefList][iRefIdxTemp]);
     3432          if(bZeroMVILR)
     3433          {
    34343434#endif
    34353435          bestBiPDist = biPDistTemp;
     
    34373437          bestBiPRefIdxL1 = iRefIdxTemp;
    34383438#if REF_IDX_ME_ZEROMV
    3439       }
     3439          }
    34403440#endif
    34413441        }
     
    35773577    //  Bi-directional prediction
    35783578#if REF_IDX_ME_ZEROMV
    3579   if ( (pcCU->getSlice()->isInterB()) && (pcCU->isBipredRestriction(iPartIdx) == false) && !(pcCU->getSlice()->getMvdL1ZeroFlag() && bestBiPDist == MAX_INT) )
     3579    if ( (pcCU->getSlice()->isInterB()) && (pcCU->isBipredRestriction(iPartIdx) == false) && !(pcCU->getSlice()->getMvdL1ZeroFlag() && bestBiPDist == MAX_INT) )
    35803580#else
    35813581    if ( (pcCU->getSlice()->isInterB()) && (pcCU->isBipredRestriction(iPartIdx) == false) )
     
    45114511#if REF_IDX_ME_ZEROMV
    45124512  if( pcCU->getSlice()->getRefPic( eRefPicList, iRefIdxPred )->getIsILR())  //ILR reference pic
     4513  {
    45134514    rcMv.setZero();  //use Mv(0, 0) for integer ME
     4515  }
    45144516  else  //non ILR reference pic
    45154517  {
     
    45434545#if REF_IDX_ME_ZEROMV
    45444546    if( pcCU->getSlice()->getRefPic( eRefPicList, iRefIdxPred )->getIsILR())  //ILR reference pic
     4547    {
    45454548      xPatternSearchFracDIFMv0( pcCU, pcPatternKey, piRefY, iRefStride, &rcMv, cMvHalf, cMvQter, ruiCost, bBi );
     4549    }
    45464550    else    //non ILR reference pic
     4551    {
    45474552      xPatternSearchFracDIF( pcCU, pcPatternKey, piRefY, iRefStride, &rcMv, cMvHalf, cMvQter, ruiCost, bBi );
     4553    }
    45484554#else
    45494555    xPatternSearchFracDIF( pcCU, pcPatternKey, piRefY, iRefStride, &rcMv, cMvHalf, cMvQter, ruiCost
     
    54475453#if NO_RESIDUAL_FLAG_FOR_BLPRED
    54485454      if(pcCU->isIntraBL(uiAbsPartIdx) )
     5455      {
    54495456        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
     5457      }
    54505458      else
     5459      {
    54515460        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
     5461      }
    54525462#else
    54535463      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
     
    57935803#if NO_RESIDUAL_FLAG_FOR_BLPRED
    57945804        if(pcCU->isIntraBL(uiAbsPartIdx) )
     5805        {
    57955806          m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,DC_IDX, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(),  pcCoeffCurrY, trWidth, trHeight, scalingListType, true );
     5807        }
    57965808        else
     5809        {
    57975810          m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,REG_DCT, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(),  pcCoeffCurrY, trWidth, trHeight, scalingListType, true );
     5811        }
    57985812#else
    57995813        m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,REG_DCT, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(),  pcCoeffCurrY, trWidth, trHeight, scalingListType, true );
  • branches/SHM-1.0-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r27 r34  
    402402        for (Int i=0; i<m_cIlpPic[j]->getPicSym()->getNumberOfCUsInFrame(); i++)
    403403        {
    404             m_cIlpPic[j]->getPicSym()->getCU(i)->initCU(m_cIlpPic[j], i);
     404          m_cIlpPic[j]->getPicSym()->getCU(i)->initCU(m_cIlpPic[j], i);
    405405        }
    406406      }
Note: See TracChangeset for help on using the changeset viewer.