Changeset 350 in 3DVCSoftware


Ignore:
Timestamp:
2 May 2013, 02:33:41 (12 years ago)
Author:
lg
Message:

JCT3V-D0163: fix for SDC encoder rd-cost (VSO -> WVSO) with Macro FIX_SDC_ENC_RD_WVSO_D0163

Location:
branches/HTM-6.2-dev3-LG/source/Lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-6.2-dev3-LG/source/Lib/TLibCommon/TypeDef.h

    r344 r350  
    7171#define HHI_DELTADC_DLT_D0035             1   // JCT3V-D0035: DLT for DMM deltaDC coding
    7272#endif
     73#define FIX_SDC_ENC_RD_WVSO_D0163         1   // JCT3V-D0163: fix for SDC encoder rd-cost (VSO -> WVSO)
    7374
    7475///// ***** TMVP/AMVP *********
  • branches/HTM-6.2-dev3-LG/source/Lib/TLibEncoder/TEncSearch.cpp

    r342 r350  
    17351735  if ( m_pcRdCost->getUseVSO() )
    17361736  {
     1737#if FIX_SDC_ENC_RD_WVSO_D0163 && LGE_WVSO_A0119
     1738    if ( m_pcRdCost->getUseWVSO() )
     1739    {   
     1740      Int iDWeight = m_pcRdCost->getDWeight() * m_pcRdCost->getDWeight();
     1741      Int iVSOWeight = m_pcRdCost->getVSOWeight() * m_pcRdCost->getVSOWeight();
     1742      Dist iD = (Dist) m_pcRdCost->getDistPart( piReco, uiStride, piOrg, uiStride, uiWidth, uiHeight );
     1743      Dist iVSO = m_pcRdCost->getDistVS  ( pcCU, uiAbsPartIdx, piReco, uiStride, piOrg, uiStride, uiWidth, uiHeight, false, 0 );
     1744      ruiDist += (iDWeight * iD + iVSOWeight * iVSO) / ( iDWeight + iVSOWeight);
     1745    }
     1746    else
     1747#endif
    17371748    ruiDist = m_pcRdCost->getDistVS  ( pcCU, uiAbsPartIdx, piReco, uiStride, piOrg, uiStride, uiWidth, uiHeight, false, 0 );
    17381749  }
Note: See TracChangeset for help on using the changeset viewer.