hardware/intel/common/libva
Révision | b7a2ff11751cc5bbf0d21c406821742670ae714b (tree) |
---|---|
l'heure | 2018-08-15 14:50:00 |
Auteur | FurongZhang <furong.zhang@inte...> |
Commiter | XinfengZhang |
Customized Noise Reduction (HVS)
Human Vision System Based Noise Reduction.
Signed-off-by: FurongZhang <furong.zhang@intel.com>
@@ -249,6 +249,8 @@ typedef enum _VAProcFilterType { | ||
249 | 249 | VAProcFilterSkinToneEnhancement, |
250 | 250 | /** \brief Total Color Correction. */ |
251 | 251 | VAProcFilterTotalColorCorrection, |
252 | + /** \brief Human Vision System(HVS) Noise reduction filter. */ | |
253 | + VAProcFilterHVSNoiseReduction, | |
252 | 254 | /** \brief Number of video filters. */ |
253 | 255 | VAProcFilterCount |
254 | 256 | } VAProcFilterType; |
@@ -1039,6 +1041,26 @@ typedef struct _VAProcFilterParameterBufferTotalColorCorrection { | ||
1039 | 1041 | /** \brief Color correction value. */ |
1040 | 1042 | float value; |
1041 | 1043 | } VAProcFilterParameterBufferTotalColorCorrection; |
1044 | + | |
1045 | +/** \brief Human Vision System(HVS) Noise reduction filter parametrization. */ | |
1046 | +typedef struct _VAProcFilterParameterBufferHVSNoiseReduction { | |
1047 | + /** \brief Filter type. Shall be set to #VAProcFilterHVSNoiseReduction. */ | |
1048 | + VAProcFilterType type; | |
1049 | + /** \brief QP for encoding, used for HVS Denoise */ | |
1050 | + uint16_t qp; | |
1051 | + /** | |
1052 | + * \brief QP to Noise Reduction Strength Mode, used for Human Vision System Based Noise Reduction. | |
1053 | + * Controls Noise Reduction strength of conservative and aggressive mode. | |
1054 | + * It is an integer from [0-16]. | |
1055 | + * Value 0 means completely turn off Noise Reduction; | |
1056 | + * Value 16 means the most aggressive mode of Noise Reduction; | |
1057 | + * Value 10 is the default value. | |
1058 | + */ | |
1059 | + uint16_t strength; | |
1060 | + /** \brief Reserved bytes for future use, must be zero */ | |
1061 | + uint16_t va_reserved[VA_PADDING_HIGH]; | |
1062 | +} VAProcFilterParameterBufferHVSNoiseReduction; | |
1063 | + | |
1042 | 1064 | /** |
1043 | 1065 | * \brief Default filter cap specification (single range value). |
1044 | 1066 | * |