summaryrefslogtreecommitdiffstats
path: root/filters
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-29 20:37:11 +0100
committerwm4 <wm4@nowhere>2019-11-29 20:37:11 +0100
commit90df6c79c9400d3f1c711ef5696324908a5126ce (patch)
tree27529663029c3938cc71fed61f83c93a48a37f12 /filters
parent053297b1ca15d7e94f746e94ea46c7399a6b097a (diff)
downloadmpv-90df6c79c9400d3f1c711ef5696324908a5126ce.tar.bz2
mpv-90df6c79c9400d3f1c711ef5696324908a5126ce.tar.xz
vf_gpu: add video filter using vo_gpu's renderer
Probably pretty useless in this form (see: the wall of warnings), but someone wanted this. I think this should be useful to perform some automated tests, maybe. Fixes: #7194
Diffstat (limited to 'filters')
-rw-r--r--filters/user_filters.c3
-rw-r--r--filters/user_filters.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/filters/user_filters.c b/filters/user_filters.c
index 5ca5b43090..9db8662d39 100644
--- a/filters/user_filters.c
+++ b/filters/user_filters.c
@@ -85,6 +85,9 @@ const struct mp_user_filter_entry *vf_list[] = {
#if HAVE_D3D_HWACCEL
&vf_d3d11vpp,
#endif
+#if HAVE_EGL_X11
+ &vf_gpu,
+#endif
};
static bool get_vf_desc(struct m_obj_desc *dst, int index)
diff --git a/filters/user_filters.h b/filters/user_filters.h
index 9bf40e248b..a79e17030b 100644
--- a/filters/user_filters.h
+++ b/filters/user_filters.h
@@ -34,3 +34,4 @@ extern const struct mp_user_filter_entry vf_vdpaupp;
extern const struct mp_user_filter_entry vf_vavpp;
extern const struct mp_user_filter_entry vf_d3d11vpp;
extern const struct mp_user_filter_entry vf_fingerprint;
+extern const struct mp_user_filter_entry vf_gpu;