Changeset 157 in SHVCSoftware for branches/SHM-2.0-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
8 May 2013, 01:28:01 (12 years ago)
Author:
qualcomm
Message:

Move direct_dependency_flag (MACRO: VPS_MOVE_DIR_DEPENDENCY_FLAG)

Move the syntax element direct_dependency_flag[][] to immediately follow the syntax elements dimension_id[][] in the VPS extn.

From: Adarsh K. Ramasubramonian <aramasub@…>

File:
1 edited

Legend:

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

    r156 r157  
    903903  }
    904904#endif
    905 
     905#if VPS_MOVE_DIR_DEPENDENCY_FLAG
     906#if VPS_EXTN_DIRECT_REF_LAYERS
     907  // For layer 0
     908  vps->setNumDirectRefLayers(0, 0);
     909  // For other layers
     910  for( Int layerCtr = 1; layerCtr <= vps->getMaxLayers() - 1; layerCtr++)
     911  {
     912    UInt numDirectRefLayers = 0;
     913    for( Int refLayerCtr = 0; refLayerCtr < layerCtr; refLayerCtr++)
     914    {
     915      READ_FLAG(uiCode, "direct_dependency_flag[i][j]" ); vps->setDirectDependencyFlag(layerCtr, refLayerCtr, uiCode? true : false);
     916      if(uiCode)
     917      {
     918        vps->setRefLayerId(layerCtr, numDirectRefLayers, refLayerCtr);
     919        numDirectRefLayers++;
     920      }
     921    }
     922    vps->setNumDirectRefLayers(layerCtr, numDirectRefLayers);
     923  }
     924#endif
     925#endif
    906926#if VPS_EXTN_PROFILE_INFO
    907927  // Profile-tier-level signalling
     
    941961  } 
    942962#endif
     963#if !VPS_MOVE_DIR_DEPENDENCY_FLAG
    943964#if VPS_EXTN_DIRECT_REF_LAYERS
    944965  // For layer 0
     
    959980    vps->setNumDirectRefLayers(layerCtr, numDirectRefLayers);
    960981  }
     982#endif
    961983#endif
    962984}
Note: See TracChangeset for help on using the changeset viewer.