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


Ignore:
Timestamp:
4 Oct 2013, 02:16:14 (11 years ago)
Author:
qualcomm
Message:

N0085: nuh_layer_id value of VPS NALU (MACRO: VPS_NUH_LAYER_ID)

Added assert statement in the decoder to ensure that the value of nuh_layer_id of VPS NAL unit shall be equal to 0. In the encoder, the value of nuh_layer_id of VPS would always be 0.

From: Adarsh K. Ramasubramonian <aramasub@…>

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

Legend:

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

    r407 r408  
    4747#define HM12_RANDOM_ACCESS               1
    4848#define RANDOM_ACCESS_SEI_FIX            1
    49 
     49#define VPS_NUH_LAYER_ID                 1      ///< N0085: Assert that the nuh_layer_id of VPS NAL unit should be 0
    5050#if SVC_EXTENSION
    5151#define MAX_LAYERS                       2      ///< max number of layers the codec is supposed to handle
  • branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r405 r408  
    13151315  {
    13161316    case NAL_UNIT_VPS:
     1317#if VPS_NUH_LAYER_ID
     1318      assert( nalu.m_layerId == 0 ); // Non-conforming bitstream. The value of nuh_layer_id of VPS NAL unit shall be equal to 0.
     1319#endif
    13171320      xDecodeVPS();
    13181321#if AVC_BASE
  • branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r399 r408  
    13431343    {
    13441344#if SVC_EXTENSION
     1345#if VPS_NUH_LAYER_ID
     1346      OutputNALUnit nalu(NAL_UNIT_VPS, 0, 0        ); // The value of nuh_layer_id of VPS NAL unit shall be equal to 0.
     1347#else
    13451348      OutputNALUnit nalu(NAL_UNIT_VPS, 0, m_layerId);
     1349#endif
    13461350#if AVC_BASE
    13471351      if( ( m_layerId == 1 && m_pcEncTop->getVPS()->getAvcBaseLayerFlag() ) || ( m_layerId == 0 && !m_pcEncTop->getVPS()->getAvcBaseLayerFlag() ) )
Note: See TracChangeset for help on using the changeset viewer.