Changeset 80 in 3DVCSoftware for branches/HTM-3.0-Vidyo/source/App/TAppDecoder


Ignore:
Timestamp:
18 Jun 2012, 21:39:59 (13 years ago)
Author:
vidyo
Message:

decoder bug fix - fixing crash when decoding view-only (no depth coding) bitstreams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-3.0-Vidyo/source/App/TAppDecoder/TAppDecTop.cpp

    r71 r80  
    439439    m_tVideoIOYuvReconFile.push_back(new TVideoIOYuv);
    440440    Char buffer[4];
     441#if VIDYO_VPS_INTEGRATION
     442    sprintf(buffer,"_%i", viewId );
     443#else
    441444    sprintf(buffer,"_%i", (Int)(m_tVideoIOYuvReconFile.size()-1) / 2 );
     445#endif
    442446    Char* nextFilename = NULL;
     447#if VIDYO_VPS_INTEGRATION
     448    if( isDepth)
     449#else
    443450    if( (m_tVideoIOYuvReconFile.size() % 2) == 0 )
     451#endif
    444452    {
    445453      Char* pchTempFilename = NULL;
     
    452460      xAppendToFileNameEnd( m_pchReconFile, buffer, nextFilename);
    453461    }
     462#if !VIDYO_VPS_INTEGRATION
    454463    if( isDepth || ( !isDepth && (m_tVideoIOYuvReconFile.size() % 2) == 1 ) )
     464#endif
    455465    {
    456466      m_tVideoIOYuvReconFile.back()->open( nextFilename, true, m_outputBitDepth, g_uiBitDepth + g_uiBitIncrement );
     
    465475  {
    466476    m_tDecTop.push_back(new TDecTop);
     477#if !VIDYO_VPS_INTEGRATION
    467478    if( isDepth || ( !isDepth && (m_tVideoIOYuvReconFile.size() % 2) == 1 ) )
    468479    {
     480#endif
    469481      m_tDecTop.back()->create();
    470482      m_tDecTop.back()->init( this, newNumberOfViewDepth == 1);
     
    473485      m_tDecTop.back()->setPictureDigestEnabled(m_pictureDigestEnabled);
    474486      m_tDecTop.back()->setCamParsCollector( &m_cCamParsCollector );
    475     }
     487#if !VIDYO_VPS_INTEGRATION
     488    }
     489#endif
    476490  }
    477491}
Note: See TracChangeset for help on using the changeset viewer.