Changeset 70 in 3DVCSoftware for branches/HTM-3.0-Vidyo/source/App/TAppEncoder
- Timestamp:
- 3 Jun 2012, 21:48:11 (13 years ago)
- Location:
- branches/HTM-3.0-Vidyo/source/App/TAppEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-3.0-Vidyo/source/App/TAppEncoder/TAppEncTop.cpp
r56 r70 67 67 Void TAppEncTop::xInitLibCfg() 68 68 { 69 #if VIDYO_VPS_INTEGRATION 70 UInt layerId = 0; 71 // TODO: fix the assumption here that the temporal structures are all equal across all layers??? 72 m_cVPS.setMaxTLayers( m_maxTempLayer[0] ); 73 m_cVPS.setMaxLayers( m_iNumberOfViews * (m_bUsingDepthMaps ? 2:1) ); 74 for(Int i = 0; i < MAX_TLAYER; i++) 75 { 76 m_cVPS.setNumReorderPics( m_numReorderPics[0][i], i ); 77 m_cVPS.setMaxDecPicBuffering( m_maxDecPicBuffering[0][i], i ); 78 } 79 #endif 80 69 81 for(Int iViewIdx=0; iViewIdx<m_iNumberOfViews; iViewIdx++) 70 82 { … … 90 102 m_acTEncTopList[iViewIdx]->setIsDepth ( false ); 91 103 m_acTEncTopList[iViewIdx]->setViewOrderIdx ( m_cCameraData.getViewOrderIndex()[ iViewIdx ] ); 104 #if VIDYO_VPS_INTEGRATION 105 layerId = iViewIdx * (m_bUsingDepthMaps ? 2:1); 106 m_acTEncTopList[iViewIdx]->setLayerId ( layerId ); 107 m_cVPS.setDepthFlag ( false, layerId ); 108 m_cVPS.setViewId ( iViewIdx, layerId ); 109 m_cVPS.setViewOrderIdx ( m_cCameraData.getViewOrderIndex()[ iViewIdx ], layerId ); 110 // TODO: set correct dependentFlag and dependentLayer 111 m_cVPS.setDependentFlag ( iViewIdx ? true:false, layerId ); 112 m_cVPS.setDependentLayer ( layerId - (m_bUsingDepthMaps ? 2:1), layerId ); 113 #endif 114 92 115 m_acTEncTopList[iViewIdx]->setCamParPrecision ( m_cCameraData.getCamParsCodedPrecision () ); 93 116 m_acTEncTopList[iViewIdx]->setCamParInSliceHeader ( m_cCameraData.getVaryingCameraParameters() ); … … 364 387 m_acTEncDepthTopList[iViewIdx]->setIsDepth ( true ); 365 388 m_acTEncDepthTopList[iViewIdx]->setViewOrderIdx ( m_cCameraData.getViewOrderIndex()[ iViewIdx ] ); 389 #if VIDYO_VPS_INTEGRATION 390 layerId = iViewIdx * 2 + 1; 391 m_acTEncDepthTopList[iViewIdx]->setLayerId ( layerId ); 392 m_cVPS.setDepthFlag ( true, layerId ); 393 m_cVPS.setViewId ( iViewIdx, layerId ); 394 m_cVPS.setViewOrderIdx ( m_cCameraData.getViewOrderIndex()[ iViewIdx ], layerId ); 395 m_cVPS.setDependentFlag ( true, layerId ); 396 m_cVPS.setDependentLayer ( layerId-1, layerId); 397 #endif 366 398 m_acTEncDepthTopList[iViewIdx]->setCamParPrecision ( 0 ); 367 399 m_acTEncDepthTopList[iViewIdx]->setCamParInSliceHeader ( false ); … … 1134 1166 case NAL_UNIT_SPS: 1135 1167 case NAL_UNIT_PPS: 1168 #if VIDYO_VPS_INTEGRATION 1169 case NAL_UNIT_VPS: 1170 #endif 1136 1171 m_essentialBytes += *it_stats; 1137 1172 break; -
branches/HTM-3.0-Vidyo/source/App/TAppEncoder/TAppEncTop.h
r56 r70 84 84 #endif 85 85 86 #if VIDYO_VPS_INTEGRATION 87 TComVPS m_cVPS; 88 #endif 89 86 90 #if HHI_VSO 87 91 TRenTop m_cRendererTop; … … 131 135 #endif 132 136 137 #if VIDYO_VPS_INTEGRATION 138 TComVPS* getVPS() { return &m_cVPS; } 139 #endif 140 133 141 #if DEPTH_MAP_GENERATION 134 142 TComSPSAccess* getSPSAccess () { return &m_cSPSAccess; }
Note: See TracChangeset for help on using the changeset viewer.