Changeset 382 in SHVCSoftware for branches/SHM-3.1-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
5 Sep 2013, 23:09:52 (11 years ago)
Author:
qualcomm
Message:

Integration of N0160_TILE_BOUNDARY_ALIGNED_FLAG and N0160_VUI_EXT_ILP_REF

Location:
branches/SHM-3.1-dev/source/Lib/TLibEncoder
Files:
2 edited

Legend:

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

    r377 r382  
    886886  WRITE_FLAG(vps->getSingleLayerForNonIrapFlag(), "single_layer_for_non_irap_flag" );
    887887#endif
     888
     889#if !VPS_VUI
     890  WRITE_FLAG( 0,                     "vps_vui_present_flag" );
     891#else
     892  WRITE_FLAG( 1,                     "vps_vui_present_flag" );
     893  codeVPSVUI(vps); 
     894#endif
     895}
     896#endif
     897
     898#if VPS_VUI
     899Void TEncCavlc::codeVPSVUI (TComVPS *vps)
     900{
     901  Int i,j;
     902#if N0160_TILE_BOUNDARY_ALIGNED_FLAG
     903  for(i = 1; i < vps->getMaxLayers(); i++)
     904  {
     905    for(j = 0; j < vps->getNumDirectRefLayers(vps->getLayerIdInNuh(i)); j++)
     906    {
     907      WRITE_FLAG( vps->getTileBoundariesAlignedFlag(i,j) ? 1 : 0 , "tile_boundaries_aligned_flag[i][j]" );
     908    }
     909  } 
     910#endif
     911#if N0160_VUI_EXT_ILP_REF
     912  WRITE_FLAG( vps->getNumIlpRestrictedRefLayers() ? 1 : 0 , "num_ilp_restricted_ref_layers" );   
     913  if( vps->getNumIlpRestrictedRefLayers())
     914  {
     915    for(i = 1; i < vps->getMaxLayers(); i++)
     916    {
     917      for(j = 0; j < vps->getNumDirectRefLayers(vps->getLayerIdInNuh(i)); j++)
     918      {       
     919        WRITE_UVLC(vps->getMinSpatialSegmentOffsetPlus1( i, j),    "min_spatial_segment_offset_plus1[i][j]");
     920       
     921        if( vps->getMinSpatialSegmentOffsetPlus1(i,j ) > 0 )
     922        { 
     923          WRITE_FLAG( vps->getCtuBasedOffsetEnabledFlag( i, j) ? 1 : 0 , "ctu_based_offset_enabled_flag[i][j]" );   
     924         
     925          if(vps->getCtuBasedOffsetEnabledFlag(i,j)) 
     926          {
     927            WRITE_UVLC(vps->getMinHorizontalCtuOffsetPlus1( i, j),    "min_horizontal_ctu_offset_plus1[i][j]");           
     928          }
     929        } 
     930      } 
     931    }
     932  }
     933#endif
    888934}
    889935#endif
  • branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncCavlc.h

    r345 r382  
    8787  Void  codeVPSExtension        ( TComVPS* pcVPS );
    8888#endif
     89#if VPS_VUI
     90  Void codeVPSVUI               (TComVPS *vps);
     91#endif
    8992  Void  codeVUI                 ( TComVUI *pcVUI, TComSPS* pcSPS );
    9093  Void  codeSPS                 ( TComSPS* pcSPS );
Note: See TracChangeset for help on using the changeset viewer.