Changeset 100 in 3DVCSoftware for trunk/source/Lib/TLibEncoder/TEncCu.cpp
- Timestamp:
- 9 Aug 2012, 12:53:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibEncoder/TEncCu.cpp
r81 r100 1156 1156 if( m_pcRdCost->getUseRenModel() ) 1157 1157 { 1158 #if HHI_FIX1159 1158 UInt uiWidth = m_ppcOrigYuv[uiDepth]->getWidth ( ); 1160 1159 UInt uiHeight = m_ppcOrigYuv[uiDepth]->getHeight( ); … … 1162 1161 UInt uiSrcStride = m_ppcOrigYuv[uiDepth]->getStride(); 1163 1162 m_pcRdCost->setRenModelData( m_ppcBestCU[uiDepth], 0, piSrc, uiSrcStride, uiWidth, uiHeight ); 1164 #else1165 UInt uiWidth = m_ppcBestCU[uiDepth]->getWidth ( 0 );1166 UInt uiHeight = m_ppcBestCU[uiDepth]->getHeight( 0 );1167 Pel* piSrc = m_ppcOrigYuv[uiDepth]->getLumaAddr( 0 );1168 UInt uiSrcStride = m_ppcOrigYuv[uiDepth]->getStride();1169 m_pcRdCost->setRenModelData( m_ppcBestCU[uiDepth], 0, piSrc, uiSrcStride, uiWidth, uiHeight );1170 #endif1171 1163 } 1172 1164 #endif … … 1212 1204 1213 1205 #if HHI_VSO 1206 #if HHI_VSO_SET_OPTIM 1207 #else 1214 1208 if( m_pcRdCost->getUseRenModel() ) // necessary ?? 1215 1209 { 1216 #if HHI_FIX1217 1210 UInt uiWidth = m_ppcRecoYuvBest[uhNextDepth]->getWidth ( ); 1218 1211 UInt uiHeight = m_ppcRecoYuvBest[uhNextDepth]->getHeight ( ); … … 1220 1213 UInt uiSrcStride = m_ppcRecoYuvBest[uhNextDepth]->getStride ( ); 1221 1214 m_pcRdCost->setRenModelData( pcSubBestPartCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight ); 1222 #else 1223 UInt uiWidth = pcSubBestPartCU->getWidth ( 0 ); 1224 UInt uiHeight = pcSubBestPartCU->getHeight( 0 ); 1225 Pel* piSrc = m_ppcRecoYuvBest[pcSubBestPartCU->getDepth(0)]->getLumaAddr( 0 ); 1226 UInt uiSrcStride = m_ppcRecoYuvBest[pcSubBestPartCU->getDepth(0)]->getStride(); 1227 m_pcRdCost->setRenModelData( pcSubBestPartCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight ); 1228 #endif 1229 } 1215 } 1216 #endif 1230 1217 #endif 1231 1218 } … … 1369 1356 if( m_pcRdCost->getUseRenModel() ) 1370 1357 { 1371 #if HHI_FIX1372 1358 UInt uiWidth = m_ppcRecoYuvBest[uiDepth]->getWidth ( ); 1373 1359 UInt uiHeight = m_ppcRecoYuvBest[uiDepth]->getHeight ( ); … … 1375 1361 UInt uiSrcStride = m_ppcRecoYuvBest[uiDepth]->getStride ( ); 1376 1362 m_pcRdCost->setRenModelData( rpcBestCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight ); 1377 #else1378 UInt uiWidth = rpcBestCU->getWidth ( 0 );1379 UInt uiHeight = rpcBestCU->getHeight( 0 );1380 Pel* piSrc = m_ppcRecoYuvBest[uiDepth]->getLumaAddr( 0 );1381 UInt uiSrcStride = m_ppcRecoYuvBest[uiDepth]->getStride();1382 m_pcRdCost->setRenModelData( rpcBestCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );1383 #endif1384 1363 } 1385 1364 #endif … … 1747 1726 if( m_pcRdCost->getUseRenModel() ) 1748 1727 { 1749 #if HHI_FIX1750 1728 UInt uiWidth = m_ppcOrigYuv[uhDepth]->getWidth ( ); 1751 1729 UInt uiHeight = m_ppcOrigYuv[uhDepth]->getHeight( ); … … 1753 1731 UInt uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride(); 1754 1732 m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight ); 1755 #else1756 UInt uiWidth = rpcTempCU->getWidth ( 0 );1757 UInt uiHeight = rpcTempCU->getHeight( 0 );1758 Pel* piSrc = m_ppcOrigYuv[uhDepth]->getLumaAddr( );1759 UInt uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride();1760 m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );1761 #endif1762 1733 } 1763 1734 #endif … … 1851 1822 if( m_pcRdCost->getUseRenModel() ) 1852 1823 { //Reset 1853 #if HHI_FIX1854 1824 UInt uiWidth = m_ppcOrigYuv[uhDepth]->getWidth (); 1855 1825 UInt uiHeight = m_ppcOrigYuv[uhDepth]->getHeight (); … … 1857 1827 UInt uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride (); 1858 1828 m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight ); 1859 #else1860 UInt uiWidth = rpcTempCU->getWidth ( 0 );1861 UInt uiHeight = rpcTempCU->getHeight( 0 );1862 Pel* piSrc = m_ppcOrigYuv[uhDepth]->getLumaAddr( );1863 UInt uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride();1864 m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );1865 #endif1866 1829 } 1867 1830 #endif … … 1927 1890 if( m_pcRdCost->getUseRenModel() ) 1928 1891 { 1929 #if HHI_FIX1930 1892 UInt uiWidth = m_ppcOrigYuv[uhDepth]->getWidth ( ); 1931 1893 UInt uiHeight = m_ppcOrigYuv[uhDepth]->getHeight( ); … … 1933 1895 UInt uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride(); 1934 1896 m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight ); 1935 #else1936 UInt uiWidth = rpcTempCU->getWidth ( 0 );1937 UInt uiHeight = rpcTempCU->getHeight( 0 );1938 Pel* piSrc = m_ppcOrigYuv[uhDepth]->getLumaAddr( );1939 UInt uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride();1940 m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );1941 #endif1942 1897 } 1943 1898 #endif … … 2046 2001 if( m_pcRdCost->getUseRenModel() ) 2047 2002 { 2048 #if HHI_FIX2049 2003 UInt uiWidth = m_ppcOrigYuv[uiDepth]->getWidth (); 2050 2004 UInt uiHeight = m_ppcOrigYuv[uiDepth]->getHeight (); … … 2052 2006 UInt uiSrcStride = m_ppcOrigYuv[uiDepth]->getStride (); 2053 2007 m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight ); 2054 #else2055 UInt uiWidth = rpcTempCU->getWidth ( 0 );2056 UInt uiHeight = rpcTempCU->getHeight( 0 );2057 Pel* piSrc = m_ppcOrigYuv[uiDepth]->getLumaAddr( );2058 UInt uiSrcStride = m_ppcOrigYuv[uiDepth]->getStride();2059 m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );2060 #endif2061 2008 } 2062 2009 #endif … … 2557 2504 if( m_pcRdCost->getUseRenModel() && !bRecursiveCall) 2558 2505 { 2559 #if HHI_FIX2560 2506 UInt uiWidth = m_ppcOrigYuv[uhDepth]->getWidth (); 2561 2507 UInt uiHeight = m_ppcOrigYuv[uhDepth]->getHeight (); … … 2563 2509 UInt uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride (); 2564 2510 m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight ); 2565 #else2566 UInt uiWidth = m_ppcTempCU [uhDepth]->getWidth ( 0 );2567 UInt uiHeight = m_ppcTempCU [uhDepth]->getHeight( 0 );2568 Pel* piSrc = m_ppcOrigYuv[uhDepth]->getLumaAddr( 0 );2569 UInt uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride();2570 m_pcRdCost->setRenModelData( m_ppcTempCU[uhDepth], 0, piSrc, uiSrcStride, uiWidth, uiHeight );2571 #endif2572 2511 } 2573 2512 #endif … … 2717 2656 if( !bSplit && bRecursiveCall && m_pcRdCost->getUseRenModel() ) 2718 2657 { 2719 #if HHI_FIX2720 2658 UInt uiWidth = m_ppcRecoYuvBest[uhDepth]->getWidth ( ); 2721 2659 UInt uiHeight = m_ppcRecoYuvBest[uhDepth]->getHeight ( ); … … 2723 2661 Pel* piSrc = m_ppcRecoYuvBest[uhDepth]->getLumaAddr( 0 ); 2724 2662 m_pcRdCost->setRenModelData( rpcBestCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight ); 2725 #else2726 UInt uiWidth = rpcBestCU->getWidth ( 0 );2727 UInt uiHeight = rpcBestCU->getHeight( 0 );2728 Pel* piSrc = m_ppcRecoYuvBest[uhDepth]->getLumaAddr( 0 );2729 UInt uiSrcStride = m_ppcRecoYuvBest[uhDepth]->getStride();2730 m_pcRdCost->setRenModelData( rpcBestCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );2731 #endif2732 2663 } 2733 2664 #endif
Note: See TracChangeset for help on using the changeset viewer.