mpv/video/filter
Philip Langdale 989d873d6e filters: lavfi: allow hwdec_interop selection for filters
Today, lavfi filters are provided a hw_device from the first
hwdec_interop that was loaded, regardless of whether it's the right one
or not. In most situations where a hardware based filter is used, we
need more control over the device.

In this change, a `hwdec_interop` option is added to the lavfi wrapper
filter configuration and this is used to pick the correct hw_device to
inject into the filter or graph (in the case of a graph, all filters
get the same device).

Note that this requires the use of the explicit lavfi syntax to allow
for the extra configuration.

eg:

```
mpv --vf=hwupload
```

becomes

```
mpv --vf=lavfi=[hwupload]:hwdec_interop=cuda-nvdec
```

or

```
mpv --vf=lavfi-bridge=[hwupload]:hwdec_interop=cuda-nvdec
```
2022-09-21 09:39:34 -07:00
..
refqueue.c
refqueue.h
vf_d3d11vpp.c vo: hwdec: do hwdec interop lookup by image format 2022-09-21 09:39:34 -07:00
vf_fingerprint.c
vf_format.c vf_format: support forwarding/stripping film grain metadata 2022-04-05 15:02:18 +02:00
vf_gpu.c
vf_sub.c
vf_vapoursynth.c
vf_vavpp.c filters: lavfi: allow hwdec_interop selection for filters 2022-09-21 09:39:34 -07:00
vf_vdpaupp.c filters: lavfi: allow hwdec_interop selection for filters 2022-09-21 09:39:34 -07:00