diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-10-29 17:30:30 +0100 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-10-29 17:33:48 +0100 |
commit | eeb43989c1cf92aa3bd88e330ecea95bb8ab3319 (patch) | |
tree | d89594a5d5852b1b697c094972b164126d7244f9 /gst/vaapi/gstvaapipostproc.h | |
parent | 3656659d1c91f6c7e8c5ccfc1f9ae3be84aaa51c (diff) |
vaapipostproc: allow user defined scaling mode.
Add new "scale-method" property to expose the scaling mode to use during
video processing. Note that this is only a hint, and the actual behaviour
may differ from implementation (VA driver) to implementation.
Diffstat (limited to 'gst/vaapi/gstvaapipostproc.h')
-rw-r--r-- | gst/vaapi/gstvaapipostproc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapipostproc.h b/gst/vaapi/gstvaapipostproc.h index c27b29a1..af6fdf9d 100644 --- a/gst/vaapi/gstvaapipostproc.h +++ b/gst/vaapi/gstvaapipostproc.h @@ -93,6 +93,7 @@ typedef enum { * @GST_VAAPI_POSTPROC_FLAG_CONTRAST: Change contrast. * @GST_VAAPI_POSTPROC_FLAG_DEINTERLACE: Deinterlacing. * @GST_VAAPI_POSTPROC_FLAG_SIZE: Video scaling. + * @GST_VAAPI_POSTPROC_FLAG_SCALE: Video scaling mode. * * The set of operations that are to be performed for each frame. */ @@ -105,6 +106,7 @@ typedef enum { GST_VAAPI_POSTPROC_FLAG_BRIGHTNESS = 1 << GST_VAAPI_FILTER_OP_BRIGHTNESS, GST_VAAPI_POSTPROC_FLAG_CONTRAST = 1 << GST_VAAPI_FILTER_OP_CONTRAST, GST_VAAPI_POSTPROC_FLAG_DEINTERLACE = 1 << GST_VAAPI_FILTER_OP_DEINTERLACING, + GST_VAAPI_POSTPROC_FLAG_SCALE = 1 << GST_VAAPI_FILTER_OP_SCALING, /* Additional custom flags */ GST_VAAPI_POSTPROC_FLAG_CUSTOM = 1 << 20, @@ -162,6 +164,7 @@ struct _GstVaapiPostproc { gfloat sharpen_level; /* Color balance filter values */ + GstVaapiScaleMethod scale_method; gfloat hue; gfloat saturation; gfloat brightness; |