1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-08 15:18:00 +00:00
mpv/player
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
..
javascript
lua stats: print section titles independently 2018-03-25 02:07:26 +02:00
audio.c audio: improve behavior if filters output nothing during probing 2018-02-21 22:35:24 -08:00
client.c client API: add a new way to pass X11 Display etc. to render API 2018-03-26 19:47:08 +02:00
client.h client API: add mpv_create_weak_client() 2018-03-15 00:00:04 -07:00
command.c vo: pass through framedrop flag differently 2018-03-15 23:13:53 -07:00
command.h player: update duration based on highest timestamp demuxed 2017-12-24 21:49:12 +01:00
configfiles.c player: silence config file loading message on resuming 2018-01-13 03:26:45 -08:00
core.h client API: cleanup mpv_handle termination 2018-03-15 00:00:04 -07:00
external_files.c player: make track language matching case insensitive 2017-12-23 15:14:13 -07:00
external_files.h
javascript.c lua+js: Implement utils.getpid() 2018-02-13 20:16:01 -08:00
loadfile.c player: don't print error if aborted while loading external files 2018-03-26 19:47:08 +02:00
lua.c lua+js: Implement utils.getpid() 2018-02-13 20:16:01 -08:00
main.c client API: cleanup mpv_handle termination 2018-03-15 00:00:04 -07:00
misc.c options: move most subtitle and OSD rendering options to sub structs 2018-01-02 14:27:37 -08:00
osd.c video: make decoder wrapper a filter 2018-01-30 03:10:27 -08:00
playloop.c client API: deprecate opengl-cb API and introduce a replacement API 2018-02-28 00:55:06 -08:00
screenshot.c vo_gpu: make screenshots use the GL renderer 2018-02-11 17:45:51 -08:00
screenshot.h
scripting.c all: replace mpv_detach_destroy() with mpv_destroy() 2018-03-15 00:00:04 -07:00
sub.c video: make decoder wrapper a filter 2018-01-30 03:10:27 -08:00
video.c vo: pass through framedrop flag differently 2018-03-15 23:13:53 -07:00