mpv/video/out/gpu
wm4 52dd38a48a client API: add a new way to pass X11 Display etc. to render API
Hardware decoding things often need access to additional handles from
the windowing system, such as the X11 or Wayland display when using
vaapi. The opengl-cb had nothing dedicated for this, and used the weird
GL_MP_MPGetNativeDisplay GL extension (which was mpv specific and not
officially registered with OpenGL).

This was awkward, and a pain due to having to emulate GL context
behavior (like needing a TLS variable to store context for the pseudo GL
extension function). In addition (and not inherently due to this), we
could pass only one resource from mpv builtin context backends to
hwdecs. It was also all GL specific.

Replace this with a newer mechanism. It works for all RA backends, not
just GL. the API user can explicitly pass the objects at init time via
mpv_render_context_create(). Multiple resources are naturally possible.

The API uses MPV_RENDER_PARAM_* defines, but internally we use strings.
This is done for 2 reasons: 1. trying to leave libmpv and internal
mechanisms decoupled, 2. not having to add public API for some of the
internal resource types (especially D3D/GL interop stuff).

To remain sane, drop support for obscure half-working opengl-cb things,
like the DRM interop (was missing necessary things), the RPI window
thing (nobody used it), and obscure D3D interop things (not needed with
ANGLE, others were undocumented). In order not to break ABI and the C
API, we don't remove the associated structs from opengl_cb.h.

The parts which are still needed (in particular DRM interop) needs to be
ported to the render API.
2018-03-26 19:47:08 +02:00
..
context.c vo_gpu: d3d11: initial implementation 2017-11-07 20:27:13 +11:00
context.h vo_gpu: remove old window screenshot glue code and GL implementation 2018-02-13 17:45:29 -08:00
d3d11_helpers.c vo_gpu: d3d11: implement tex_download() 2018-02-13 21:25:15 +11:00
d3d11_helpers.h vo_gpu: d3d11: implement tex_download() 2018-02-13 21:25:15 +11:00
hwdec.c hwdec: detach d3d and d3d9 hwaccel from angle 2018-01-25 20:57:45 -08:00
hwdec.h vo_gpu: hwdec: remove redundant fields 2017-12-01 05:57:41 +01:00
lcms.c Fix various typos in log messages 2017-12-03 21:24:18 +01:00
lcms.h
libmpv_gpu.c client API: add a new way to pass X11 Display etc. to render API 2018-03-26 19:47:08 +02:00
libmpv_gpu.h client API: add a new way to pass X11 Display etc. to render API 2018-03-26 19:47:08 +02:00
osd.c vo_gpu: invalidate fbotex before drawing 2017-12-25 00:47:53 +01:00
osd.h
ra.c client API: add a new way to pass X11 Display etc. to render API 2018-03-26 19:47:08 +02:00
ra.h client API: add a new way to pass X11 Display etc. to render API 2018-03-26 19:47:08 +02:00
shader_cache.c vo_gpu: vulkan: omit needless #define 2017-12-25 00:47:53 +01:00
shader_cache.h vo_gpu: invalidate fbotex before drawing 2017-12-25 00:47:53 +01:00
spirv.c vo_gpu: fix memleak in spirv.c 2017-09-26 17:32:36 +02:00
spirv.h vo_gpu: vulkan: generalize SPIR-V compiler 2017-09-26 17:25:35 +02:00
spirv_shaderc.c vo_gpu: shaderc: include debug info when --gpu-debug is set 2017-10-11 12:22:21 +11:00
user_shaders.c
user_shaders.h vo_gpu: make the vertex attribs dynamic 2017-09-28 01:54:38 +02:00
utils.c msg: reinterpret a bunch of message levels 2017-12-15 22:28:47 -08:00
utils.h
video.c vo_gpu: fix anamorphic video screenshots (second try) 2018-03-16 23:00:45 +02:00
video.h vo_gpu: remove a dead declaration 2018-02-28 00:55:06 -08:00
video_shaders.c vo_gpu: fix mobius tone mapping when sig_peak <= 1.0 2018-02-25 16:11:26 +02:00
video_shaders.h vo_gpu: simplify and correct color scale handling 2018-02-20 22:02:51 +02:00