Changeset 644 in SHVCSoftware for trunk/source/Lib/TLibEncoder/TEncTop.cpp


Ignore:
Timestamp:
25 Mar 2014, 21:51:30 (11 years ago)
Author:
seregin
Message:

merge with SHM-5.1-dev branch

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/source

  • trunk/source/Lib/TLibEncoder/TEncTop.cpp

    r595 r644  
    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 );
     
    902916#endif
    903917    m_cSPS.getScaledRefLayerWindow(i) = m_scaledRefLayerWindow[i];
     918#if P0312_VERT_PHASE_ADJ
     919    m_cSPS.setVertPhasePositionEnableFlag( m_scaledRefLayerId[i], m_scaledRefLayerWindow[i].getVertPhasePositionEnableFlag() );
     920#endif
    904921  }
    905922#endif //SVC_EXTENSION
Note: See TracChangeset for help on using the changeset viewer.