Changeset 1538 in SHVCSoftware for branches/SHM-dev/source/Lib
- Timestamp:
- 22 Mar 2016, 23:02:15 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/SEI.cpp
r1475 r1538 150 150 case SEI::CHROMA_RESAMPLING_FILTER_HINT: return "Chroma sampling filter hint"; 151 151 case SEI::COLOUR_REMAPPING_INFO: return "Colour remapping info"; 152 #if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI 153 case SEI::ALTERNATIVE_TRANSFER_CHARACTERISTICS: return "Alternative transfer characteristics"; 154 #endif 152 155 #if SVC_EXTENSION 153 156 #if LAYERS_NOT_PRESENT_SEI -
branches/SHM-dev/source/Lib/TLibCommon/SEI.h
r1475 r1538 92 92 KNEE_FUNCTION_INFO = 141, 93 93 COLOUR_REMAPPING_INFO = 142, 94 #if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI 95 ALTERNATIVE_TRANSFER_CHARACTERISTICS = 182, 96 #endif 94 97 #if LAYERS_NOT_PRESENT_SEI 95 98 LAYERS_NOT_PRESENT = 160, … … 632 635 }; 633 636 637 #if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI 638 class SEIAlternativeTransferCharacteristics : public SEI 639 { 640 public: 641 PayloadType payloadType() const { return ALTERNATIVE_TRANSFER_CHARACTERISTICS; } 642 643 SEIAlternativeTransferCharacteristics() : m_preferredTransferCharacteristics(18) 644 { } 645 646 virtual ~SEIAlternativeTransferCharacteristics() {} 647 648 UInt m_preferredTransferCharacteristics; 649 }; 650 #endif 651 634 652 #if P0123_ALPHA_CHANNEL_SEI 635 653 class SEIAlphaChannelInfo : public SEI -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1537 r1538 170 170 #define T0196_SELECTIVE_RDOQ 1 ///< selective RDOQ 171 171 #define U0040_MODIFIED_WEIGHTEDPREDICTION_WITH_BIPRED_AND_CLIPPING 1 172 #define U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI 1 ///< Alternative transfer characteristics SEI message (JCTVC-U0033, with syntax naming from V1005) 172 173 173 174 // ==================================================================================================================== -
branches/SHM-dev/source/Lib/TLibDecoder/SEIread.cpp
r1536 r1538 316 316 xParseSEIMasteringDisplayColourVolume((SEIMasteringDisplayColourVolume&) *sei, payloadSize, pDecodedMessageOutputStream); 317 317 break; 318 #if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI 319 case SEI::ALTERNATIVE_TRANSFER_CHARACTERISTICS: 320 sei = new SEIAlternativeTransferCharacteristics; 321 xParseSEIAlternativeTransferCharacteristics((SEIAlternativeTransferCharacteristics&) *sei, payloadSize, pDecodedMessageOutputStream); 322 break; 323 #endif 324 318 325 #if SVC_EXTENSION 319 326 #if LAYERS_NOT_PRESENT_SEI … … 1443 1450 sei_read_code( pDecodedMessageOutputStream, 32, code, "min_display_mastering_luminance" ); sei.values.minLuminance = code; 1444 1451 } 1452 1453 #if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI 1454 Void SEIReader::xParseSEIAlternativeTransferCharacteristics(SEIAlternativeTransferCharacteristics& sei, UInt payloadSize, ostream* pDecodedMessageOutputStream) 1455 { 1456 UInt code; 1457 output_sei_message_header(sei, pDecodedMessageOutputStream, payloadSize); 1458 1459 sei_read_code(pDecodedMessageOutputStream, 8, code, "preferred_transfer_characteristics"); sei.m_preferredTransferCharacteristics = code; 1460 } 1461 #endif 1445 1462 1446 1463 #if SVC_EXTENSION -
branches/SHM-dev/source/Lib/TLibDecoder/SEIread.h
r1475 r1538 109 109 Void xParseSEIMasteringDisplayColourVolume (SEIMasteringDisplayColourVolume& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream); 110 110 Void xParseSEIColourRemappingInfo (SEIColourRemappingInfo& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream); 111 #if U0033_ALTERNATIVE_TRANSFER_CHARACTERISTICS_SEI 112 Void xParseSEIAlternativeTransferCharacteristics(SEIAlternativeTransferCharacteristics& sei, UInt payLoadSize, std::ostream *pDecodedMessageOutputStream); 113 #endif 111 114 112 115 Void sei_read_code(std::ostream *pOS, UInt uiLength, UInt& ruiCode, const TChar *pSymbolName); -
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.