mpv/video/decode
wm4 7be37337f4 vo_opengl: vdpau interop without RGB conversion
Until now, we've always converted vdpau video surfaces to RGB, and then
mapped the resulting RGB texture. Change this so that the surface is
mapped as NV12 plane textures.

The reason this wasn't done until now is because vdpau surfaces are
mapped in an "interlaced" way as separate fields, even for progressive
video. This requires messy reinterleraving. It turns out that even
though it's an extra processing step, the result can be faster than
going through the video mixer for RGB conversion.

Other than some potential speed-gain, doing this has multiple other
advantages. We can apply our own color conversion, which is important in
more complex cases. We can correctly apply debanding and potentially
other processing that requires chroma-specific or in-YUV handling.

If deinterlacing is enabled, this switches back to the old RGB
conversion method. Until we have at least a primitive deinterlacer in
vo_opengl, this will stay this way. The d3d11 and vaapi code paths are
similar. (Of course these don't require any crazy field reinterleaving.)
2016-06-19 19:58:40 +02:00
..
d3d.c d3d: simplify DLL loading 2016-05-17 11:59:54 +02:00
d3d.h d3d: simplify DLL loading 2016-05-17 11:59:54 +02:00
d3d11va.c d3d11va: remove unused d3d11va_surface.subindex field 2016-06-16 18:13:46 +02:00
dec_video.c dec_video: always redisplay cover art after a seek 2016-03-11 20:58:13 +01:00
dec_video.h video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
dxva2.c dxva2: remove dead code in failure case 2016-06-07 18:53:05 +10:00
lavc.h video: add --hwdec=auto-copy mode 2016-05-11 16:20:13 +02:00
vaapi.c vaapi: avoid forward declaration of variable 2016-05-15 18:37:51 +02:00
vd.h
vd_lavc.c video: add --hwdec=auto-copy mode 2016-05-11 16:20:13 +02:00
vdpau.c vo_opengl: vdpau interop without RGB conversion 2016-06-19 19:58:40 +02:00
videotoolbox.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00