Ignore:
Timestamp:
3 Apr 2013, 21:34:49 (12 years ago)
Author:
qualcomm
Message:

Signal output layer sets in VPS extension (MACRO: VPS_EXTN_OP_LAYER_SETS)

Include signalling of output layer sets in the VPS extension. Does not include configuration support for specifying the output layer sets.

From: Adarsh K. Ramasubramonian <aramasub@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HM-10.0-dev-SHM/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r109 r110  
    839839Void TDecCavlc::parseVPSExtension(TComVPS *vps)
    840840
     841  UInt uiCode;
    841842  // ... More syntax elements to be parsed here
    842843
     844  // Target output layer signalling
     845  READ_UVLC( uiCode,            "vps_num_output_layer_sets"); vps->setNumOutputLayerSets(uiCode);
     846  for(Int i = 0; i < vps->getNumOutputLayerSets(); i++)
     847  {
     848    READ_UVLC( uiCode,           "vps_output_layer_set_idx[i]"); vps->setOutputLayerSetIdx(i, uiCode);
     849    Int lsIdx = vps->getOutputLayerSetIdx(i);
     850    for(Int j = 0; j <= vps->getMaxLayerId(); j++)
     851    {
     852      if(vps->getLayerIdIncludedFlag(lsIdx, j))
     853      {
     854        READ_FLAG( uiCode, "vps_output_layer_flag[lsIdx][j]"); vps->setOutputLayerFlag(lsIdx, j, uiCode);
     855      }
     856    }
     857  } 
    843858  // ... More syntax elements to be parsed here
    844859}
Note: See TracChangeset for help on using the changeset viewer.