Files
mpv/video
wm4 50bd2807ad vaapi: don't assume vaQueryImageFormats() returns sorted list
vaQueryImageFormats() returns a randomly ordered list - so we shouldn't
assume the first format on the list which works is the best. This
effectively switches to nv12 instead of yuv420p on some drivers.

We handle this by reusing va_to_imgfmt[], and ordering it by preference.
We hardcode that GPUs prefer nv12 pver yuv420p. In theory we could do
complicated probing (allocate dummy surface + use vaDeriveImage on it,
then retrieve the FourCC) - but all things which could break assumption
in the future are not supported yet (like 10 bit or 4:4:4), so this is
fine.
2015-07-15 13:27:25 +02:00
..
2015-07-15 12:22:49 +02:00
2015-04-13 12:10:01 +02:00
2015-04-13 12:10:01 +02:00
2015-04-13 12:10:01 +02:00
2015-07-07 15:05:32 +02:00
2015-04-13 12:10:01 +02:00
2015-04-13 12:10:01 +02:00
2014-07-10 00:58:56 +02:00
2015-07-08 14:48:17 +02:00