Changeset 637 in SHVCSoftware


Ignore:
Timestamp:
20 Mar 2014, 23:40:26 (11 years ago)
Author:
seregin
Message:

fix for the ticket #20, provided by Auyeung, Cheung <Cheung.Auyeung@…>

Location:
branches/SHM-5.1-dev/source/Lib
Files:
2 edited

Legend:

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

    r636 r637  
    349349        TComPicYuv* pcPicYuvRecBase = (*(pcTDecTopBase->getListPic()->begin()))->getPicYuvRec();
    350350#if REPN_FORMAT_IN_VPS
     351#if O0194_DIFFERENT_BITDEPTH_EL_BL
     352        UInt refLayerId = pcSlice->getVPS()->getRefLayerId(m_layerId, i);
     353        Bool sameBitDepths = ( g_bitDepthYLayer[m_layerId] == g_bitDepthYLayer[refLayerId] ) && ( g_bitDepthCLayer[m_layerId] == g_bitDepthCLayer[refLayerId] );
     354
     355        if( pcPicYuvRecBase->getWidth() != pcSlice->getPicWidthInLumaSamples() || pcPicYuvRecBase->getHeight() != pcSlice->getPicHeightInLumaSamples() || !zeroOffsets || !sameBitDepths )
     356#else
    351357        if(pcPicYuvRecBase->getWidth() != pcSlice->getPicWidthInLumaSamples() || pcPicYuvRecBase->getHeight() != pcSlice->getPicHeightInLumaSamples() || !zeroOffsets )
     358#endif
    352359#else
    353360        if(pcPicYuvRecBase->getWidth() != pcSlice->getSPS()->getPicWidthInLumaSamples() || pcPicYuvRecBase->getHeight() != pcSlice->getSPS()->getPicHeightInLumaSamples() || !zeroOffsets )
  • branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r633 r637  
    791791          TEncTop *pcEncTopBase = (TEncTop *)getLayerEnc( m_layerId-1 );
    792792#endif
     793#if O0194_DIFFERENT_BITDEPTH_EL_BL
     794          UInt refLayerId = m_cVPS.getRefLayerId(m_layerId, i);
     795          Bool sameBitDepths = ( g_bitDepthYLayer[m_layerId] == g_bitDepthYLayer[refLayerId] ) && ( g_bitDepthCLayer[m_layerId] == g_bitDepthCLayer[refLayerId] );
     796
     797          if( m_iSourceWidth != pcEncTopBase->getSourceWidth() || m_iSourceHeight != pcEncTopBase->getSourceHeight() || !zeroOffsets || !sameBitDepths )
     798#else
    793799          if(m_iSourceWidth != pcEncTopBase->getSourceWidth() || m_iSourceHeight != pcEncTopBase->getSourceHeight() || !zeroOffsets )
     800#endif
    794801          {
    795802            pcEPic->setSpatialEnhLayerFlag( i, true );
     
    846853          TEncTop *pcEncTopBase = (TEncTop *)getLayerEnc( m_layerId-1 );
    847854#endif
     855#if O0194_DIFFERENT_BITDEPTH_EL_BL
     856          UInt refLayerId = m_cVPS.getRefLayerId(m_layerId, i);
     857          Bool sameBitDepths = ( g_bitDepthYLayer[m_layerId] == g_bitDepthYLayer[refLayerId] ) && ( g_bitDepthCLayer[m_layerId] == g_bitDepthCLayer[refLayerId] );
     858
     859          if( m_iSourceWidth != pcEncTopBase->getSourceWidth() || m_iSourceHeight != pcEncTopBase->getSourceHeight() || !zeroOffsets || !sameBitDepths )
     860#else
    848861          if(m_iSourceWidth != pcEncTopBase->getSourceWidth() || m_iSourceHeight != pcEncTopBase->getSourceHeight() || !zeroOffsets )
     862#endif
    849863          {
    850864            rpcPic->setSpatialEnhLayerFlag( i, true );
Note: See TracChangeset for help on using the changeset viewer.