1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-05 06:30:06 +00:00
mpv/player
wm4 46fff8d31a video: refactor how VO exports hwdec device handles
The main change is with video/hwdec.h. mp_hwdec_info is made opaque (and
renamed to mp_hwdec_devices). Its accessors are mainly thread-safe (or
documented where not), which makes the whole thing saner and cleaner. In
particular, thread-safety rules become less subtle and more obvious.

The new internal API makes it easier to support multiple OpenGL interop
backends. (Although this is not done yet, and it's not clear whether it
ever will.)

This also removes all the API-specific fields from mp_hwdec_ctx and
replaces them with a "ctx" field. For d3d in particular, we drop the
mp_d3d_ctx struct completely, and pass the interfaces directly.

Remove the emulation checks from vaapi.c and vdpau.c; they are
pointless, and the checks that matter are done on the VO layer.

The d3d hardware decoders might slightly change behavior: dxva2-copy
will not use the VO device anymore if the VO supports proper interop.
This pretty much assumes that any in such cases the VO will not use any
form of exclusive mode, which makes using the VO device in copy mode
unnecessary.

This is a big refactor. Some things may be untested and could be broken.
2016-05-09 20:03:22 +02:00
..
lua lua: don't require key for mp.add_key_binding() 2016-03-26 10:44:57 +01:00
audio.c player: really start audio only once video is ready 2016-04-20 13:08:06 +02:00
client.c command: log property set calls 2016-04-15 13:20:05 +02:00
client.h
command.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
command.h
configfiles.c
core.h video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
external_files.c player: add wv to list of external audio file extensions 2016-03-26 18:24:07 +01:00
external_files.h
lavfi.c lavfi: shut up false positive compiler warnings 2016-04-26 19:38:51 +02:00
lavfi.h player: add complex filter graph support 2016-02-05 23:19:56 +01:00
loadfile.c player: force VO reconfig when unselecting video track 2016-04-23 18:55:24 +02:00
lua.c osd: cleanup: make OSDTYPE_ constants private to OSD code 2016-03-08 22:01:57 +01:00
main.c ipc: add Windows implementation with named pipes 2016-03-23 23:15:20 +11:00
misc.c win32: make taskbar progress indication optional 2016-05-08 17:05:20 +02:00
osd.c player: fix OSD bar chapter marks 2016-04-22 09:31:21 +02:00
playloop.c player: strictly wait until done when backstepping 2016-04-27 17:02:00 +02:00
screenshot.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
screenshot.h Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
scripting.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
sub.c osd: cleanup: make OSDTYPE_ constants private to OSD code 2016-03-08 22:01:57 +01:00
video.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00