diff options
author | wm4 <wm4@nowhere> | 2015-01-21 22:08:24 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-21 22:08:24 +0100 |
commit | a1ed13869c1586897c323ebf65cfd3975092ffad (patch) | |
tree | da92c9384cc192111ca54784713c4e9307dc9cef /video/out/vo_opengl.c | |
parent | 2a691d1ede42e8466f1f880c390659d1f0145e94 (diff) | |
download | mpv-a1ed13869c1586897c323ebf65cfd3975092ffad.tar.bz2 mpv-a1ed13869c1586897c323ebf65cfd3975092ffad.tar.xz |
video: remove vfcap.h
And remove all uses of the VFCAP_CSP_SUPPORTED* constants. This is
supposed to reduce conversions if many filters are used (with many
incompatible pixel formats), and also for preferring the VO's natively
supported pixel formats (as opposed to conversion).
This is worthless by now. Not only do the main VOs not use software
conversion, but also the way vf_lavfi and libavfilter work mostly break
the way the old MPlayer mechanism worked. Other important filters like
vf_vapoursynth do not support "proper" format negotation either.
Part of this was already removed with the vf_scale cleanup from today.
While I'm touching every single VO, also fix the query_format argument
(it's not a FourCC anymore).
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r-- | video/out/vo_opengl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index 54da31f2e3..bfb1adbec8 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -40,7 +40,6 @@ #include "common/msg.h" #include "options/m_config.h" #include "vo.h" -#include "video/vfcap.h" #include "video/mp_image.h" #include "sub/osd.h" @@ -179,13 +178,12 @@ static void draw_image(struct vo *vo, mp_image_t *mpi) mpgl_unlock(p->glctx); } -static int query_format(struct vo *vo, uint32_t format) +static int query_format(struct vo *vo, int format) { struct gl_priv *p = vo->priv; - int caps = VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW; if (!gl_video_check_format(p->renderer, format)) return 0; - return caps; + return 1; } static void video_resize_redraw_callback(struct vo *vo, int w, int h) |