mpv/video/decode
wm4 f033481551 videotoolbox: change how videotoolbox format is managed
The underlying intention of this code is to make changing
--videotoolbox-format at runtime work. For this reason, the format can't
just be statically setup, but must be read from the option at runtime.

This means the format is not fixed anymore, and we have to make sure the
renderer is property reinitialized if the format changes. There is
currently no way to trigger reinit on this level, which is why the
mp_image_params.hw_subfmt field was introduced.

One sketchy thing remains: normally, the renderer is supposed to be
involved with VO format negotiation, which would ensure that the VO
can take the format at all. Since the hw_subfmt is not part of this
format negotiation, it's implied the get_vt_fmt() callback only
returns formats supported by the renderer. This is not necessarily
clear because vo_opengl checks this with converted_imgfmt separately.
None of this matters in practice though, because we know all formats
are always supported.

(This still requires somehow triggering decoder reinit to make the
change effective.)
2016-04-07 19:54:58 +02:00
..
d3d.c vd_lavc: fix codec vs. decoder confusion 2016-04-07 17:48:00 +02:00
d3d.h vd_lavc: fix codec vs. decoder confusion 2016-04-07 17:48:00 +02:00
d3d11va.c vd_lavc: let hardware decoder request delaying frames explicitly 2016-04-07 18:47:32 +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 Rewrite ordered chapters and timeline stuff 2016-02-15 21:04:07 +01:00
dxva2.c vd_lavc: let hardware decoder request delaying frames explicitly 2016-04-07 18:47:32 +02:00
lavc.h vd_lavc: let hardware decoder request delaying frames explicitly 2016-04-07 18:47:32 +02:00
mediacodec.c Add a mediacodec decoder hwdec wrapper 2016-03-25 21:35:59 +01:00
rpi.c vd_lavc: fix codec vs. decoder confusion 2016-04-07 17:48:00 +02:00
vaapi.c vd_lavc: let hardware decoder request delaying frames explicitly 2016-04-07 18:47:32 +02:00
vd.h video: approximate AVI timestamps via DTS handling 2016-02-11 16:14:30 +01:00
vd_lavc.c vd_lavc: let hardware decoder request delaying frames explicitly 2016-04-07 18:47:32 +02:00
vdpau.c vd_lavc: fix codec vs. decoder confusion 2016-04-07 17:48:00 +02:00
videotoolbox.c videotoolbox: change how videotoolbox format is managed 2016-04-07 19:54:58 +02:00