mirror of https://github.com/mpv-player/mpv
46fff8d31a
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. |
||
---|---|---|
.. | ||
common.c | ||
common.h | ||
context.c | ||
context.h | ||
context_angle.c | ||
context_cocoa.c | ||
context_drm_egl.c | ||
context_dxinterop.c | ||
context_rpi.c | ||
context_rpi.h | ||
context_w32.c | ||
context_wayland.c | ||
context_x11.c | ||
context_x11egl.c | ||
egl_helpers.c | ||
egl_helpers.h | ||
header_fixes.h | ||
hwdec.c | ||
hwdec.h | ||
hwdec_d3d11egl.c | ||
hwdec_dxva2.c | ||
hwdec_dxva2egl.c | ||
hwdec_dxva2gldx.c | ||
hwdec_osx.c | ||
hwdec_vaegl.c | ||
hwdec_vaglx.c | ||
hwdec_vdpau.c | ||
lcms.c | ||
lcms.h | ||
nnedi3.c | ||
nnedi3.h | ||
nnedi3_weights.bin | ||
osd.c | ||
osd.h | ||
superxbr.c | ||
superxbr.h | ||
utils.c | ||
utils.h | ||
video.c | ||
video.h | ||
video_shaders.c | ||
video_shaders.h |