Ignore:
Timestamp:
24 Jun 2013, 16:01:58 (12 years ago)
Author:
tech
Message:

Added encoder parameters related to output layers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.3-dev0/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r490 r492  
    840840  assert( pcVPS->getVpsMaxLayerId() < MAX_VPS_NUH_LAYER_ID_PLUS1 );
    841841  READ_CODE( 6, uiCode, "vps_max_nuh_layer_id" );   pcVPS->setVpsMaxLayerId( uiCode );
     842
     843  READ_UVLC(    uiCode, "vps_max_num_layer_sets_minus1" );               pcVPS->setVpsNumLayerSetsMinus1( uiCode );
     844  for( UInt opsIdx = 1; opsIdx <= pcVPS->getVpsNumLayerSetsMinus1(); opsIdx ++ )
     845  {
     846    for( UInt i = 0; i <= pcVPS->getVpsMaxLayerId(); i ++ )
    842847#else
    843848  assert( pcVPS->getMaxNuhReservedZeroLayerId() < MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1 );
    844849  READ_CODE( 6, uiCode, "vps_max_nuh_reserved_zero_layer_id" );   pcVPS->setMaxNuhReservedZeroLayerId( uiCode );
    845 #endif
     850
    846851  READ_UVLC(    uiCode, "vps_max_op_sets_minus1" );               pcVPS->setMaxOpSets( uiCode + 1 );
    847852  for( UInt opsIdx = 1; opsIdx <= ( pcVPS->getMaxOpSets() - 1 ); opsIdx ++ )
    848853  {
    849854    // Operation point set
    850 #if H_MV
    851     for( UInt i = 0; i <= pcVPS->getVpsMaxLayerId(); i ++ )
    852 #else
    853855    for( UInt i = 0; i <= pcVPS->getMaxNuhReservedZeroLayerId(); i ++ )
    854856#endif
     
    948950    READ_CODE( 6,  uiCode, "vps_num_profile_tier_level_minus1" );  pcVPS->setVpsNumProfileTierLevelMinus1( uiCode );
    949951
    950     for( Int i = 1; i <= pcVPS->getMaxOpSets() - 1; i++ )
     952    for( Int i = 1; i <= pcVPS->getVpsNumberLayerSetsMinus1(); i++ )
    951953    {
    952954      READ_FLAG(  uiCode, "vps_profile_present_flag[i]" );    pcVPS->setVpsProfilePresentFlag( i, uiCode == 1 );
Note: See TracChangeset for help on using the changeset viewer.