hwcontext_vaapi: Improve format mapping
Give the entries in the VAAPI format map table an explicit type and add functions to do the necessary lookups. Add another field to this table indicating whether the chroma planes are swapped (as in YV12), and use that rather than explicit comparisons where swapping is needed.
Showing
Please
register
or
sign in
to comment