• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/common/libva


Commit MetaInfo

Revisioncf11abe5e1b9c93ee75cf974076957162c1605b9 (tree)
Zeit2018-12-03 15:03:03
Autorfurongzh <furong.zhang@inte...>
CommiterXinfengZhang

Log Message

High Dynamic Range Tone Mapping: Add a new filter for input metadata and some comments.

1. Add comments for HDR10 metadata, it can be used to describe the content which was authoured and the display which will be presented;
2. Add a new filter for metadata, mainly for input surface;

Signed-off-by: furongzh <furong.zhang@intel.com>

Ändern Zusammenfassung

Diff

--- a/va/va_vpp.h
+++ b/va/va_vpp.h
@@ -436,7 +436,9 @@ typedef enum _VAProcTotalColorCorrectionType {
436436 typedef enum _VAProcHighDynamicRangeMetadataType {
437437 VAProcHighDynamicRangeMetadataNone = 0,
438438 /** \brief Metadata type for HDR10. */
439- VAProcHighDynamicRangeMetadataHDR10
439+ VAProcHighDynamicRangeMetadataHDR10,
440+ /** \brief Number of Metadata type. */
441+ VAProcHighDynamicRangeMetadataTypeCount
440442 } VAProcHighDynamicRangeMetadataType;
441443
442444 /** \brief Video Processing Mode. */
@@ -703,7 +705,20 @@ typedef struct _VAProcColorProperties {
703705 uint8_t reserved[3];
704706 } VAProcColorProperties;
705707
706-/** \berief Describes High Dynamic Range Meta Data for HDR10. */
708+/** \berief Describes High Dynamic Range Meta Data for HDR10.
709+ *
710+ * Specifies the colour volume(the colour primaries, white point and luminance range) of
711+ * a display considered to be the mastering display for the associated video content -e.g.,
712+ * the colour volume of a display that was used for viewing while authoring the video content.
713+ * See ITU-T H.265 D.3.27 Mastering display colour volume SEI message semantics.
714+ *
715+ * Specifies upper bounds for the nominal light level of the content. See ITU-T H.265 D.3.35
716+ * Content light level information SEI message semantics.
717+ *
718+ * This structure can be used to indicate the HDR10 metadata for 1) the content which was authored;
719+ * 2) the display on which the content will be presented. If it is for display, max_content_light_level
720+ * and max_pic_average_light_level are ignored.
721+ */
707722 typedef struct _VAHdrMetaDataHDR10
708723 {
709724 /**
@@ -1217,6 +1232,22 @@ typedef struct _VAProcFilterParameterBufferHVSNoiseReduction {
12171232 uint16_t va_reserved[VA_PADDING_HIGH];
12181233 } VAProcFilterParameterBufferHVSNoiseReduction;
12191234
1235+/** \brief High Dynamic Range(HDR) Tone Mapping filter parametrization. */
1236+typedef struct _VAProcFilterParameterBufferHDRToneMapping {
1237+ /** \brief Filter type. Shall be set to #VAProcFilterHighDynamicRangeToneMapping.*/
1238+ VAProcFilterType type;
1239+ /**
1240+ * \brief High Dynamic Range metadata, could be HDR10 etc.
1241+ *
1242+ * This metadata is mainly for the input surface. Given that dynamic metadata is changing
1243+ * on frame-by-frame or scene-by-scene basis for HDR10 plus, differentiate the metadata
1244+ * for the input and output.
1245+ */
1246+ VAHdrMetaData data;
1247+ /** \brief Reserved bytes for future use, must be zero */
1248+ uint32_t va_reserved[VA_PADDING_HIGH];
1249+} VAProcFilterParameterBufferHDRToneMapping;
1250+
12201251 /**
12211252 * \brief Default filter cap specification (single range value).
12221253 *