Changeset 1538 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
22 Mar 2016, 23:02:15 (9 years ago)
Author:
seregin
Message:

port rev 4690

Location:
branches/SHM-dev/source/Lib/TLibEncoder
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibEncoder/SEIEncoder.cpp

    r1479 r1538  
    670670}
    671671
     672#if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI
     673Void SEIEncoder::initSEIAlternativeTransferCharacteristics(SEIAlternativeTransferCharacteristics *seiAltTransCharacteristics)
     674{
     675  assert (m_isInitialized);
     676  assert (seiAltTransCharacteristics!=NULL);
     677  //  Set SEI message parameters read from command line options
     678  seiAltTransCharacteristics->m_preferredTransferCharacteristics = m_pcCfg->getSEIPreferredTransferCharacteristics();
     679}
     680#endif
     681
    672682#if LAYERS_NOT_PRESENT_SEI
    673683Void SEIEncoder::initSEILayersNotPresent(SEILayersNotPresent *seiLayersNotPresent)
  • branches/SHM-dev/source/Lib/TLibEncoder/SEIEncoder.h

    r1475 r1538  
    8282  Void initSEITimeCode(SEITimeCode *sei);
    8383  Bool initSEIColourRemappingInfo(SEIColourRemappingInfo *sei, Int currPOC); // returns true on success, false on failure.
     84#if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI
     85  Void initSEIAlternativeTransferCharacteristics(SEIAlternativeTransferCharacteristics *sei);
     86#endif
    8487
    8588#if LAYERS_NOT_PRESENT_SEI
  • branches/SHM-dev/source/Lib/TLibEncoder/SEIwrite.cpp

    r1475 r1538  
    158158    xWriteSEIMasteringDisplayColourVolume(*static_cast<const SEIMasteringDisplayColourVolume*>(&sei));
    159159    break;
     160#if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI
     161  case SEI::ALTERNATIVE_TRANSFER_CHARACTERISTICS:
     162    xWriteSEIAlternativeTransferCharacteristics(*static_cast<const SEIAlternativeTransferCharacteristics*>(&sei));
     163    break;
     164#endif
     165
    160166#if SVC_EXTENSION
    161167#if LAYERS_NOT_PRESENT_SEI
     
    10731079}
    10741080
     1081#if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI
     1082Void SEIWriter::xWriteSEIAlternativeTransferCharacteristics(const SEIAlternativeTransferCharacteristics& sei)
     1083{
     1084  WRITE_CODE(sei.m_preferredTransferCharacteristics, 8, "preferred_transfer_characteristics");
     1085}
     1086#endif
     1087
    10751088#if SVC_EXTENSION
    10761089#if LAYERS_NOT_PRESENT_SEI
  • branches/SHM-dev/source/Lib/TLibEncoder/SEIwrite.h

    r1475 r1538  
    9191  Void xWriteSEIColourRemappingInfo(const SEIColourRemappingInfo& sei);
    9292  Void xWriteSEIMasteringDisplayColourVolume( const SEIMasteringDisplayColourVolume& sei);
     93#if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI
     94  Void xWriteSEIAlternativeTransferCharacteristics(const SEIAlternativeTransferCharacteristics& sei);
     95#endif
    9396
    9497#if O0164_MULTI_LAYER_HRD
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h

    r1534 r1538  
    323323  std::string m_colourRemapSEIFileRoot;          ///< SEI Colour Remapping File (initialized from external file)
    324324  TComSEIMasteringDisplay m_masteringDisplay;
     325#if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI
     326  Bool      m_alternativeTransferCharacteristicsSEIEnabled;
     327  UChar     m_preferredTransferCharacteristics;
     328#endif
    325329  //====== Weighted Prediction ========
    326330  Bool      m_useWeightedPred;       //< Use of Weighting Prediction (P_SLICE)
     
    909913  const std::string &getColourRemapInfoSEIFileRoot() const           { return m_colourRemapSEIFileRoot; }
    910914  Void  setMasteringDisplaySEI(const TComSEIMasteringDisplay &src)   { m_masteringDisplay = src; }
     915#if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI
     916  Void  setSEIAlternativeTransferCharacteristicsSEIEnable( Bool b)   { m_alternativeTransferCharacteristicsSEIEnabled = b;    }
     917  Bool  getSEIAlternativeTransferCharacteristicsSEIEnable( ) const   { return m_alternativeTransferCharacteristicsSEIEnabled; }
     918  Void  setSEIPreferredTransferCharacteristics(UChar v)              { m_preferredTransferCharacteristics = v;    }
     919  UChar getSEIPreferredTransferCharacteristics() const               { return m_preferredTransferCharacteristics; }
     920#endif
    911921  const TComSEIMasteringDisplay &getMasteringDisplaySEI() const      { return m_masteringDisplay; }
    912922  Void         setUseWP               ( Bool b )                     { m_useWeightedPred   = b;    }
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1537 r1538  
    631631    seiMessages.push_back(seiChromaResamplingFilterHint);
    632632  }
     633#if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI
     634  if(m_pcCfg->getSEIAlternativeTransferCharacteristicsSEIEnable())
     635  {
     636    SEIAlternativeTransferCharacteristics *seiAlternativeTransferCharacteristics = new SEIAlternativeTransferCharacteristics;
     637    m_seiEncoder.initSEIAlternativeTransferCharacteristics(seiAlternativeTransferCharacteristics);
     638    seiMessages.push_back(seiAlternativeTransferCharacteristics);
     639  }
     640#endif
    633641
    634642#if SVC_EXTENSION
Note: See TracChangeset for help on using the changeset viewer.