Changeset 744 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
25 Apr 2014, 20:16:53 (11 years ago)
Author:
sharp
Message:

JCTVC-Q0102 Proposal 3 - S. Deshpande <sdeshpande@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r742 r744  
    13711371{
    13721372#if DPB_PARAMS_MAXTLAYERS
     1373#if BITRATE_PICRATE_SIGNALLING
     1374    Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumLayerSets()];
     1375    for(Int i = 0; i < vps->getNumLayerSets(); i++)
     1376#else
    13731377    Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumOutputLayerSets()];
    13741378    for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)
     1379#endif
    13751380    {
    13761381        UInt maxSLMinus1 = 0;
     
    13801385        Int optLsIdx = i;
    13811386#endif
     1387#if BITRATE_PICRATE_SIGNALLING
     1388        optLsIdx = i;
     1389#endif
    13821390        for(Int k = 0; k < vps->getNumLayersInIdList(optLsIdx); k++ ) {
    13831391            Int  lId = vps->getLayerSetLayerIdList(optLsIdx, k);
     
    13851393        }
    13861394        MaxSubLayersInLayerSetMinus1[ i ] = maxSLMinus1;
    1387     }
    1388 #endif
     1395#if BITRATE_PICRATE_SIGNALLING
     1396        vps->setMaxSLayersInLayerSetMinus1(i,MaxSubLayersInLayerSetMinus1[ i ]);
     1397#endif
     1398    }
     1399#endif
     1400   
    13891401   
    13901402  for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)
     
    13951407    WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]");
    13961408#if DPB_PARAMS_MAXTLAYERS
     1409#if BITRATE_PICRATE_SIGNALLING
     1410    for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ vps->getOutputLayerSetIdx( i ) ]; j++)
     1411#else
    13971412    for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ i ]; j++)
     1413#endif
    13981414#else
    13991415    for(Int j = 0; j < vps->getMaxTLayers(); j++)
     
    14631479    for( i = 0; i < vps->getNumLayerSets(); i++ )
    14641480    {
     1481#if BITRATE_PICRATE_SIGNALLING
     1482      for( j = 0; j <= vps->getMaxSLayersInLayerSetMinus1(i); j++ )
     1483#else
    14651484      for( j = 0; j < vps->getMaxTLayers(); j++ )
     1485#endif
    14661486      {
    14671487        if( vps->getBitRatePresentVpsFlag() )
Note: See TracChangeset for help on using the changeset viewer.