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


Ignore:
Timestamp:
28 Aug 2014, 00:57:07 (10 years ago)
Author:
qualcomm
Message:

Removal of avc_base_layer_flag. This flag was in the earlier version of spec but have been replaced by two other flags vps_base_layer_internal_flag and vps_base_layer_available_flag
(MACRO: VPS_AVC_BL_FLAG_REMOVAL)

From: Hendry (fhendry@…)

Location:
branches/SHM-dev/source/App/TAppEncoder
Files:
3 edited

Legend:

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

    r868 r874  
    6767: m_pBitstreamFile()
    6868#if AVC_BASE
     69#if VPS_AVC_BL_FLAG_REMOVAL
     70, m_nonHEVCBaseLayerFlag(0)
     71#else
    6972, m_avcBaseLayerFlag(0)
     73#endif
    7074#endif
    7175, m_maxTidRefPresentFlag(1)
     
    743747#endif
    744748#if AVC_BASE
     749#if VPS_AVC_BL_FLAG_REMOVAL
     750  ("NonHEVCBase,-nonhevc",            m_nonHEVCBaseLayerFlag,     0, "BL is available but not internal")
     751#else
    745752  ("AvcBase,-avc",            m_avcBaseLayerFlag,     0, "avc_base_layer_flag")
     753#endif
    746754  ("InputBLFile,-ibl",        cfg_BLInputFile,     string(""), "Base layer rec YUV input file name")
    747755#endif
     
    12161224#if SVC_EXTENSION
    12171225#if AVC_BASE
     1226#if VPS_AVC_BL_FLAG_REMOVAL
     1227  if( m_nonHEVCBaseLayerFlag )
     1228#else
    12181229  if( m_avcBaseLayerFlag )
     1230#endif
    12191231  {
    12201232    *cfg_InputFile[0] = cfg_BLInputFile;
     
    25742586 
    25752587  // it can be updated after AVC BL support will be added to the WD
     2588#if VPS_AVC_BL_FLAG_REMOVAL
     2589  if( m_nonHEVCBaseLayerFlag )
     2590#else
    25762591  if( m_avcBaseLayerFlag )
     2592#endif
    25772593  {
    25782594    m_crossLayerIrapAlignFlag = false;
     
    35613577  printf("Scalable                      : %d\n", m_scalabilityMask[SCALABILITY_ID] );
    35623578#if AVC_BASE
     3579#if VPS_AVC_BL_FLAG_REMOVAL
     3580  printf("Base layer                    : %s\n", m_nonHEVCBaseLayerFlag ? "Non-HEVC" : "HEVC");
     3581#else
    35633582  printf("Base layer                    : %s\n", m_avcBaseLayerFlag ? "AVC" : "HEVC");
     3583#endif
    35643584#endif
    35653585#if AUXILIARY_PICTURES
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h

    r868 r874  
    6969  Int       m_framesToBeEncoded;                              ///< number of encoded frames
    7070#if AVC_BASE
     71#if VPS_AVC_BL_FLAG_REMOVAL
     72  Int       m_nonHEVCBaseLayerFlag;                           ///< non HEVC BL
     73#else
    7174  Int       m_avcBaseLayerFlag;                               ///< avc_baselayer_flag
     75#endif
    7276#endif
    7377  Bool      m_maxTidRefPresentFlag;
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r872 r874  
    234234#if REF_IDX_MFM
    235235#if AVC_BASE
     236#if VPS_AVC_BL_FLAG_REMOVAL
     237    m_acTEncTop[layer].setMFMEnabledFlag(layer == 0 ? false : ( m_nonHEVCBaseLayerFlag ? false : true ) && m_acLayerCfg[layer].getNumMotionPredRefLayers());
     238#else
    236239    m_acTEncTop[layer].setMFMEnabledFlag(layer == 0 ? false : ( m_avcBaseLayerFlag ? false : true ) && m_acLayerCfg[layer].getNumMotionPredRefLayers());
     240#endif
    237241#else
    238242    m_acTEncTop[layer].setMFMEnabledFlag(layer == 0 ? false : ( m_acLayerCfg[layer].getNumMotionPredRefLayers() > 0 ) );
     
    12391243  UInt i = 0, dimIdLen = 0;
    12401244#if AVC_BASE
     1245#if VPS_AVC_BL_FLAG_REMOVAL
     1246  vps->setNonHEVCBaseLayerFlag( m_nonHEVCBaseLayerFlag );
     1247  if ( m_nonHEVCBaseLayerFlag )
     1248  {
     1249    vps->setBaseLayerInternalFlag (false);
     1250  }
     1251#else
    12411252  vps->setAvcBaseLayerFlag(m_avcBaseLayerFlag);
     1253#endif
    12421254#else
    12431255  vps->setAvcBaseLayerFlag(false);
Note: See TracChangeset for help on using the changeset viewer.