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/TLibEncoder/TEncCavlc.cpp

    r109 r110  
    591591  assert( pcVPS->getNumHrdParameters() <= MAX_VPS_LAYER_SETS_PLUS1 );
    592592  assert( pcVPS->getMaxLayerId() < MAX_VPS_LAYER_ID_PLUS1 );
     593#if !VPS_EXTN_OP_LAYER_SETS     // num layer sets set in TAppEncTop.cpp
    593594  pcVPS->setNumLayerSets(1);
     595#endif
    594596  WRITE_CODE( pcVPS->getMaxLayerId(), 6,                       "vps_max_layer_id" );
    595597  WRITE_UVLC( pcVPS->getNumLayerSets() - 1,                 "vps_num_layer_sets_minus1" );
     
    610612#endif
    611613    {
     614#if !VPS_EXTN_OP_LAYER_SETS     // layer Id include flag set in TAppEncTop.cpp
    612615      // Only applicable for version 1
    613616      pcVPS->setLayerIdIncludedFlag( true, opsIdx, i );
     617#endif
    614618      WRITE_FLAG( pcVPS->getLayerIdIncludedFlag( opsIdx, i ) ? 1 : 0, "layer_id_included_flag[opsIdx][i]" );
    615619    }
     
    667671
    668672  // ... More syntax elements to be written here
     673  // Target output layer signalling
     674  WRITE_UVLC( vps->getNumOutputLayerSets(),            "vps_num_output_layer_sets");
     675  for(Int i = 0; i < vps->getNumOutputLayerSets(); i++)
     676  {
     677    WRITE_UVLC( vps->getOutputLayerSetIdx(i),           "vps_output_layer_set_idx[i]");
     678    Int lsIdx = vps->getOutputLayerSetIdx(i);
     679    for(Int j = 0; j <= vps->getMaxLayerId(); j++)
     680    {
     681      if(vps->getLayerIdIncludedFlag(lsIdx, j))
     682      {
     683        WRITE_FLAG( vps->getOutputLayerFlag(lsIdx, j), "vps_output_layer_flag[lsIdx][j]");
     684      }
     685    }
     686  }
    669687}
    670688#endif
Note: See TracChangeset for help on using the changeset viewer.