Changeset 1010 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibDecoder


Ignore:
Timestamp:
3 Feb 2015, 23:23:47 (10 years ago)
Author:
seregin
Message:

port the fix for the ticket #56 (rev 1009)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-upgrade/source/Lib/TLibDecoder/TDecTop.cpp

    r1008 r1010  
    763763#endif
    764764    }
     765
     766#if P0182_VPS_VUI_PS_FLAG
     767    UInt layerIdx = activeVPS->getLayerIdInVps( m_layerId );
     768
     769    if( activeVPS->getBaseLayerPSCompatibilityFlag(layerIdx) )
     770    {
     771      RepFormat* repFormat = activeVPS->getVpsRepFormat(activeVPS->getVpsRepFormatIdx(layerIdx));
     772
     773      assert( pps->getLayerId() == 0 );
     774      assert( sps->getLayerId() == 0 );
     775      assert( repFormat->getChromaFormatVpsIdc() == sps->getChromaFormatIdc() );
     776      assert( repFormat->getSeparateColourPlaneVpsFlag() == 0 );
     777      assert( repFormat->getPicHeightVpsInLumaSamples() == sps->getPicHeightInLumaSamples() );
     778      assert( repFormat->getPicWidthVpsInLumaSamples()  == sps->getPicWidthInLumaSamples() );
     779      assert( repFormat->getBitDepthVpsLuma()   == sps->getBitDepth(CHANNEL_TYPE_LUMA) );
     780      assert( repFormat->getBitDepthVpsChroma() == sps->getBitDepth(CHANNEL_TYPE_CHROMA) );
     781      assert( repFormat->getConformanceWindowVps().getWindowLeftOffset()   == sps->getConformanceWindow().getWindowLeftOffset() );
     782      assert( repFormat->getConformanceWindowVps().getWindowRightOffset()  == sps->getConformanceWindow().getWindowRightOffset() );
     783      assert( repFormat->getConformanceWindowVps().getWindowTopOffset()    == sps->getConformanceWindow().getWindowTopOffset() );
     784      assert( repFormat->getConformanceWindowVps().getWindowBottomOffset() == sps->getConformanceWindow().getWindowBottomOffset() );
     785    }   
     786#endif
    765787  }
    766788#endif
Note: See TracChangeset for help on using the changeset viewer.