Changeset 913 in SHVCSoftware for branches


Ignore:
Timestamp:
4 Nov 2014, 00:58:54 (10 years ago)
Author:
seregin
Message:

add getNonHEVCBaseLayerFlag check for getBitDepthY and getBitDepthC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r908 r913  
    23012301#if R0279_REP_FORMAT_INBL
    23022302  if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 )
     2303  {
    23032304#else
    23042305  if ( layerId == 0 )
    2305 #endif
    2306   {
    2307     retVal = sps->getBitDepthY();
     2306  {
     2307#endif
     2308#if VPS_AVC_BL_FLAG_REMOVAL
     2309    if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() )
     2310#else
     2311    if( layerId == 0 && vps->getAvcBaseLayerFlag() )
     2312#endif
     2313    {
     2314      retVal = vps->getVpsRepFormat(layerId)->getBitDepthVpsLuma();
     2315    }
     2316    else
     2317    {
     2318      retVal = sps->getBitDepthY();
     2319    }
    23082320  }
    23092321  else
     
    23312343#if R0279_REP_FORMAT_INBL
    23322344  if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 )
     2345  {
    23332346#else
    23342347  if ( layerId == 0 )
    2335 #endif
    2336   {
    2337     retVal = sps->getBitDepthC();
     2348  {
     2349#endif
     2350#if VPS_AVC_BL_FLAG_REMOVAL
     2351    if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() )
     2352#else
     2353    if( layerId == 0 && vps->getAvcBaseLayerFlag() )
     2354#endif
     2355    {
     2356      retVal = vps->getVpsRepFormat(layerId)->getBitDepthVpsChroma();
     2357    }
     2358    else
     2359    {
     2360      retVal = sps->getBitDepthC();
     2361    }
    23382362  }
    23392363  else
Note: See TracChangeset for help on using the changeset viewer.