Changeset 748 in 3DVCSoftware for branches/HTM-9.1-dev0-ZTE/source/App/TAppEncoder/TAppEncTop.cpp
- Timestamp:
- 18 Dec 2013, 09:00:24 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-9.1-dev0-ZTE/source/App/TAppEncoder/TAppEncTop.cpp
r738 r748 76 76 #endif 77 77 78 #if DLT_DIFF_CODING_IN_PPS 79 TComDLT& dlt = m_dlt; 80 #endif 81 78 82 #if H_MV 79 83 Int maxTempLayer = -1; … … 125 129 #if H_3D 126 130 xSetVPSExtension2 ( vps ); 127 m_ivPicLists.setVPS ( &vps ); 131 m_ivPicLists.setVPS ( &vps ); 132 #if DLT_DIFF_CODING_IN_PPS 133 xDeriveDltArray ( vps, dlt ); 134 #endif 128 135 #endif 129 136 … … 218 225 // H_MV 219 226 m_cTEncTop.setVPS(&vps); 227 228 #if DLT_DIFF_CODING_IN_PPS 229 m_cTEncTop.setDLT(&dlt); 230 #endif 220 231 221 232 m_cTEncTop.setProfile(m_profile); … … 1247 1258 1248 1259 #if H_3D_DIM_DLT 1260 #if DLT_DIFF_CODING_IN_PPS 1261 Void TAppEncTop::xAnalyzeInputBaseDepth(UInt layer, UInt uiNumFrames, TComVPS* vps, TComDLT* dlt) 1262 #else 1249 1263 Void TAppEncTop::xAnalyzeInputBaseDepth(UInt layer, UInt uiNumFrames, TComVPS* vps) 1264 #endif 1250 1265 { 1251 1266 TComPicYuv* pcDepthPicYuvOrg = new TComPicYuv; … … 1307 1322 if( uiNumFrames == 0 || numBitsForValue(iNumDepthValues) == g_bitDepthY ) 1308 1323 { 1324 #if DLT_DIFF_CODING_IN_PPS 1325 dlt->setUseDLTFlag(layer, false); 1326 #else 1309 1327 // don't use DLT 1310 1328 vps->setUseDLTFlag(layer, false); 1329 #endif 1311 1330 } 1312 1331 1313 1332 // assign LUT 1333 #if DLT_DIFF_CODING_IN_PPS 1334 if( dlt->getUseDLTFlag(layer) ) 1335 dlt->setDepthLUTs(layer, aiIdx2DepthValue, iNumDepthValues); 1336 #else 1314 1337 if( vps->getUseDLTFlag(layer) ) 1315 1338 vps->setDepthLUTs(layer, aiIdx2DepthValue, iNumDepthValues); 1339 #endif 1316 1340 1317 1341 // free temporary memory … … 1967 1991 #endif 1968 1992 #if H_3D_DIM_DLT 1993 #if !DLT_DIFF_CODING_IN_PPS 1969 1994 vps.setUseDLTFlag( layer , isDepth && m_useDLT ); 1970 1995 if( vps.getUseDLTFlag( layer ) ) … … 1976 2001 #endif 1977 2002 } 2003 #endif 1978 2004 #endif 1979 2005 #endif … … 2011 2037 } 2012 2038 #endif 2039 2040 #if DLT_DIFF_CODING_IN_PPS 2041 Void TAppEncTop::xDeriveDltArray( TComVPS& vps, TComDLT& dlt ) 2042 { 2043 Int iNumDepthViews = 0; 2044 Bool bDltPresentFlag = false; 2045 2046 for ( Int layer = 0; layer <= vps.getMaxLayersMinus1(); layer++ ) 2047 { 2048 Bool isDepth = ( vps.getDepthId( layer ) == 1 ); 2049 2050 if ( isDepth ) 2051 { 2052 iNumDepthViews++; 2053 } 2054 2055 dlt.setUseDLTFlag( layer , isDepth && m_useDLT ); 2056 if( dlt.getUseDLTFlag( layer ) ) 2057 { 2058 xAnalyzeInputBaseDepth(layer, max(m_iIntraPeriod[layer], 24), &vps, &dlt); 2059 bDltPresentFlag = bDltPresentFlag || dlt.getUseDLTFlag(layer); 2060 } 2061 } 2062 2063 dlt.setDltPresentFlag( bDltPresentFlag ); 2064 dlt.setNumDepthViews ( iNumDepthViews ); 2065 } 2066 #endif 2013 2067 #endif 2014 2068 //! \}
Note: See TracChangeset for help on using the changeset viewer.