diff options
author | Oscar Mateo <oscar.mateo@intel.com> | 2013-05-23 18:20:15 +0100 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2013-08-27 11:16:44 +0200 |
commit | 10db32288b5bb822a405a0639ba8d308787b7ceb (patch) | |
tree | 86bc6cbf92114df70a748df17c9cedd9e211690c | |
parent | b61d16651f88f20025225d7cf32a2f4cdfe36bb2 (diff) | |
download | libva-10db32288b5bb822a405a0639ba8d308787b7ceb.tar.gz |
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 <oscar.mateo@intel.com>
-rw-r--r-- | va/va_vpp.h | 24 |
1 files changed, 24 insertions, 0 deletions
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. * |