hardware/intel/common/libva
Revision | cf11abe5e1b9c93ee75cf974076957162c1605b9 (tree) |
---|---|
Zeit | 2018-12-03 15:03:03 |
Autor | furongzh <furong.zhang@inte...> |
Commiter | XinfengZhang |
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>
@@ -436,7 +436,9 @@ typedef enum _VAProcTotalColorCorrectionType { | ||
436 | 436 | typedef enum _VAProcHighDynamicRangeMetadataType { |
437 | 437 | VAProcHighDynamicRangeMetadataNone = 0, |
438 | 438 | /** \brief Metadata type for HDR10. */ |
439 | - VAProcHighDynamicRangeMetadataHDR10 | |
439 | + VAProcHighDynamicRangeMetadataHDR10, | |
440 | + /** \brief Number of Metadata type. */ | |
441 | + VAProcHighDynamicRangeMetadataTypeCount | |
440 | 442 | } VAProcHighDynamicRangeMetadataType; |
441 | 443 | |
442 | 444 | /** \brief Video Processing Mode. */ |
@@ -703,7 +705,20 @@ typedef struct _VAProcColorProperties { | ||
703 | 705 | uint8_t reserved[3]; |
704 | 706 | } VAProcColorProperties; |
705 | 707 | |
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 | + */ | |
707 | 722 | typedef struct _VAHdrMetaDataHDR10 |
708 | 723 | { |
709 | 724 | /** |
@@ -1217,6 +1232,22 @@ typedef struct _VAProcFilterParameterBufferHVSNoiseReduction { | ||
1217 | 1232 | uint16_t va_reserved[VA_PADDING_HIGH]; |
1218 | 1233 | } VAProcFilterParameterBufferHVSNoiseReduction; |
1219 | 1234 | |
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 | + | |
1220 | 1251 | /** |
1221 | 1252 | * \brief Default filter cap specification (single range value). |
1222 | 1253 | * |