Changeset 479 in 3DVCSoftware for branches/HTM-DEV-0.3-dev2/source/Lib/TLibDecoder/TDecTop.cpp
- Timestamp:
- 18 Jun 2013, 23:24:53 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev2/source/Lib/TLibDecoder/TDecTop.cpp
r478 r479 37 37 38 38 #include "NALread.h" 39 #if H_3D_IV_MERGE40 #include "../../App/TAppDecoder/TAppDecTop.h"41 #endif42 39 #include "TDecTop.h" 43 40 … … 392 389 } 393 390 394 #if H_3D_IV_MERGE395 Void TDecTop::init(TAppDecTop* pcTAppDecTop)396 #else397 391 Void TDecTop::init() 398 #endif399 392 { 400 393 // initialize ROM … … 402 395 initROM(); 403 396 #endif 404 m_cGopDecoder.init( &m_cEntropyDecoder, &m_cSbacDecoder, &m_cBinCABAC, &m_cCavlcDecoder, &m_cSliceDecoder, &m_cLoopFilter, &m_cSAO 405 #if H_3D_IV_MERGE 406 , &m_cDepthMapGenerator 407 #endif 408 ); 397 m_cGopDecoder.init( &m_cEntropyDecoder, &m_cSbacDecoder, &m_cBinCABAC, &m_cCavlcDecoder, &m_cSliceDecoder, &m_cLoopFilter, &m_cSAO ); 409 398 m_cSliceDecoder.init( &m_cEntropyDecoder, &m_cCuDecoder ); 410 399 m_cEntropyDecoder.init(&m_cPrediction); 411 #if H_3D_IV_MERGE412 m_tAppDecTop = pcTAppDecTop;413 m_cDepthMapGenerator.init( &m_cPrediction, m_tAppDecTop->getVPSAccess(), m_tAppDecTop->getSPSAccess(), m_tAppDecTop->getAUPicAccess() );414 #endif415 400 } 416 401 … … 769 754 770 755 m_cSliceDecoder.create(); 771 #if H_3D_IV_MERGE772 UInt uiPdm = ( m_apcSlicePilot->getSPS()->getViewIndex() ? m_apcSlicePilot->getSPS()->getPredDepthMapGeneration() : m_tAppDecTop->getSPSAccess()->getPdm() );773 m_cDepthMapGenerator.create( true, m_apcSlicePilot->getSPS()->getPicWidthInLumaSamples(), m_apcSlicePilot->getSPS()->getPicHeightInLumaSamples(), g_uiMaxCUDepth, g_uiMaxCUWidth, g_uiMaxCUHeight, g_bitDepthY, PDM_SUB_SAMP_EXP_X(uiPdm), PDM_SUB_SAMP_EXP_Y(uiPdm) );774 TComDepthMapGenerator* pcDMG0 = m_tAppDecTop->getDecTop0()->getDepthMapGenerator();775 if( m_apcSlicePilot->getSPS()->getViewIndex() == 1 && ( pcDMG0->getSubSampExpX() != PDM_SUB_SAMP_EXP_X(uiPdm) || pcDMG0->getSubSampExpY() != PDM_SUB_SAMP_EXP_Y(uiPdm) ) )776 {777 pcDMG0->create( true, m_apcSlicePilot->getSPS()->getPicWidthInLumaSamples(), m_apcSlicePilot->getSPS()->getPicHeightInLumaSamples(), g_uiMaxCUDepth, g_uiMaxCUWidth, g_uiMaxCUHeight, g_bitDepthY, PDM_SUB_SAMP_EXP_X(uiPdm), PDM_SUB_SAMP_EXP_Y(uiPdm) );778 }779 #endif780 756 } 781 757 else … … 918 894 919 895 #endif 920 #if H_3D_IV_MERGE 921 TComPic * const pcTexturePic = m_isDepth ? m_tAppDecTop->getPicFromView( m_viewIndex, pcSlice->getPOC(), false ) : NULL; 922 assert( !m_isDepth || pcTexturePic != NULL ); 923 pcSlice->setTexturePic( pcTexturePic ); 896 #if H_3D_GEN 897 pcSlice->setIvPicLists( m_ivPicLists ); 898 #if H_3D_IV_MERGE 899 assert( !getIsDepth() || ( pcSlice->getTexturePic() != 0 ) ); 900 #endif 924 901 #endif 925 902 // For generalized B
Note: See TracChangeset for help on using the changeset viewer.