From 10db32288b5bb822a405a0639ba8d308787b7ceb Mon Sep 17 00:00:00 2001 From: Oscar Mateo Date: Thu, 23 May 2013 18:20:15 +0100 Subject: va: Add new non-linear anamorphic scaling filter NLAS scales contents with different aspect ratios so that letterboxing is not needed Signed-off-by: Oscar Mateo --- va/va_vpp.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/va/va_vpp.h b/va/va_vpp.h index 330ab58..4f98104 100644 --- a/va/va_vpp.h +++ b/va/va_vpp.h @@ -253,6 +253,8 @@ typedef enum _VAProcFilterType { VAProcFilterSkinToneEnhancement, /** \brief Total Color Correction. */ VAProcFilterTotalColorCorrection, + /** \brief Non-Linear Anamorphic Scaling. */ + VAProcFilterNonLinearAnamorphicScaling, /** \brief Number of video filters. */ VAProcFilterCount } VAProcFilterType; @@ -796,6 +798,18 @@ typedef struct _VAProcFilterParamterBufferTotalColorCorrection { float yellow; } VAProcFilterParameterBufferTotalColorCorrection; +/** \brief Non-Linear Anamorphic Scaling filter parametrization. */ +typedef struct _VAProcFilterParameterBufferNonLinearAnamorphicScaling { + /** \brief filter type. Shall be set to #VAProcFilterNonLinearAnamorphicScaling. */ + VAProcFilterType type; + /** \brief Vertical crop. */ + float vertical_crop; + /** \brief HLinear region. */ + float horizontal_linear_region; + /** \brief Non-linear crop. */ + float nonlinear_crop; +} VAProcFilterParameterBufferNonLinearAnamorphicScaling; + /** * \brief Default filter cap specification (single range value). * @@ -837,6 +851,16 @@ typedef struct _VAProcFilterCapTotalColorCorrection { VAProcFilterValueRange yellow_range; } VAProcFilterCapTotalColorCorrection; +/** \brief Capabilities specification for the Non-Linear Anamorphic Scaling filter. */ +typedef struct _VAProcFilterCapNonLinearAnamorphicScaling { + /** \brief Range of supported values for the vertical crop. */ + VAProcFilterValueRange vertical_crop_range; + /** \brief Range of supported values for the horizontal linear region. */ + VAProcFilterValueRange horizontal_linear_region_range; + /** \brief Range of supported values for the non-linear crop. */ + VAProcFilterValueRange nonlinear_crop_range; +} VAProcFilterCapNonLinearAnamorphicScaling; + /** * \brief Queries video processing filters. * -- cgit v1.2.1