Changeset 189 in SHVCSoftware for trunk/source/App/TAppDecoder
- Timestamp:
- 13 May 2013, 16:58:44 (12 years ago)
- Location:
- trunk/source
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source
- Property svn:mergeinfo changed
/branches/SHM-2.0-dev/source (added) merged: 133-167,169-182,184-188
- Property svn:mergeinfo changed
-
trunk/source/App/TAppDecoder/TAppDecCfg.h
r125 r189 60 60 #if SVC_EXTENSION 61 61 Char* m_pchReconFile [MAX_LAYERS]; ///< output reconstruction file name 62 #if AVC_BASE63 Char* m_pchBLReconFile; ///< input BL reconstruction file name64 Int m_iBLSourceWidth;65 Int m_iBLSourceHeight;66 #if AVC_SYNTAX67 Char* m_pchBLSyntaxFile; ///< input BL syntax file name68 #endif69 #endif70 62 #else 71 63 Char* m_pchReconFile; ///< output reconstruction file name 72 #endif73 #if SYNTAX_OUTPUT74 Char* m_pchBLSyntaxFile; ///< input BL syntax file name75 Int m_iBLSourceWidth;76 Int m_iBLSourceHeight;77 Int m_iBLFrames;78 64 #endif 79 65 Int m_iSkipFrame; ///< counter for frames prior to the random access point to skip … … 86 72 #if SVC_EXTENSION 87 73 Int m_tgtLayerId; ///< target layer ID 74 #if AVC_BASE 75 Char* m_pchBLReconFile; ///< input BL reconstruction file name 76 Int m_iBLSourceWidth; 77 Int m_iBLSourceHeight; 78 #if AVC_SYNTAX 79 Char* m_pchBLSyntaxFile; ///< input BL syntax file name 88 80 #endif 81 #endif 82 #endif 83 84 #if SYNTAX_OUTPUT 85 Char* m_pchBLSyntaxFile; ///< input BL syntax file name 86 Int m_iBLSourceWidth; 87 Int m_iBLSourceHeight; 88 Int m_iBLFrames; 89 #endif 90 89 91 std::vector<Int> m_targetDecLayerIdSet; ///< set of LayerIds to be included in the sub-bitstream extraction process. 90 92 Int m_respectDefDispWindow; ///< Only output content inside the default display window … … 103 105 #if SVC_EXTENSION 104 106 , m_tgtLayerId(0) 105 #endif106 , m_respectDefDispWindow(0)107 107 #if AVC_BASE 108 108 , m_iBLSourceWidth(0) … … 114 114 , m_iBLFrames(0) 115 115 #endif 116 #endif 117 , m_respectDefDispWindow(0) 116 118 {} 117 119 virtual ~TAppDecCfg() {} -
trunk/source/App/TAppDecoder/TAppDecTop.cpp
r125 r189 157 157 #if AVC_BASE 158 158 TComPic pcBLPic; 159 if( !m_pchBLReconFile ) 160 { 161 printf( "Wrong base layer YUV input file\n" ); 162 exit(EXIT_FAILURE); 163 } 164 fstream streamYUV( m_pchBLReconFile, fstream::in | fstream::binary ); 165 if( !streamYUV.good() ) 166 { 167 printf( "Base layer YUV input reading error\n" ); 168 exit(EXIT_FAILURE); 159 fstream streamYUV; 160 if( m_pchBLReconFile ) 161 { 162 streamYUV.open( m_pchBLReconFile, fstream::in | fstream::binary ); 169 163 } 170 164 TComList<TComPic*> *cListPic = m_acTDecTop[0].getListPic(); … … 174 168 cListPic->pushBack( &pcBLPic ); 175 169 #if AVC_SYNTAX 176 if( !m_pchBLSyntaxFile ) 177 { 178 printf( "Wrong base layer syntax file\n" ); 179 exit(EXIT_FAILURE); 180 } 181 fstream streamSyntaxFile( m_pchBLSyntaxFile, fstream::in | fstream::binary ); 182 if( !streamSyntaxFile.good() ) 183 { 184 printf( "Base layer syntax input reading error\n" ); 185 exit(EXIT_FAILURE); 170 fstream streamSyntaxFile; 171 if( m_pchBLSyntaxFile ) 172 { 173 streamSyntaxFile.open( m_pchBLSyntaxFile, fstream::in | fstream::binary ); 186 174 } 187 175 m_acTDecTop[0].setBLSyntaxFile( &streamSyntaxFile ); … … 254 242 } 255 243 if ( bNewPicture && bNewPOC && 256 ( nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR 244 ( nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_W_RADL 257 245 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_N_LP 258 246 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA_N_LP 259 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA NT260 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA ) )247 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA_W_RADL 248 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA_W_LP ) ) 261 249 { 262 250 xFlushOutput( pcListPic, curLayerId ); … … 414 402 } 415 403 if ( bNewPicture && 416 ( nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR 404 ( nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_W_RADL 417 405 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_N_LP 418 406 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA_N_LP 419 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA NT420 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA ) )407 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA_W_RADL 408 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA_W_LP ) ) 421 409 { 422 410 xFlushOutput( pcListPic ); … … 572 560 if ( m_pchReconFile ) 573 561 { 562 #if SYNTAX_OUTPUT && ILP_DECODED_PICTURE 563 m_cTVideoIOYuvReconFile.write( pcPic->getPicYuvRec() ); 564 #else 574 565 const Window &conf = pcPic->getConformanceWindow(); 575 566 const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window(); … … 579 570 conf.getWindowTopOffset() + defDisp.getWindowTopOffset(), 580 571 conf.getWindowBottomOffset() + defDisp.getWindowBottomOffset() ); 572 #endif 581 573 } 582 574
Note: See TracChangeset for help on using the changeset viewer.