summaryrefslogtreecommitdiffstats
path: root/video/img_format.h
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2023-06-18 12:07:30 -0700
committerPhilip Langdale <github.philipl@overt.org>2023-06-29 11:58:51 -0700
commit9ff8c9e78020bcda19f3435ed88ebd6a302d2cc2 (patch)
treec18526a8689fb2ac6aa80b1bc3a200c117dcba34 /video/img_format.h
parenta61b784d90148bcd0e8e9c366dcc563c81c74026 (diff)
downloadmpv-9ff8c9e78020bcda19f3435ed88ebd6a302d2cc2.tar.bz2
mpv-9ff8c9e78020bcda19f3435ed88ebd6a302d2cc2.tar.xz
vd_lavc: let the user provide a priority list of hwdecs to consider
Today, the only way to make mpv consider multiple hwdecs and pick the first one that works is to use one of the `auto` modes. But the list that is considered in those cases is hard-coded. If the user wants to provide their own list, they are out of luck. And I think that there is now a significant reason to support this - the new Vulkan hwdec is definitely not ready to be in the auto list, but if you want to use it by default, it will not work with many codecs that are normally hardware decodable (only h.264, hevc and av1 if you are very lucky). Everything else will fall back to software decoding. Instead, what you really want to say is: use Vulkan for whatever it supports, and fall back to my old hwdec for everything else. One side-effect of this implementation is that you can freely mix hwdec names and special values like `auto` and `no`. The behaviour will be correct, so I didn't try and prohibit any combinations. However, some combinations will be silly - eg: sticking any further values after `no` will result in them being ignored. On the other hand, a combination like `vulkan,auto` could be very useful as that will use Vulkan if possible, and if not, run the normal auto routine. Fixes #11797
Diffstat (limited to 'video/img_format.h')
0 files changed, 0 insertions, 0 deletions