Changeset 577 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
29 Jan 2014, 01:55:16 (11 years ago)
Author:
qualcomm
Message:

JCTVC-P0295: modify default_one_target_output_layer_idc to default_target_output_layer_idc and also its semantics

Macro: P0295_DEFAULT_OUT_LAYER_IDC

Contact -- fhendry@…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r576 r577  
    965965  if( numOutputLayerSets > 1 )
    966966  {
     967#if P0295_DEFAULT_OUT_LAYER_IDC
     968    WRITE_CODE( vps->getDefaultTargetOutputLayerIdc(), 2, "default_target_output_layer_idc" );   
     969#else
    967970#if O0109_DEFAULT_ONE_OUT_LAYER_IDC
    968971    WRITE_CODE( vps->getDefaultOneTargetOutputLayerIdc(), 2, "default_one_target_output_layer_idc" );   
     
    970973    WRITE_FLAG( vps->getDefaultOneTargetOutputLayerFlag(), "default_one_target_output_layer_flag" );   
    971974#endif
     975#endif
    972976  }
    973977
     
    981985        numBits++;
    982986      }
    983       WRITE_CODE( vps->getOutputLayerSetIdx(i) - 1, numBits, "output_layer_set_idx_minus1"); 
     987      WRITE_CODE( vps->getOutputLayerSetIdx(i) - 1, numBits, "output_layer_set_idx_minus1");
     988#if P0295_DEFAULT_OUT_LAYER_IDC
     989    }
     990    if ( i > (vps->getNumLayerSets() - 1) || vps->getDefaultTargetOutputLayerIdc() >= 2 ) //Instead of == 2, >= 2 is used to follow the agreement that value 3 should be interpreted as 2
     991    {
     992#endif
    984993      Int lsIdx = vps->getOutputLayerSetIdx(i);
    985994      for(j = 0; j < vps->getNumLayersInIdList(lsIdx) - 1; j++)
Note: See TracChangeset for help on using the changeset viewer.