mpv/video/decode
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
..
d3d.c d3d: DXVA2_ModeMPEG2_VLD supports all profiles 2016-05-03 15:46:16 +02:00
d3d.h d3d11va, dxva2: return the format struct directly 2016-04-29 23:30:01 +02:00
d3d11va.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
dec_video.c dec_video: always redisplay cover art after a seek 2016-03-11 20:58:13 +01:00
dec_video.h video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
dxva2.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
lavc.h video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
vaapi.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
vd.h video: approximate AVI timestamps via DTS handling 2016-02-11 16:14:30 +01:00
vd_lavc.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
vdpau.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
videotoolbox.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00