Changeset 1515 in SHVCSoftware


Ignore:
Timestamp:
6 Jan 2016, 18:17:57 (9 years ago)
Author:
seregin
Message:

add inference to num_partitions_in_scheme_minus1, ticket #90

File:
1 edited

Legend:

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

    r1502 r1515  
    37623762  if( vps->getNumHrdParameters() + vps->getVpsNumAddHrdParams() > 0 )
    37633763  {
     3764    // When vps_base_layer_internal_flag is equal to 1, the value of num_partitions_in_scheme_minus1[ 0 ][ 0 ] is inferred to be equal to 0.
     3765    if( vps->getBaseLayerInternalFlag() )
     3766    {
     3767      vps->setNumPartitionsInSchemeMinus1(0, 0, 0);
     3768    }
     3769
    37643770    for (Int h = 1; h < vps->getNumOutputLayerSets(); h++)
    37653771    {
    37663772      Int lsIdx = vps->getOutputLayerSetIdx(h);
    37673773      READ_UVLC(uiCode, "num_signalled_partitioning_schemes[h]"); vps->setNumSignalledPartitioningSchemes(h, uiCode);
     3774
     3775      // When vps_base_layer_internal_flag is equal to 1, the value of num_partitions_in_scheme_minus1[ h ][ 0 ] is inferred to be equal to NumLayersInIdList[ h ] - 1.
     3776      if( vps->getBaseLayerInternalFlag() )
     3777      {
     3778        vps->setNumPartitionsInSchemeMinus1(h, 0, vps->getNumLayersInIdList(h) - 1);
     3779      }
    37683780
    37693781      for (Int j = 1; j < vps->getNumSignalledPartitioningSchemes(h) + 1; j++)
Note: See TracChangeset for help on using the changeset viewer.