Changeset 573 in SHVCSoftware


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)

Location:
branches/SHM-5.0-dev/source
Files:
4 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);
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r568 r573  
    15581558#if O0194_WEIGHTED_PREDICTION_CGS
    15591559      // Calculate for the base layer to be used in EL as Inter layer reference
    1560       m_pcSliceEncoder->estimateILWpParam( pcSlice );
     1560      if( m_pcEncTop->getBitDepthScalabilityFlag() )
     1561      {
     1562        m_pcSliceEncoder->estimateILWpParam( pcSlice );
     1563      }
    15611564#endif
    15621565#if AVC_SYNTAX
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncSlice.cpp

    r564 r573  
    811811  }
    812812#if O0194_WEIGHTED_PREDICTION_CGS
    813   else
     813  else if( m_ppcTEncTop[pcSlice->getLayerId()]->getBitDepthScalabilityFlag() )
    814814  {
    815815    // Calculate for the base layer to be used in EL as Inter layer reference
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncTop.h

    r559 r573  
    151151  Bool                    m_noOutputOfPriorPicsFlags;
    152152#endif
     153#if O0194_WEIGHTED_PREDICTION_CGS
     154  Bool                    m_bitDepthScalabilityFlag;
     155#endif
    153156#endif //SVC_EXTENSION
    154157protected:
     
    234237  Bool      getMFMEnabledFlag()                   {return m_bMFMEnabledFlag;}   
    235238#endif
     239#if O0194_WEIGHTED_PREDICTION_CGS
     240  Void      setBitDepthScalabilityFlag(Bool flag)   { m_bitDepthScalabilityFlag = flag; }
     241  Bool      getBitDepthScalabilityFlag()            { return m_bitDepthScalabilityFlag; }
     242#endif
    236243#if AVC_SYNTAX
    237244  Void      setBLSyntaxFile( fstream* pFile ) { m_pBLSyntaxFile = pFile; }
Note: See TracChangeset for help on using the changeset viewer.