Changeset 1049 in SHVCSoftware for branches/SHM-dev/source/App/TAppDecoder


Ignore:
Timestamp:
3 Mar 2015, 23:36:18 (10 years ago)
Author:
seregin
Message:

fix the index for m_ppcTEncTop to be layerId

File:
1 edited

Legend:

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

    r1044 r1049  
    15451545    for( Int dpbLayerCtr = 0; dpbLayerCtr < dpbStatus.m_numLayers; dpbLayerCtr++)
    15461546    {
    1547       Int layerIdx = dpbStatus.m_targetDecLayerIdList[dpbLayerCtr];
     1547      Int layerId = dpbStatus.m_targetDecLayerIdList[dpbLayerCtr];
    15481548      // Output all picutres "decoded" in that layer that have POC less than the current picture
    1549       std::vector<TComPic> *layerBuffer = (m_acTDecTop->getLayerDec(layerIdx))->getConfListPic();
     1549      std::vector<TComPic> *layerBuffer = (m_acTDecTop->getLayerDec(layerId))->getConfListPic();
    15501550      // Write all pictures to the file.
    1551       if( this->getDecodedYuvLayerRefresh(layerIdx) )
    1552       {
    1553         m_outputBitDepth[CHANNEL_TYPE_LUMA]   = g_bitDepth[CHANNEL_TYPE_LUMA]   = g_bitDepthLayer[CHANNEL_TYPE_LUMA][layerIdx];
    1554         m_outputBitDepth[CHANNEL_TYPE_CHROMA] = g_bitDepth[CHANNEL_TYPE_CHROMA] = g_bitDepthLayer[CHANNEL_TYPE_CHROMA][layerIdx];
     1551      if( this->getDecodedYuvLayerRefresh(layerId) )
     1552      {
     1553        m_outputBitDepth[CHANNEL_TYPE_LUMA]   = g_bitDepth[CHANNEL_TYPE_LUMA]   = g_bitDepthLayer[CHANNEL_TYPE_LUMA][layerId];
     1554        m_outputBitDepth[CHANNEL_TYPE_CHROMA] = g_bitDepth[CHANNEL_TYPE_CHROMA] = g_bitDepthLayer[CHANNEL_TYPE_CHROMA][layerId];
    15551555
    15561556        char tempFileName[256];
    1557         strcpy(tempFileName, this->getDecodedYuvLayerFileName( layerIdx ).c_str());
    1558         m_confReconFile[layerIdx].open(tempFileName, true, m_outputBitDepth, m_outputBitDepth, g_bitDepth ); // write mode
    1559         this->setDecodedYuvLayerRefresh( layerIdx, false );
     1557        strcpy(tempFileName, this->getDecodedYuvLayerFileName( layerId ).c_str());
     1558        m_confReconFile[layerId].open(tempFileName, true, m_outputBitDepth, m_outputBitDepth, g_bitDepth ); // write mode
     1559        this->setDecodedYuvLayerRefresh( layerId, false );
    15601560      }
    15611561
     
    15751575        {
    15761576          TComPicYuv* pPicCYuvRec = checkPic.getPicYuvRec();
    1577           m_confReconFile[layerIdx].write( pPicCYuvRec, m_outputColourSpaceConvert,
     1577          m_confReconFile[layerId].write( pPicCYuvRec, m_outputColourSpaceConvert,
    15781578            conf.getWindowLeftOffset()  * xScal + defDisp.getWindowLeftOffset(),
    15791579            conf.getWindowRightOffset() * xScal + defDisp.getWindowRightOffset(),
Note: See TracChangeset for help on using the changeset viewer.