mpv/video
wm4 8d8a2045bd vo_opengl: support new VAAPI EGL interop
Should work much better than the old GLX interop code. Requires Mesa 11,
and explicitly selecting the X11 EGL backend with:

    --vo=opengl:backend=x11egl

Should it turn out that the new interop works well, we will try to
autodetect EGL by default.

This code still uses some bad assumptions, like expecting surfaces to be
in NV12. (This is probably ok, because virtually all HW will use this
format. But we should at least check this on init or so, instead of
failing to render an image if our assumption doesn't hold up.)

This repo was a lot of help: https://github.com/gbeauchesne/ffvademo
The kodi code was also helpful (the magic FourCC it uses for
EGL_LINUX_DRM_FOURCC_EXT are nowhere documented, and
EGL_IMAGE_INTERNAL_FORMAT_EXT as used in ffvademo does
not actually exist).

(This is the 3rd VAAPI GL interop that was implemented in this player.)
2015-09-25 00:26:19 +02:00
..
decode vd_lavc: do not abort hardware decoding on errors 2015-09-23 20:37:47 +02:00
filter vf_vavpp: allocate output surfaces with the same size as input 2015-09-23 14:20:50 +02:00
out vo_opengl: support new VAAPI EGL interop 2015-09-25 00:26:19 +02:00
csputils.c video: add a way to disable automatic stereo conversion 2015-07-10 18:04:34 +02:00
csputils.h
d3d.h vo_direct3d, dxva2: use the same D3D device 2015-07-03 16:04:42 +02:00
fmt-conversion.c hwdec: add VideoToolbox support 2015-08-05 17:47:30 +02:00
fmt-conversion.h
hwdec.h hwdec: add VideoToolbox support 2015-08-05 17:47:30 +02:00
image_writer.c image_writer: don't use jpeg baseline, and remove useless jpeg options 2015-08-02 01:10:18 +02:00
image_writer.h
img_format.c video: do not use deprecated libavutil pixdesc fields 2015-09-10 22:13:52 +02:00
img_format.h video: fix VideoToolbox/VDA autodetection 2015-08-17 23:51:31 +02:00
img_fourcc.h
mp_image.c mp_image: fix vf_vdpaupp references 2015-07-08 14:48:17 +02:00
mp_image.h video: replace our own refcounting with libavutil's 2015-07-05 23:56:00 +02:00
mp_image_pool.c video: replace our own refcounting with libavutil's 2015-07-05 23:56:00 +02:00
mp_image_pool.h
sws_utils.c
sws_utils.h
vaapi.c vf_vavpp: allocate output surfaces with the same size as input 2015-09-23 14:20:50 +02:00
vaapi.h vf_vavpp: allocate output surfaces with the same size as input 2015-09-23 14:20:50 +02:00
vdpau.c video: reduce error message when loading hwdec backend fails 2015-06-20 22:26:57 +02:00
vdpau.h video: reduce error message when loading hwdec backend fails 2015-06-20 22:26:57 +02:00
vdpau_functions.inc vo_vdpau: directly get surface size from surface for screenshots 2015-06-05 22:34:16 +02:00
vdpau_mixer.c vdpau: retrieve mixer parameters directly from the hw surface 2015-05-28 21:54:02 +02:00
vdpau_mixer.h vdpau: retrieve mixer parameters directly from the hw surface 2015-05-28 21:54:02 +02:00