Changeset 1471 in SHVCSoftware for branches/SHM-dev/source/App
- Timestamp:
- 9 Sep 2015, 18:58:08 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp
r1470 r1471 132 132 . 133 133 */ 134 #if SVC_EXTENSION135 134 Void TAppDecTop::decode() 136 135 { … … 160 159 xCreateDecLib(); 161 160 xInitDecLib (); 161 #if !SVC_EXTENSION 162 m_iPOCLastDisplay += m_iSkipFrame; // set the last displayed POC correctly for skip forward. 163 #endif 162 164 163 165 #if Q0074_COLOUR_REMAPPING_SEI … … 175 177 176 178 // main decoder loop 179 #if SVC_EXTENSION 177 180 Bool openedReconFile[MAX_LAYERS]; // reconstruction file not yet opened. (must be performed after SPS is seen) 178 181 Bool loopFiltered[MAX_LAYERS]; … … 426 429 // destroy internal classes 427 430 xDestroyDecLib(); 428 } 429 #else 430 Void TAppDecTop::decode() 431 { 432 Int poc; 433 TComList<TComPic*>* pcListPic = NULL; 434 435 ifstream bitstreamFile(m_bitstreamFileName.c_str(), ifstream::in | ifstream::binary); 436 if (!bitstreamFile) 437 { 438 fprintf(stderr, "\nfailed to open bitstream file `%s' for reading\n", m_bitstreamFileName.c_str()); 439 exit(EXIT_FAILURE); 440 } 441 442 InputByteStream bytestream(bitstreamFile); 443 444 if (!m_outputDecodedSEIMessagesFilename.empty() && m_outputDecodedSEIMessagesFilename!="-") 445 { 446 m_seiMessageFileStream.open(m_outputDecodedSEIMessagesFilename.c_str(), std::ios::out); 447 if (!m_seiMessageFileStream.is_open() || !m_seiMessageFileStream.good()) 448 { 449 fprintf(stderr, "\nUnable to open file `%s' for writing decoded SEI messages\n", m_outputDecodedSEIMessagesFilename.c_str()); 450 exit(EXIT_FAILURE); 451 } 452 } 453 454 // create & initialize internal classes 455 xCreateDecLib(); 456 xInitDecLib (); 457 m_iPOCLastDisplay += m_iSkipFrame; // set the last displayed POC correctly for skip forward. 458 459 #if Q0074_COLOUR_REMAPPING_SEI 460 // clear contents of colour-remap-information-SEI output file 461 if (!m_colourRemapSEIFileName.empty()) 462 { 463 std::ofstream ofile(m_colourRemapSEIFileName.c_str()); 464 if (!ofile.good() || !ofile.is_open()) 465 { 466 fprintf(stderr, "\nUnable to open file '%s' for writing colour-remap-information-SEI video\n", m_colourRemapSEIFileName.c_str()); 467 exit(EXIT_FAILURE); 468 } 469 } 470 #endif 471 472 // main decoder loop 431 #else 473 432 Bool openedReconFile = false; // reconstruction file not yet opened. (must be performed after SPS is seen) 474 433 Bool loopFiltered = false; … … 604 563 // destroy internal classes 605 564 xDestroyDecLib(); 606 } 607 #endif 565 #endif 566 } 608 567 609 568 // ====================================================================================================================
Note: See TracChangeset for help on using the changeset viewer.