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


Ignore:
Timestamp:
7 Jul 2015, 02:16:06 (9 years ago)
Author:
seregin
Message:

code rearrangement

Location:
branches/SHM-dev/source/Lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1117 r1123  
    20842084Void TDecTop::xDecodeSEI( TComInputBitstream* bs, const NalUnitType nalUnitType )
    20852085{
     2086  if(nalUnitType == NAL_UNIT_SUFFIX_SEI)
     2087  {
    20862088#if SVC_EXTENSION
    2087   if(nalUnitType == NAL_UNIT_SUFFIX_SEI)
    2088   {
    20892089    if (m_prevSliceSkipped) // No need to decode SEI messages of a skipped access unit
    20902090    {
    20912091      return;
    20922092    }
     2093#endif
    20932094#if LAYERS_NOT_PRESENT_SEI
    20942095    m_seiReader.parseSEImessage( bs, m_pcPic->getSEIs(), nalUnitType, m_parameterSetManagerDecoder.getActiveVPS(), m_parameterSetManagerDecoder.getActiveSPS(), m_pDecodedSEIOutputStream  );
    20952096#else
    2096     m_seiReader.parseSEImessage( bs, m_pcPic->getSEIs(), nalUnitType, m_parameterSetManagerDecoder.getActiveSPS(), m_pDecodedSEIOutputStream  );
     2097    m_seiReader.parseSEImessage( bs, m_pcPic->getSEIs(), nalUnitType, m_parameterSetManagerDecoder.getActiveSPS(), m_pDecodedSEIOutputStream );
    20972098#endif
    20982099  }
     
    21022103    m_seiReader.parseSEImessage( bs, m_SEIs, nalUnitType, m_parameterSetManagerDecoder.getActiveVPS(), m_parameterSetManagerDecoder.getActiveSPS(), m_pDecodedSEIOutputStream  );
    21032104#else
    2104     m_seiReader.parseSEImessage( bs, m_SEIs, nalUnitType, m_parameterSetManagerDecoder.getActiveSPS(), m_pDecodedSEIOutputStream  );
     2105    m_seiReader.parseSEImessage( bs, m_SEIs, nalUnitType, m_parameterSetManagerDecoder.getActiveSPS(), m_pDecodedSEIOutputStream );
    21052106#endif
    21062107    SEIMessages activeParamSets = getSeisByType(m_SEIs, SEI::ACTIVE_PARAMETER_SETS);
     
    21082109    {
    21092110      SEIActiveParameterSets *seiAps = (SEIActiveParameterSets*)(*activeParamSets.begin());
    2110 #if !R0247_SEI_ACTIVE
    2111       m_parameterSetManagerDecoder.applyPrefetchedPS();
    2112       assert(seiAps->activeSeqParameterSetId.size()>0);
    2113       if( !m_parameterSetManagerDecoder.activateSPSWithSEI( seiAps->activeSeqParameterSetId[0] ) )
    2114       {
    2115         printf ("Warning SPS activation with Active parameter set SEI failed");
    2116       }
    2117 #else
     2111#if R0247_SEI_ACTIVE
    21182112      getLayerDec(0)->m_parameterSetManagerDecoder.applyPrefetchedPS();
    21192113      assert(seiAps->activeSeqParameterSetId.size()>0);
     
    21312125        }
    21322126      }
    2133 #endif
    2134     }
    2135   }
    2136 #else
    2137   if(nalUnitType == NAL_UNIT_SUFFIX_SEI)
    2138   {
    2139 #if LAYERS_NOT_PRESENT_SEI
    2140     m_seiReader.parseSEImessage( bs, m_pcPic->getSEIs(), nalUnitType, m_parameterSetManagerDecoder.getActiveVPS(), m_parameterSetManagerDecoder.getActiveSPS(), m_pDecodedSEIOutputStream  );
    2141 #else
    2142     m_seiReader.parseSEImessage( bs, m_pcPic->getSEIs(), nalUnitType, m_parameterSetManagerDecoder.getActiveSPS(), m_pDecodedSEIOutputStream );
    2143 
    2144 #endif
    2145   }
    2146   else
    2147   {
    2148 #if LAYERS_NOT_PRESENT_SEI
    2149     m_seiReader.parseSEImessage( bs, m_SEIs, nalUnitType, m_parameterSetManagerDecoder.getActiveVPS(), m_parameterSetManagerDecoder.getActiveSPS(), m_pDecodedSEIOutputStream  );
    2150 #else
    2151     m_seiReader.parseSEImessage( bs, m_SEIs, nalUnitType, m_parameterSetManagerDecoder.getActiveSPS(), m_pDecodedSEIOutputStream );
    2152 #endif
    2153     SEIMessages activeParamSets = getSeisByType(m_SEIs, SEI::ACTIVE_PARAMETER_SETS);
    2154     if (activeParamSets.size()>0)
    2155     {
    2156       SEIActiveParameterSets *seiAps = (SEIActiveParameterSets*)(*activeParamSets.begin());
     2127#else
    21572128      m_parameterSetManagerDecoder.applyPrefetchedPS();
    21582129      assert(seiAps->activeSeqParameterSetId.size()>0);
     
    21612132        printf ("Warning SPS activation with Active parameter set SEI failed");
    21622133      }
    2163     }
    2164   }
    2165 #endif
     2134#endif
     2135    }
     2136  }
    21662137}
    21672138
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1116 r1123  
    227227  seiActiveParameterSets->activeVPSId = m_pcCfg->getVPS()->getVPSId();
    228228  seiActiveParameterSets->m_selfContainedCvsFlag = false;
    229   seiActiveParameterSets->m_noParameterSetUpdateFlag = false;
    230 #if !R0247_SEI_ACTIVE
    231   seiActiveParameterSets->numSpsIdsMinus1 = 0;
    232   seiActiveParameterSets->activeSeqParameterSetId.resize(seiActiveParameterSets->numSpsIdsMinus1 + 1);
    233   seiActiveParameterSets->activeSeqParameterSetId[0] = sps->getSPSId();
    234 #else
     229  seiActiveParameterSets->m_noParameterSetUpdateFlag = false; 
     230#if R0247_SEI_ACTIVE
    235231  seiActiveParameterSets->numSpsIdsMinus1 = m_pcCfg->getNumLayer()-1;
    236232  seiActiveParameterSets->activeSeqParameterSetId.resize(seiActiveParameterSets->numSpsIdsMinus1 + 1);
     
    244240     seiActiveParameterSets->layerSpsIdx[c] = c;
    245241  }
     242#else
     243  seiActiveParameterSets->numSpsIdsMinus1 = 0;
     244  seiActiveParameterSets->activeSeqParameterSetId.resize(seiActiveParameterSets->numSpsIdsMinus1 + 1);
     245  seiActiveParameterSets->activeSeqParameterSetId[0] = sps->getSPSId();
    246246#endif
    247247  return seiActiveParameterSets;
Note: See TracChangeset for help on using the changeset viewer.