mpv/video/filter
Philip Langdale 5186651f30 vo_gpu: hwdec: load hwdec interops on-demand by default
Historically, we have treated hwdec interop loading as a completely
separate step from loading the hwdecs themselves. Some hwdecs need an
interop, and some don't, and users generally configure the exact
hwdec they want, so interops that aren't relevant for that hwdec
shouldn't be loaded to save time and avoid warning/error spam.

The basic approach here is to recognise that interops are tied to
hwdecs by imgfmt. The hwdec outputs some format, and an interop is
needed to get that format to the vo without read back.

So, when we try to load an hwdec, instead of just blindly loading all
interops as we do today, let's pass the imgfmt in and only load
interops that work for that format. If more than one interop is
available for the format, the existing logic (whatever it is) will
continue to be used to pick one.

We also have one callsite in filters where we seem to pre-emptively
load all the interops. It's probably possible to trace down a specific
format but for now I'm just letting it keep loading all of them; it's
no worse than before.

You may notice there is no documentation update - and that's because
the current docs say that when the interop mode is `auto`, the interop
is loaded on demand. So reality now reflects the docs. How nice.
2022-02-17 20:02:32 -08:00
..
refqueue.c
refqueue.h
vf_d3d11vpp.c vo_gpu: hwdec: load hwdec interops on-demand by default 2022-02-17 20:02:32 -08:00
vf_fingerprint.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
vf_format.c vf_format: simplify frame type checking after addition of DoVi option 2022-02-06 14:45:50 +02:00
vf_gpu.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
vf_sub.c vf_sub: restore OSD if removed 2021-05-07 15:01:15 +02:00
vf_vapoursynth.c video: change chroma_w/chroma_h fields to use shift instead of size 2020-04-23 13:24:35 +02:00
vf_vavpp.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
vf_vdpaupp.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00