Changeset 1050 in SHVCSoftware for branches/SHM-dev/source


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

rename layerIdx to layerId

Location:
branches/SHM-dev/source/App/TAppDecoder
Files:
2 edited

Legend:

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

    r1049 r1050  
    12291229#if ALIGNED_BUMPING
    12301230// Function outputs a picture, and marks it as not needed for output.
    1231 Void TAppDecTop::xOutputAndMarkPic( TComPic *pic, const Char *reconFile, const Int layerIdx, Int &pocLastDisplay, DpbStatus &dpbStatus )
     1231Void TAppDecTop::xOutputAndMarkPic( TComPic *pic, const Char *reconFile, const Int layerId, Int &pocLastDisplay, DpbStatus &dpbStatus )
    12321232{
    12331233  if ( reconFile )
     
    12421242#endif
    12431243    TComPicYuv* pPicCYuvRec = pic->getPicYuvRec();
    1244     m_acTVideoIOYuvReconFile[layerIdx].write( pPicCYuvRec, m_outputColourSpaceConvert,
     1244    m_acTVideoIOYuvReconFile[layerId].write( pPicCYuvRec, m_outputColourSpaceConvert,
    12451245      conf.getWindowLeftOffset()  * xScal + defDisp.getWindowLeftOffset(),
    12461246      conf.getWindowRightOffset() * xScal + defDisp.getWindowRightOffset(),
     
    12661266#endif
    12671267#if FIX_ALIGN_BUMPING
    1268     dpbStatus.m_numPicsInSubDpb[dpbStatus.m_layerIdToSubDpbIdMap[layerIdx]]--;
     1268    dpbStatus.m_numPicsInSubDpb[dpbStatus.m_layerIdToSubDpbIdMap[layerId]]--;
    12691269#else
    12701270    dpbStatus.m_numPicsInSubDpb[layerIdx]--;
     
    14821482  for( Int dpbLayerCtr = 0; dpbLayerCtr < dpbStatus.m_numLayers; dpbLayerCtr++)
    14831483  {
    1484     Int layerIdx  = dpbStatus.m_targetDecLayerIdList[dpbLayerCtr];
     1484    Int layerId  = dpbStatus.m_targetDecLayerIdList[dpbLayerCtr];
    14851485#else
    14861486  for( Int layerIdx = 0; layerIdx < dpbStatus.m_numLayers; layerIdx++)
     
    14881488#endif
    14891489    // Check if picture with pocValue is present.
    1490     it = find( listOfPocsInEachLayer[layerIdx].begin(), listOfPocsInEachLayer[layerIdx].end(), pocValue );
    1491     if( it != listOfPocsInEachLayer[layerIdx].end() )  // picture found.
    1492     {
    1493       Int picPosition = std::distance( listOfPocsInEachLayer[layerIdx].begin(), it );
     1490    it = find( listOfPocsInEachLayer[layerId].begin(), listOfPocsInEachLayer[layerId].end(), pocValue );
     1491    if( it != listOfPocsInEachLayer[layerId].end() )  // picture found.
     1492    {
     1493      Int picPosition = std::distance( listOfPocsInEachLayer[layerId].begin(), it );
    14941494      Int j;
    1495       for(j = 0, iterPic = m_acTDecTop[layerIdx].getListPic()->begin(); j < listOfPocsPositionInEachLayer[layerIdx][picPosition]; j++) // Picture to be output
     1495      for(j = 0, iterPic = m_acTDecTop[layerId].getListPic()->begin(); j < listOfPocsPositionInEachLayer[layerId][picPosition]; j++) // Picture to be output
    14961496      {
    14971497        iterPic++;
     
    14991499      TComPic *pic = *iterPic;
    15001500
    1501       xOutputAndMarkPic( pic, m_pchReconFile[layerIdx], layerIdx, m_aiPOCLastDisplay[layerIdx], dpbStatus );
     1501      xOutputAndMarkPic( pic, m_pchReconFile[layerId], layerId, m_aiPOCLastDisplay[layerId], dpbStatus );
    15021502
    15031503#if CONFORMANCE_BITSTREAM_MODE
     
    15241524#endif
    15251525
    1526       listOfPocsInEachLayer[layerIdx].erase( it );
    1527       listOfPocsPositionInEachLayer[layerIdx].erase( listOfPocsPositionInEachLayer[layerIdx].begin() + picPosition );
     1526      listOfPocsInEachLayer[layerId].erase( it );
     1527      listOfPocsPositionInEachLayer[layerId].erase( listOfPocsPositionInEachLayer[layerId].begin() + picPosition );
    15281528#if FIX_ALIGN_BUMPING
    1529       dpbStatus.m_numPicsInSubDpb[dpbStatus.m_layerIdToSubDpbIdMap[layerIdx]]--;
     1529      dpbStatus.m_numPicsInSubDpb[dpbStatus.m_layerIdToSubDpbIdMap[layerId]]--;
    15301530#endif
    15311531    }
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.h

    r1044 r1050  
    110110  Void flushAllPictures(Int layerId, Bool outputPictures);
    111111
    112   Void xOutputAndMarkPic( TComPic *pic, const Char *reconFile, const Int layerID, Int &pocLastDisplay, DpbStatus &dpbStatus);
     112  Void xOutputAndMarkPic( TComPic *pic, const Char *reconFile, const Int layerId, Int &pocLastDisplay, DpbStatus &dpbStatus);
    113113#if POC_RESET_IDC_DECODER
    114114  Void outputAllPictures(Int layerId, Bool notOutputCurrAu);
Note: See TracChangeset for help on using the changeset viewer.