configure: Add config option for libva2 (VAAPI 1)
authorMark Thompson <sw@jkqxz.net>
Sun, 1 Oct 2017 21:51:07 +0000 (22:51 +0100)
committerMark Thompson <sw@jkqxz.net>
Sun, 8 Oct 2017 23:11:53 +0000 (00:11 +0100)
configure

index 9461240..f634a83 100755 (executable)
--- a/configure
+++ b/configure
@@ -2205,6 +2205,7 @@ CONFIG_EXTRA="
     texturedsp
     texturedspenc
     tpeldsp
+    vaapi_1
     vaapi_encode
     vc1dsp
     videodsp
@@ -6241,6 +6242,10 @@ enabled vaapi &&
 enabled vaapi &&
     check_lib vaapi_x11 "va/va.h va/va_x11.h" vaGetDisplay -lva -lva-x11 -lX11
 
+enabled vaapi &&
+    check_cpp_condition "va/va.h" "VA_CHECK_VERSION(1, 0, 0)" &&
+    enable vaapi_1
+
 enabled vdpau &&
     check_cpp_condition vdpau/vdpau.h "defined VDP_DECODER_PROFILE_MPEG4_PART2_ASP" ||
     disable vdpau