diff options
author | wm4 <wm4@nowhere> | 2015-09-26 20:15:52 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-26 20:52:10 +0200 |
commit | e0cb65e8ac434785f735a40ede1deb44fcb57bdb (patch) | |
tree | 73c639ed607634efaab8cb30b94e4f3697cba3c3 /video/out/opengl/hwdec_vaglx.c | |
parent | 6875e6a77946de2cecbdbfc6e9930a79f31767e0 (diff) | |
download | mpv-e0cb65e8ac434785f735a40ede1deb44fcb57bdb.tar.bz2 mpv-e0cb65e8ac434785f735a40ede1deb44fcb57bdb.tar.xz |
vo_opengl: vaapi: probe the surface format
Probe the surface format, and check whether it's really something we
support. This also does a complete check whether the EGL interop works
at all (the only way to find this out is actually running this code).
Also, support YV12. Under some circumstances, vaapi (with Intel
drivers) can be made to use this format.
Unfortunately, the Intel drivers show some very weird behavior, which
is hopefully a bug. insane_hack() provides a very evil workaround (see
comments). A proper solution might be passing the hw format as part of
mp_image_params, but as long as hw surfaces appear to be able to change
the format on the fly, attempting this is probably not worth the extra
complexity and likely fragility. The hack allows us to pretend that
there is sane behavior for now.
Diffstat (limited to 'video/out/opengl/hwdec_vaglx.c')
0 files changed, 0 insertions, 0 deletions