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
d3d11va.c vd_lavc: let hardware decoder request delaying frames explicitly 2016-04-07 18:47:32 +02:00
dec_video.c
dec_video.h
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
rpi.c
vaapi.c vd_lavc: let hardware decoder request delaying frames explicitly 2016-04-07 18:47:32 +02:00
vd.h
vd_lavc.c vd_lavc: let hardware decoder request delaying frames explicitly 2016-04-07 18:47:32 +02:00
vdpau.c
videotoolbox.c videotoolbox: change how videotoolbox format is managed 2016-04-07 19:54:58 +02:00