Changeset 114 in SHVCSoftware for branches


Ignore:
Timestamp:
5 Apr 2013, 10:18:38 (12 years ago)
Author:
qualcomm
Message:

Rename vps_max_layers_minus1 in VPS (MACRO: VPS_RENAME)

Rename variables vps_reserved_zero_6bits to vps_max_layers_minus1.

From: Adarsh K. Ramasubramonian <aramasub@…>

Location:
branches/HM-10.0-dev-SHM/source
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HM-10.0-dev-SHM/source/App/TAppEncoder/TAppEncTop.cpp

    r112 r114  
    8282    vps.setTemporalNestingFlag(true);
    8383  }
     84#if !VPS_RENAME
    8485  vps.setMaxLayers                        ( 1 );
     86#endif
    8587  for(Int i = 0; i < MAX_TLAYER; i++)
    8688  {
     
    692694    m_acTEncTop[layer].init();
    693695  }
     696#if VPS_RENAME
     697  m_acTEncTop[0].getVPS()->setMaxLayers( m_numLayers );
     698#endif
    694699#if VPS_EXTN_OP_LAYER_SETS
    695700  TComVPS* vps = m_acTEncTop[0].getVPS();
  • branches/HM-10.0-dev-SHM/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r112 r114  
    729729  READ_CODE( 4,  uiCode,  "vps_video_parameter_set_id" );         pcVPS->setVPSId( uiCode );
    730730  READ_CODE( 2,  uiCode,  "vps_reserved_three_2bits" );           assert(uiCode == 3);
     731#if VPS_RENAME
     732  READ_CODE( 6,  uiCode,  "vps_max_layers_minus1" );              pcVPS->setMaxLayers( uiCode + 1);
     733#else
    731734  READ_CODE( 6,  uiCode,  "vps_reserved_zero_6bits" );            assert(uiCode == 0);
     735#endif
    732736  READ_CODE( 3,  uiCode,  "vps_max_sub_layers_minus1" );          pcVPS->setMaxTLayers( uiCode + 1 );
    733737  READ_FLAG(     uiCode,  "vps_temporal_id_nesting_flag" );       pcVPS->setTemporalNestingFlag( uiCode ? true:false );
  • branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncCavlc.cpp

    r112 r114  
    566566  WRITE_CODE( pcVPS->getVPSId(),                    4,        "vps_video_parameter_set_id" );
    567567  WRITE_CODE( 3,                                    2,        "vps_reserved_three_2bits" );
     568#if VPS_RENAME
     569  WRITE_CODE( pcVPS->getMaxLayers() - 1,            6,        "vps_max_layers_minus1" );           
     570#else
    568571  WRITE_CODE( 0,                                    6,        "vps_reserved_zero_6bits" );
     572#endif
    569573  WRITE_CODE( pcVPS->getMaxTLayers() - 1,           3,        "vps_max_sub_layers_minus1" );
    570574  WRITE_FLAG( pcVPS->getTemporalNestingFlag(),                "vps_temporal_id_nesting_flag" );
Note: See TracChangeset for help on using the changeset viewer.