- Timestamp:
- 17 Jun 2013, 09:07:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev1/source/Lib/TLibEncoder/TEncSearch.cpp
r467 r471 1979 1979 //===== determine distortion ===== 1980 1980 #if H_3D_VSO 1981 if( m_pcRdCost->getUseVSO() ) 1982 { 1983 if( m_pcRdCost->getUseEstimatedVSD() ) 1984 { 1985 ruiDist = m_pcRdCost->getDistPartVSD( pcCU, uiAbsPartIdx, piReco, uiStride, piOrg, uiStride, uiWidth, uiHeight, false ); 1986 } 1987 else 1988 { 1989 ruiDist = m_pcRdCost->getDistPartVSO( pcCU, uiAbsPartIdx, piReco, uiStride, piOrg, uiStride, uiWidth, uiHeight, false ); 1990 } 1991 } 1981 if ( m_pcRdCost->getUseVSO() ) 1982 ruiDist = m_pcRdCost->getDistPartVSO ( pcCU, uiAbsPartIdx, piReco, uiStride, piOrg, uiStride, uiWidth, uiHeight, false ); 1992 1983 else 1993 1984 #endif 1994 { 1995 ruiDist = m_pcRdCost->getDistPart( g_bitDepthY, piReco, uiStride, piOrg, uiStride, uiWidth, uiHeight ); 1996 } 1997 1998 //----- determine rate and r-d cost ----- 1985 ruiDist = m_pcRdCost->getDistPart(g_bitDepthY, piReco, uiStride, piOrg, uiStride, uiWidth, uiHeight ); 1986 1987 //===== determine rate and r-d cost ===== 1999 1988 m_pcEntropyCoder->resetBits(); 2000 1989 2001 1990 // encode reduced intra header 2002 m_pcEntropyCoder->encodeSkipFlag( pcCU, 0, true );2003 1991 m_pcEntropyCoder->encodePredMode( pcCU, 0, true ); 2004 1992 2005 // encode pred direction + residual data1993 // encode pred direction + DC residual data 2006 1994 m_pcEntropyCoder->encodePredInfo( pcCU, 0, true ); 2007 UInt 2008 2009 #if H HI_VSO1995 UInt uiBits = m_pcEntropyCoder->getNumberOfWrittenBits(); 1996 1997 #if H_3D_VSO 2010 1998 if ( m_pcRdCost->getUseLambdaScaleVSO()) 2011 {2012 1999 dRDCost = m_pcRdCost->calcRdCostVSO( uiBits, ruiDist ); 2013 }2014 2000 else 2015 2001 #endif 2016 {2017 2002 dRDCost = m_pcRdCost->calcRdCost( uiBits, ruiDist ); 2018 }2019 2003 } 2020 2004 #endif
Note: See TracChangeset for help on using the changeset viewer.