]> git.sesse.net Git - ffmpeg/commit
hwcontext_vaapi: Improve format mapping
authorMark Thompson <sw@jkqxz.net>
Tue, 18 Sep 2018 22:30:56 +0000 (23:30 +0100)
committerMark Thompson <sw@jkqxz.net>
Sun, 23 Sep 2018 13:42:34 +0000 (14:42 +0100)
commit40724026b7055c9951b579393e2c4178598f1194
tree413d4e2f2f6963e04cb94d611ac09051654bbbbb
parent930aad6a3617406f292f5505af3cd38000da04f1
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.
libavutil/hwcontext_vaapi.c