Changeset 573 in SHVCSoftware for branches/SHM-5.0-dev/source/App/TAppEncoder


Ignore:
Timestamp:
28 Jan 2014, 18:21:52 (11 years ago)
Author:
seregin
Message:

add bitDepthScalability flag to invoke estimation of the WP parameters conditionally (encoder only)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-5.0-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r568 r573  
    177177  delete [] mapIdxToLayer;
    178178#endif
     179
     180#if O0194_WEIGHTED_PREDICTION_CGS
     181  Bool bitDepthScalabilityFlag = false;
     182  for(UInt layer=0; layer<m_numLayers; layer++)
     183  {
     184    if( m_acLayerCfg[0].m_internalBitDepthY != m_acLayerCfg[layer].m_internalBitDepthY )
     185    {
     186      bitDepthScalabilityFlag = true;
     187      break;
     188    }
     189  }
     190#endif
     191
    179192  for(UInt layer=0; layer<m_numLayers; layer++)
    180193  {
     
    190203    g_bitDepthYLayer[layer] = g_bitDepthY;
    191204    g_bitDepthCLayer[layer] = g_bitDepthC;
     205
     206#if O0194_WEIGHTED_PREDICTION_CGS
     207    m_acTEncTop[layer].setBitDepthScalabilityFlag( bitDepthScalabilityFlag );
     208#endif
    192209#endif
    193210    //m_acTEncTop[layer].setVPS(&vps);
Note: See TracChangeset for help on using the changeset viewer.