summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2016-03-23 23:48:13 +0000
committerAnton Khirnov <anton@khirnov.net>2016-03-30 09:04:53 +0200
commit5d273d3efac340ef8de445c955ff44c7abed4e8f (patch)
tree245dbf7c3bb31832b9d0937fc52f4232f9f5b87d /configure
parentca8c7591735c0f80cc29e31e2e92cb10228e14c7 (diff)
avconv: VAAPI hwcontext initialisation and hwaccel helper
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index 7b0e5b5fd7..f91a5d410b 100755
--- a/configure
+++ b/configure
@@ -1636,6 +1636,7 @@ HAVE_LIST="
sdl
section_data_rel_ro
threads
+ vaapi_drm
vaapi_x11
vdpau_x11
xlib
@@ -4694,10 +4695,15 @@ enabled vaapi &&
check_code cc "va/va.h" "vaCreateSurfaces(0, 0, 0, 0, 0, 0, 0, 0)" ||
disable vaapi
-enabled vaapi && enabled xlib &&
+if enabled vaapi ; then
+ enabled xlib &&
check_lib2 "va/va.h va/va_x11.h" vaGetDisplay -lva -lva-x11 &&
enable vaapi_x11
+ check_lib2 "va/va.h va/va_drm.h" vaGetDisplayDRM -lva -lva-drm &&
+ enable vaapi_drm
+fi
+
enabled vdpau &&
check_cpp_condition vdpau/vdpau.h "defined VDP_DECODER_PROFILE_MPEG4_PART2_ASP" ||
disable vdpau