Ignore:
Timestamp:
29 Jul 2014, 02:49:46 (10 years ago)
Author:
qualcomm
Message:

Update implementation of rep format for independent non-base layer such that it uses the rep format that is signalled in SPS, instead of in VPS.

Adoption of JCTVC-R0279. (Macro: R0279_REP_FORMAT_INBL)

From: Hendry <fhendry@…>

File:
1 edited

Legend:

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

    r844 r848  
    25302530  TComVPS* vps = NULL;
    25312531  vps = parameterSetManager->getPrefetchedVPS(sps->getVPSId());
     2532#if R0279_REP_FORMAT_INBL
     2533  if ( vps->getVpsExtensionFlag() == 1 && (rpcSlice->getLayerId() == 0 || sps->getV1CompatibleSPSFlag() == 1) )
     2534  {
     2535    assert( sps->getPicWidthInLumaSamples() <= vps->getVpsRepFormat( vps->getVpsRepFormatIdx(rpcSlice->getLayerId()) )->getPicWidthVpsInLumaSamples() );
     2536    assert( sps->getPicHeightInLumaSamples() <= vps->getVpsRepFormat( vps->getVpsRepFormatIdx(rpcSlice->getLayerId()) )->getPicHeightVpsInLumaSamples() );
     2537    assert( sps->getChromaFormatIdc() <= vps->getVpsRepFormat( vps->getVpsRepFormatIdx(rpcSlice->getLayerId()) )->getChromaFormatVpsIdc() );
     2538    assert( sps->getBitDepthY() <= vps->getVpsRepFormat( vps->getVpsRepFormatIdx(rpcSlice->getLayerId()) )->getBitDepthVpsLuma() );
     2539    assert( sps->getBitDepthC() <= vps->getVpsRepFormat( vps->getVpsRepFormatIdx(rpcSlice->getLayerId()) )->getBitDepthVpsChroma() );
     2540#else
    25322541  if ( rpcSlice->getLayerId() == 0 && vps->getVpsExtensionFlag() == 1 )
    25332542  {
     
    25372546    assert( sps->getBitDepthY() <= vps->getVpsRepFormat( vps->getVpsRepFormatIdx(0) )->getBitDepthVpsLuma() );
    25382547    assert( sps->getBitDepthC() <= vps->getVpsRepFormat( vps->getVpsRepFormatIdx(0) )->getBitDepthVpsChroma() );
     2548#endif
    25392549  }
    25402550  else if ( vps->getVpsExtensionFlag() == 1 )
Note: See TracChangeset for help on using the changeset viewer.