summaryrefslogtreecommitdiffstats
path: root/video/filter
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-15 00:57:04 +0200
committerwm4 <wm4@nowhere>2013-07-15 01:49:26 +0200
commit88e813aae6f2a91177b450a46c04a26db276c422 (patch)
tree9eb84e4ec3efa8df6ef5e7c50d9711f91adea082 /video/filter
parent17ab38bc664308ea6fe17249b9ddd434b6e05d8e (diff)
downloadmpv-88e813aae6f2a91177b450a46c04a26db276c422.tar.bz2
mpv-88e813aae6f2a91177b450a46c04a26db276c422.tar.xz
vf: add vf_control wrapper
Slightly cleaner, although rather redundant. But still, why wasn't this added 10 years ago?
Diffstat (limited to 'video/filter')
-rw-r--r--video/filter/vf.c5
-rw-r--r--video/filter/vf.h1
2 files changed, 6 insertions, 0 deletions
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);