mirror of https://github.com/mpv-player/mpv
e50db42927
It turns out that it's generally more useful to look up hwdecs by image format, rather than device type. In the situations where we need to find one, we generally know the image format we're dealing with. Doing this avoids us having to create mappings from image format to device type. The most significant part of this change is filling in the image format for the various hw interops. There is a hw_imgfmt field today today, but only a couple of the interops fill it in, and that seems to be because we've never actually used this piece of metadata before. Well, now we have a good use for it. |
||
---|---|---|
.. | ||
context.c | ||
context.h | ||
hwdec_d3d11va.c | ||
hwdec_dxva2dxgi.c | ||
ra_d3d11.c | ||
ra_d3d11.h |