Changeset 1471 in SHVCSoftware


Ignore:
Timestamp:
9 Sep 2015, 18:58:08 (9 years ago)
Author:
seregin
Message:

reusing HM code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp

    r1470 r1471  
    132132 .
    133133 */
    134 #if SVC_EXTENSION
    135134Void TAppDecTop::decode()
    136135{
     
    160159  xCreateDecLib();
    161160  xInitDecLib  ();
     161#if !SVC_EXTENSION
     162  m_iPOCLastDisplay += m_iSkipFrame;      // set the last displayed POC correctly for skip forward.
     163#endif
    162164
    163165#if Q0074_COLOUR_REMAPPING_SEI
     
    175177
    176178  // main decoder loop
     179#if SVC_EXTENSION
    177180  Bool openedReconFile[MAX_LAYERS]; // reconstruction file not yet opened. (must be performed after SPS is seen)
    178181  Bool loopFiltered[MAX_LAYERS];
     
    426429  // destroy internal classes
    427430  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
    473432  Bool openedReconFile = false; // reconstruction file not yet opened. (must be performed after SPS is seen)
    474433  Bool loopFiltered = false;
     
    604563  // destroy internal classes
    605564  xDestroyDecLib();
    606 }
    607 #endif
     565#endif
     566}
    608567
    609568// ====================================================================================================================
Note: See TracChangeset for help on using the changeset viewer.