From 88e813aae6f2a91177b450a46c04a26db276c422 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 15 Jul 2013 00:57:04 +0200 Subject: vf: add vf_control wrapper Slightly cleaner, although rather redundant. But still, why wasn't this added 10 years ago? --- video/filter/vf.c | 5 +++++ video/filter/vf.h | 1 + 2 files changed, 6 insertions(+) (limited to 'video/filter') diff --git a/video/filter/vf.c b/video/filter/vf.c index 1402ad3efc..1570e8402c 100644 --- a/video/filter/vf.c +++ b/video/filter/vf.c @@ -123,6 +123,11 @@ const m_obj_list_t vf_obj_list = { M_ST_OFF(vf_info_t, opts) }; +int vf_control(struct vf_instance *vf, int cmd, void *arg) +{ + return vf->control(vf, cmd, arg); +} + // Get a new image for filter output, with size and pixel format according to // the last vf_config call. struct mp_image *vf_alloc_out_image(struct vf_instance *vf) diff --git a/video/filter/vf.h b/video/filter/vf.h index 638fc30a61..be1243e3a4 100644 --- a/video/filter/vf.h +++ b/video/filter/vf.h @@ -109,6 +109,7 @@ typedef struct vf_seteq { #define VFCTRL_SET_YUV_COLORSPACE 22 // arg is struct mp_csp_details* #define VFCTRL_GET_YUV_COLORSPACE 23 // arg is struct mp_csp_details* +int vf_control(struct vf_instance *vf, int cmd, void *arg); struct mp_image *vf_alloc_out_image(struct vf_instance *vf); void vf_make_out_image_writeable(struct vf_instance *vf, struct mp_image *img); -- cgit v1.2.3