Changeset 476 in 3DVCSoftware for branches/HTM-DEV-0.3-dev2/source/Lib/TLibDecoder/TDecTop.cpp
- Timestamp:
- 18 Jun 2013, 05:16:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev2/source/Lib/TLibDecoder/TDecTop.cpp
r446 r476 37 37 38 38 #include "NALread.h" 39 #if H_3D_IV_MERGE 40 #include "../../App/TAppDecoder/TAppDecTop.h" 41 #endif 39 42 #include "TDecTop.h" 40 43 … … 389 392 } 390 393 394 #if H_3D_IV_MERGE 395 Void TDecTop::init(TAppDecTop* pcTAppDecTop) 396 #else 391 397 Void TDecTop::init() 398 #endif 392 399 { 393 400 // initialize ROM … … 395 402 initROM(); 396 403 #endif 397 m_cGopDecoder.init( &m_cEntropyDecoder, &m_cSbacDecoder, &m_cBinCABAC, &m_cCavlcDecoder, &m_cSliceDecoder, &m_cLoopFilter, &m_cSAO); 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 ); 398 409 m_cSliceDecoder.init( &m_cEntropyDecoder, &m_cCuDecoder ); 399 410 m_cEntropyDecoder.init(&m_cPrediction); 411 412 #if H_3D_IV_MERGE 413 m_tAppDecTop = pcTAppDecTop; 414 m_cDepthMapGenerator.init( &m_cPrediction, m_tAppDecTop->getVPSAccess(), m_tAppDecTop->getSPSAccess(), m_tAppDecTop->getAUPicAccess() ); 415 #endif 400 416 } 401 417 … … 754 770 755 771 m_cSliceDecoder.create(); 772 #if H_3D_IV_MERGE 773 UInt uiPdm = ( m_apcSlicePilot->getSPS()->getViewIndex() ? m_apcSlicePilot->getSPS()->getPredDepthMapGeneration() : m_tAppDecTop->getSPSAccess()->getPdm() ); 774 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) ); 775 TComDepthMapGenerator* pcDMG0 = m_tAppDecTop->getDecTop0()->getDepthMapGenerator(); 776 if( m_apcSlicePilot->getSPS()->getViewIndex() == 1 && ( pcDMG0->getSubSampExpX() != PDM_SUB_SAMP_EXP_X(uiPdm) || pcDMG0->getSubSampExpY() != PDM_SUB_SAMP_EXP_Y(uiPdm) ) ) 777 { 778 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) ); 779 } 780 #endif 756 781 } 757 782 else … … 893 918 #endif 894 919 920 #endif 921 922 #if H_3D_IV_MERGE 923 TComPic * const pcTexturePic = m_isDepth ? m_tAppDecTop->getPicFromView( m_viewIndex, pcSlice->getPOC(), false ) : NULL; 924 assert( !m_isDepth || pcTexturePic != NULL ); 925 pcSlice->setTexturePic( pcTexturePic ); 895 926 #endif 896 927 // For generalized B
Note: See TracChangeset for help on using the changeset viewer.