Changeset 1538 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 22 Mar 2016, 23:02:15 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/SEIEncoder.cpp
r1479 r1538 670 670 } 671 671 672 #if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI 673 Void 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 672 682 #if LAYERS_NOT_PRESENT_SEI 673 683 Void SEIEncoder::initSEILayersNotPresent(SEILayersNotPresent *seiLayersNotPresent) -
branches/SHM-dev/source/Lib/TLibEncoder/SEIEncoder.h
r1475 r1538 82 82 Void initSEITimeCode(SEITimeCode *sei); 83 83 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 84 87 85 88 #if LAYERS_NOT_PRESENT_SEI -
branches/SHM-dev/source/Lib/TLibEncoder/SEIwrite.cpp
r1475 r1538 158 158 xWriteSEIMasteringDisplayColourVolume(*static_cast<const SEIMasteringDisplayColourVolume*>(&sei)); 159 159 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 160 166 #if SVC_EXTENSION 161 167 #if LAYERS_NOT_PRESENT_SEI … … 1073 1079 } 1074 1080 1081 #if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI 1082 Void SEIWriter::xWriteSEIAlternativeTransferCharacteristics(const SEIAlternativeTransferCharacteristics& sei) 1083 { 1084 WRITE_CODE(sei.m_preferredTransferCharacteristics, 8, "preferred_transfer_characteristics"); 1085 } 1086 #endif 1087 1075 1088 #if SVC_EXTENSION 1076 1089 #if LAYERS_NOT_PRESENT_SEI -
branches/SHM-dev/source/Lib/TLibEncoder/SEIwrite.h
r1475 r1538 91 91 Void xWriteSEIColourRemappingInfo(const SEIColourRemappingInfo& sei); 92 92 Void xWriteSEIMasteringDisplayColourVolume( const SEIMasteringDisplayColourVolume& sei); 93 #if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI 94 Void xWriteSEIAlternativeTransferCharacteristics(const SEIAlternativeTransferCharacteristics& sei); 95 #endif 93 96 94 97 #if O0164_MULTI_LAYER_HRD -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h
r1534 r1538 323 323 std::string m_colourRemapSEIFileRoot; ///< SEI Colour Remapping File (initialized from external file) 324 324 TComSEIMasteringDisplay m_masteringDisplay; 325 #if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI 326 Bool m_alternativeTransferCharacteristicsSEIEnabled; 327 UChar m_preferredTransferCharacteristics; 328 #endif 325 329 //====== Weighted Prediction ======== 326 330 Bool m_useWeightedPred; //< Use of Weighting Prediction (P_SLICE) … … 909 913 const std::string &getColourRemapInfoSEIFileRoot() const { return m_colourRemapSEIFileRoot; } 910 914 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 911 921 const TComSEIMasteringDisplay &getMasteringDisplaySEI() const { return m_masteringDisplay; } 912 922 Void setUseWP ( Bool b ) { m_useWeightedPred = b; } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1537 r1538 631 631 seiMessages.push_back(seiChromaResamplingFilterHint); 632 632 } 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 633 641 634 642 #if SVC_EXTENSION
Note: See TracChangeset for help on using the changeset viewer.