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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.