Changeset 77 in 3DVCSoftware for trunk/source/App/TAppDecoder
- Timestamp:
- 14 Jun 2012, 16:38:29 (13 years ago)
- Location:
- trunk/source/App/TAppDecoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/App/TAppDecoder/TAppDecTop.cpp
r57 r77 82 82 Void TAppDecTop::decode() 83 83 { 84 #if VIDYO_VPS_INTEGRATION 85 increaseNumberOfViews( 0, 0, 0 ); 86 #else 84 87 increaseNumberOfViews( 1 ); 88 #endif 89 85 90 #if SONY_COLPIC_AVAILABILITY 86 91 m_tDecTop[0]->setViewOrderIdx(0); … … 140 145 { 141 146 read(nalu, nalUnit); 147 #if VIDYO_VPS_INTEGRATION 148 Int viewId = 0; 149 Int depth = 0; 150 151 if(nalu.m_nalUnitType != NAL_UNIT_VPS || nalu.m_layerId) 152 { 153 // code assumes that the first nal unit is VPS 154 // currently, this is a hack that requires non-first VPSs have non-zero layer_id 155 viewId = getVPSAccess()->getActiveVPS()->getViewId(nalu.m_layerId); 156 depth = getVPSAccess()->getActiveVPS()->getDepthFlag(nalu.m_layerId); 157 } 158 viewDepthId = nalu.m_layerId; // coding order T0D0T1D1T2D2 159 #else 142 160 Int viewId = nalu.m_viewId; 143 161 Int depth = nalu.m_isDepth ? 1 : 0; 144 162 viewDepthId = viewId * 2 + depth; // coding order T0D0T1D1T2D2 163 #endif 164 145 165 newPicture[viewDepthId] = false; 146 166 if( viewDepthId >= m_tDecTop.size() ) 147 167 { 168 #if VIDYO_VPS_INTEGRATION 169 increaseNumberOfViews( viewDepthId, viewId, depth ); 170 #else 148 171 increaseNumberOfViews( viewDepthId +1 ); 172 #endif 149 173 } 150 174 if(m_iMaxTemporalLayer >= 0 && nalu.m_temporalId > m_iMaxTemporalLayer) … … 392 416 m_pocLastDisplay[viewDepthId] = -MAX_INT; 393 417 } 394 418 #if VIDYO_VPS_INTEGRATION 419 Void TAppDecTop::increaseNumberOfViews ( UInt layerId, UInt viewId, UInt isDepth ) 420 #else 395 421 Void TAppDecTop::increaseNumberOfViews ( Int newNumberOfViewDepth ) 396 { 422 #endif 423 { 424 #if VIDYO_VPS_INTEGRATION 425 Int newNumberOfViewDepth = layerId + 1; 426 #endif 397 427 if ( m_outputBitDepth == 0 ) 398 428 { 399 429 m_outputBitDepth = g_uiBitDepth + g_uiBitIncrement; 400 430 } 431 #if !VIDYO_VPS_INTEGRATION 401 432 Int viewId = (newNumberOfViewDepth-1)>>1; // coding order T0D0T1D1T2D2 402 433 Bool isDepth = ((newNumberOfViewDepth % 2) == 0); // coding order T0D0T1D1T2D2 434 #endif 403 435 if( isDepth ) 404 436 m_useDepth = true; -
trunk/source/App/TAppDecoder/TAppDecTop.h
r56 r77 74 74 CamParsCollector m_cCamParsCollector; 75 75 #if DEPTH_MAP_GENERATION 76 #if VIDYO_VPS_INTEGRATION 77 TComVPSAccess m_cVPSAccess; 78 #endif 76 79 TComSPSAccess m_cSPSAccess; 77 80 TComAUPicAccess m_cAUPicAccess; … … 85 88 Void destroy (); ///< destroy internal members 86 89 Void decode (); ///< main decoding function 90 #if VIDYO_VPS_INTEGRATION 91 Void increaseNumberOfViews (UInt layerId, UInt viewId, UInt isDepth); 92 #else 87 93 Void increaseNumberOfViews (Int newNumberOfViewDepth); 94 #endif 88 95 TDecTop* getTDecTop ( Int viewId, Bool isDepth ); 89 96 … … 92 99 93 100 #if DEPTH_MAP_GENERATION 101 #if VIDYO_VPS_INTEGRATION 102 TComVPSAccess* getVPSAccess () { return &m_cVPSAccess; } 103 #endif 94 104 TComSPSAccess* getSPSAccess () { return &m_cSPSAccess; } 95 105 TComAUPicAccess* getAUPicAccess() { return &m_cAUPicAccess; }
Note: See TracChangeset for help on using the changeset viewer.