1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-05 06:30:06 +00:00
mpv/video/out
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
..
cocoa os x: handle multiple dropped files on the window 2016-04-30 18:58:06 +02:00
opengl video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
wayland
win32
aspect.c aspect: rework --video-unscaled 2016-04-10 18:29:20 +02:00
aspect.h
bitmap_packer.c
bitmap_packer.h
cocoa_common.h
cocoa_common.m
d3d_shader_420p.h
d3d_shader_nv12.h
d3d_shader_yuv.hlsl
dither.c
dither.h
drm_common.c
drm_common.h
filter_kernels.c
filter_kernels.h
vo_caca.c
vo_direct3d.c vo_direct3d: remove passing device to decoder 2016-05-09 18:59:10 +02:00
vo_drm.c
vo_image.c
vo_lavc.c vo_lavc: fix build on Libav 2016-04-15 19:35:29 +02:00
vo_null.c
vo_opengl_cb.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
vo_opengl.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
vo_rpi.c vo_rpi: rename mutex/cond variables 2016-04-26 17:12:01 +02:00
vo_sdl.c
vo_vaapi.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
vo_vdpau.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
vo_wayland.c
vo_x11.c vo_xv, vo_x11: warn that these VOs should not be used 2016-03-06 19:22:15 +01:00
vo_xv.c vo_xv, vo_x11: warn that these VOs should not be used 2016-03-06 19:22:15 +01:00
vo.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
vo.h video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
w32_common.c win32: make taskbar progress indication optional 2016-05-08 17:05:20 +02:00
w32_common.h
wayland_common.c wayland: use the advertised size in fullscreen 2016-05-08 19:47:08 +02:00
wayland_common.h
win_state.c
win_state.h
x11_common.c x11: slightly safer X11 error handler behavior 2016-05-08 11:04:44 +02:00
x11_common.h x11: move vo->input_ctx accesses to x11->input_ctx 2016-03-15 22:11:31 +01:00
x11_icon.bin