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


Ignore:
Timestamp:
8 Jul 2015, 22:47:39 (9 years ago)
Author:
seregin
Message:

macro cleanup: POC_RESET_IDC_DECODER, POC_RESET_IDC

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

Legend:

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

    r1203 r1210  
    245245      {
    246246        bNewPicture = m_acTDecTop[nalu.m_layerId].decode(nalu, m_iSkipFrame, m_aiPOCLastDisplay[nalu.m_layerId], curLayerId, bNewPOC);
    247 #if POC_RESET_IDC_DECODER
    248         if ( (bNewPicture && m_acTDecTop[nalu.m_layerId].getParseIdc() == 3) || (m_acTDecTop[nalu.m_layerId].getParseIdc() == 0) )
     247
     248#if SVC_POC
     249        if( (bNewPicture && m_acTDecTop[nalu.m_layerId].getParseIdc() == 3) || (m_acTDecTop[nalu.m_layerId].getParseIdc() == 0) )
    249250#else
    250251        if (bNewPicture)
     
    265266#endif
    266267        }
    267 #if POC_RESET_IDC_DECODER
     268#if SVC_POC
    268269        else if(m_acTDecTop[nalu.m_layerId].getParseIdc() == 1)
    269270        {
     
    281282    }
    282283
    283 #if POC_RESET_IDC_DECODER
    284     if ( ( (bNewPicture && m_acTDecTop[nalu.m_layerId].getParseIdc() == 3) || m_acTDecTop[nalu.m_layerId].getParseIdc() == 0 || !bitstreamFile || nalu.m_nalUnitType == NAL_UNIT_EOS ) &&
     284#if SVC_POC
     285    if( ( (bNewPicture && m_acTDecTop[nalu.m_layerId].getParseIdc() == 3) || m_acTDecTop[nalu.m_layerId].getParseIdc() == 0 || !bitstreamFile || nalu.m_nalUnitType == NAL_UNIT_EOS ) &&
    285286        !m_acTDecTop[nalu.m_layerId].getFirstSliceInSequence() )
    286287#else
     
    310311    }
    311312
    312 #if POC_RESET_IDC_DECODER
     313#if SVC_POC
    313314    if( bNewPicture && m_acTDecTop[nalu.m_layerId].getParseIdc() == 0 )
    314315    {
     
    342343      }
    343344
    344 #if POC_RESET_IDC_DECODER
     345#if SVC_POC
    345346      if( bNewPicture && m_acTDecTop[nalu.m_layerId].getParseIdc() != 0 )
    346347      // New picture, slice header parsed but picture not decoded
     
    14011402
    14021403    // Find the status of the DPB
    1403 #if POC_RESET_IDC_DECODER
     1404#if SVC_POC
    14041405    xFindDPBStatus(listOfPocs, listOfPocsInEachLayer, listOfPocsPositionInEachLayer, dpbStatus, false);
    14051406#else
     
    17861787                            , std::vector<Int> *listOfPocsPositionInEachLayer
    17871788                            , DpbStatus &dpbStatus
    1788 #if POC_RESET_IDC_DECODER
    17891789                            , Bool notOutputCurrAu
    1790 #endif
    17911790                            )
    17921791{
     
    18171816          vps = pic->getSlice(0)->getVPS();
    18181817        }
    1819 #if POC_RESET_IDC_DECODER
     1818
    18201819        if( !(pic->isCurrAu() && notOutputCurrAu ) )
    18211820        {
    1822 #endif
    18231821          std::vector<Int>::iterator it;
    18241822          if( pic->getOutputMark() ) // && pic->getPOC() > m_aiPOCLastDisplay[i])
    18251823          {
    18261824            it = find( listOfPocs.begin(), listOfPocs.end(), pic->getPOC() ); // Check if already included
     1825
    18271826            if( it == listOfPocs.end() )  // New POC value - i.e. new AU - add to the list
    18281827            {
     
    18321831            listOfPocsPositionInEachLayer [i].push_back( picPositionInList  );  // For ease of access
    18331832          }
     1833
    18341834          if( pic->getSlice(0)->isReferenced() || pic->getOutputMark() )
    18351835          {
    18361836            dpbStatus.m_numPicsInSubDpb[i]++;  // Count pictures that are "used for reference" or "needed for output"
    18371837          }
    1838 #if POC_RESET_IDC_DECODER
    1839         }
    1840 #endif
    1841       }
     1838        }
     1839      }
     1840
    18421841      iterPic++;
    18431842      picPositionInList++;
     
    18741873
    18751874
    1876 #if POC_RESET_IDC_DECODER
    18771875Void TAppDecTop::outputAllPictures(Int layerId, Bool notOutputCurrPic)
    18781876{
     
    19001898  }
    19011899}
    1902 #endif
    19031900#endif
    19041901
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.h

    r1100 r1210  
    111111
    112112  Void xOutputAndMarkPic( TComPic *pic, const Char *reconFile, const Int layerId, Int &pocLastDisplay, DpbStatus &dpbStatus);
    113 #if POC_RESET_IDC_DECODER
    114113  Void outputAllPictures(Int layerId, Bool notOutputCurrAu);
    115 #endif
    116114  Void xFindDPBStatus( std::vector<Int> &listOfPocs
    117115                            , std::vector<Int> *listOfPocsInEachLayer
    118116                            , std::vector<Int> *listOfPocsPositionInEachLayer
    119117                            , DpbStatus &dpbStatus
    120 #if POC_RESET_IDC_DECODER
    121118                            , Bool notOutputCurrAu = true
    122 #endif
    123119                            );
    124120
Note: See TracChangeset for help on using the changeset viewer.