Changeset 476 in 3DVCSoftware for branches/HTM-DEV-0.3-dev2/source/App/TAppDecoder
- Timestamp:
- 18 Jun 2013, 05:16:27 (12 years ago)
- Location:
- branches/HTM-DEV-0.3-dev2/source/App/TAppDecoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev2/source/App/TAppDecoder/TAppDecTop.cpp
r456 r476 641 641 m_tDecTop[ decIdx ] = new TDecTop; 642 642 m_tDecTop[ decIdx ]->create(); 643 #if H_3D_IV_MERGE 644 m_tDecTop[ decIdx ]->init(this ); 645 #else 643 646 m_tDecTop[ decIdx ]->init( ); 647 #endif 644 648 m_tDecTop[ decIdx ]->setLayerId( layerId ); 645 649 m_tDecTop[ decIdx ]->setDecodedPictureHashSEIEnabled(m_decodedPictureHashSEIEnabled); … … 678 682 } 679 683 #endif 684 #if H_3D_IV_MERGE 685 TComPic* TAppDecTop::xGetPicFromView( Int viewIdx, Int poc, Bool isDepth ) 686 { 687 assert( ( viewIdx >= 0 ) ); 688 689 TComList<TComPic*>* apcListPic = m_tDecTop[ (isDepth ? 1 : 0) + viewIdx * 2 ]->getListPic(); 690 691 TComPic* pcPic = NULL; 692 for( TComList<TComPic*>::iterator it=apcListPic->begin(); it!=apcListPic->end(); it++ ) 693 { 694 if( (*it)->getPOC() == poc ) 695 { 696 pcPic = *it; 697 break; 698 } 699 } 700 return pcPic; 701 } 702 #endif 703 680 704 //! \} -
branches/HTM-DEV-0.3-dev2/source/App/TAppDecoder/TAppDecTop.h
r446 r476 49 49 #include "TAppDecCfg.h" 50 50 51 #if H_3D_IV_MERGE 52 #include "TLibCommon/TComDepthMapGenerator.h" 53 #endif 51 54 //! \ingroup TAppDecoder 52 55 //! \{ … … 73 76 // for output control 74 77 Bool m_abDecFlag[ MAX_GOP ]; ///< decoded flag in one GOP 78 79 #if H_3D_IV_MERGE 80 Int m_fcoViewDepthId; 81 Char m_fcoOrder[MAX_VIEW_NUM*2]; 82 #endif 75 83 #if H_MV 76 84 Int m_pocLastDisplay [ MAX_NUM_LAYERS ]; ///< last POC in display order … … 82 90 FILE* m_pScaleOffsetFile; 83 91 CamParsCollector m_cCamParsCollector; 92 #if H_3D_IV_MERGE 93 TComVPSAccess m_cVPSAccess; 94 TComSPSAccess m_cSPSAccess; 95 TComAUPicAccess m_cAUPicAccess; 96 #endif 84 97 #endif 85 98 public: … … 90 103 Void destroy (); ///< destroy internal members 91 104 Void decode (); ///< main decoding function 92 105 106 #if H_3D_IV_MERGE 107 TDecTop* getTDecTop ( Int viewIdx, Bool isDepth ); 108 TComPic* getPicFromView ( Int viewIdx, Int poc, bool isDepth ) { return xGetPicFromView( viewIdx, poc, isDepth ); } 109 #endif 110 111 #if H_3D_IV_MERGE 112 TComVPSAccess* getVPSAccess () { return &m_cVPSAccess; } 113 TComSPSAccess* getSPSAccess () { return &m_cSPSAccess; } 114 TComAUPicAccess* getAUPicAccess() { return &m_cAUPicAccess; } 115 TDecTop* getDecTop0 () { return m_tDecTop[0]; } 116 #endif 117 93 118 protected: 94 119 Void xCreateDecLib (); ///< create internal classes 95 120 Void xDestroyDecLib (); ///< destroy internal classes 96 121 Void xInitDecLib (); ///< initialize decoder class 97 122 123 #if H_3D_IV_MERGE 124 TComPic* xGetPicFromView( Int viewIdx, Int poc, Bool isDepth ); 125 #endif 126 98 127 #if H_MV 99 128 Void xWriteOutput ( TComList<TComPic*>* pcListPic, Int layerId, Int tId ); ///< write YUV to file … … 104 133 Void xFlushOutput ( TComList<TComPic*>* pcListPic ); ///< flush all remaining decoded pictures to file 105 134 #endif 135 106 136 Bool isNaluWithinTargetDecLayerIdSet ( InputNALUnit* nalu ); ///< check whether given Nalu is within targetDecLayerIdSet 107 137 };
Note: See TracChangeset for help on using the changeset viewer.