summaryrefslogtreecommitdiff
path: root/libavfilter/vaapi_vpp.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2019-03-31 15:39:35 +0100
committerMark Thompson <sw@jkqxz.net>2019-06-02 17:30:41 +0100
commit6ed34a437925c5263f6c4ac7d0a9a46955055abe (patch)
tree6f4186dbe757ec69914233920370e1d3fcda50c6 /libavfilter/vaapi_vpp.h
parent963c4f85fe547ef51fafb66d7eceb3f5637d3843 (diff)
lavfi/vaapi: Factorise out common code for parameter buffer setup
Also enables cropping on all VAAPI filters, inherited from the existing support in scale_vaapi.
Diffstat (limited to 'libavfilter/vaapi_vpp.h')
-rw-r--r--libavfilter/vaapi_vpp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavfilter/vaapi_vpp.h b/libavfilter/vaapi_vpp.h
index 96f720f07d..1e2b4a1066 100644
--- a/libavfilter/vaapi_vpp.h
+++ b/libavfilter/vaapi_vpp.h
@@ -42,6 +42,7 @@ typedef struct VAAPIVPPContext {
AVBufferRef *input_frames_ref;
AVHWFramesContext *input_frames;
+ VARectangle input_region;
enum AVPixelFormat output_format;
int output_width; // computed width
@@ -69,6 +70,11 @@ int ff_vaapi_vpp_config_output(AVFilterLink *outlink);
int ff_vaapi_vpp_colour_standard(enum AVColorSpace av_cs);
+int ff_vaapi_vpp_init_params(AVFilterContext *avctx,
+ VAProcPipelineParameterBuffer *params,
+ const AVFrame *input_frame,
+ AVFrame *output_frame);
+
int ff_vaapi_vpp_make_param_buffers(AVFilterContext *avctx,
int type,
const void *data,
@@ -77,6 +83,6 @@ int ff_vaapi_vpp_make_param_buffers(AVFilterContext *avctx,
int ff_vaapi_vpp_render_picture(AVFilterContext *avctx,
VAProcPipelineParameterBuffer *params,
- VASurfaceID output_surface);
+ AVFrame *output_frame);
#endif /* AVFILTER_VAAPI_VPP_H */