Changeset 839 in SHVCSoftware


Ignore:
Timestamp:
25 Jul 2014, 18:35:47 (11 years ago)
Author:
qualcomm
Message:

JCTVC-R0227: Signal VST params for base layer when intenal (Macro: VPS_VUI_VST_PARAMS)

Signal VST parameters for BL only when it is internal.

From: Adarsh K. Ramasubramonian <aramasub@…>

Location:
branches/SHM-dev/source/Lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r838 r839  
    4545
    4646#define VPS_RESERVED_FLAGS               1      ///< vps_base_layer_internal_flag and vps_base_layer_available_flag
     47#define VPS_VUI_VST_PARAMS               1      ///< JCTVC-R0227: Related to signalling of VST parameters of the base layer.
    4748#define VPS_VUI_OFFSET                   1      ///< N0085: Signal VPS VUI offset in the VPS extension
    4849#define O0137_MAX_LAYERID                1      ///< JCTVC-O0137, JCTVC-O0200, JCTVC-O0223: restrict nuh_layer_id and vps_max_layers_minus1
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r838 r839  
    22012201  else
    22022202  {
     2203#if VPS_VUI_VST_PARAMS
     2204    vps->setNumVideoSignalInfo(vps->getMaxLayers() - vps->getBaseLayerInternalFlag() ? 0 : 1);
     2205#else
    22032206    vps->setNumVideoSignalInfo(vps->getMaxLayers());
     2207#endif
    22042208  }
    22052209
     
    22122216    READ_CODE(8, uiCode, "matrix_coeffs_vps" );vps->setMaxtrixCoeff(i,uiCode);
    22132217  }
     2218#if VPS_VUI_VST_PARAMS
     2219  if( vps->getVideoSigPresentVpsFlag() && vps->getNumVideoSignalInfo() > 1 )
     2220  {
     2221    for(i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++)
     2222    {
     2223      READ_CODE(4, uiCode, "vps_video_signal_info_idx" ); vps->setVideoSignalInfoIdx(i, uiCode);
     2224    }
     2225  }
     2226  else if ( !vps->getVideoSigPresentVpsFlag() )
     2227  {
     2228    for(i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++)
     2229    {
     2230      vps->setVideoSignalInfoIdx( i, i );
     2231    }
     2232  }
     2233  else // ( vps->getNumVideoSignalInfo() = 0 )
     2234  {
     2235    for(i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++)
     2236    {
     2237      vps->setVideoSignalInfoIdx( i, 0 );
     2238    }
     2239  }
     2240#else
    22142241  if(!vps->getVideoSigPresentVpsFlag())
    22152242  {
     
    22332260    }
    22342261  }
     2262#endif
    22352263#endif
    22362264#if VPS_VUI_TILES_NOT_IN_USE__FLAG
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r837 r839  
    15451545  if (vps->getVideoSigPresentVpsFlag() && vps->getNumVideoSignalInfo() > 1 )
    15461546  {
     1547#if VPS_VUI_VST_PARAMS
     1548    for(i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++)
     1549    {
     1550      WRITE_CODE( vps->getVideoSignalInfoIdx(i), 4, "vps_video_signal_info_idx" );
     1551    }
     1552#else
    15471553    for (i=1; i < vps->getMaxLayers(); i++)
    15481554      WRITE_CODE(vps->getVideoSignalInfoIdx(i), 4, "vps_video_signal_info_idx" );
     1555#endif
    15491556  }
    15501557#endif
Note: See TracChangeset for help on using the changeset viewer.