mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
build: check for va_vpp.h
Thus, in config.h the macro HAVE_VA_VA_VPP_H is defined. This will allow us to handle the inclusion of the header better. https://bugzilla.gnome.org/show_bug.cgi?id=786119
This commit is contained in:
parent
93c7c9c3f4
commit
1789c6090f
2 changed files with 15 additions and 2 deletions
13
configure.ac
13
configure.ac
|
@ -709,6 +709,15 @@ slice_param.slice_data_flag = 0;
|
|||
])
|
||||
AS_IF([test "x$ac_cv_have_h265_decoding_api" = "xyes"], [USE_H265_DECODER=1])
|
||||
|
||||
dnl Check for va_vpp.h header
|
||||
saved_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS"
|
||||
AC_CHECK_HEADERS([va/va_vpp.h], [], [],
|
||||
[
|
||||
#include <va/va.h>
|
||||
])
|
||||
CPPFLAGS="$saved_CPPFLAGS"
|
||||
|
||||
dnl Check for vpp (video post-processing) support
|
||||
USE_VA_VPP=0
|
||||
AC_CACHE_CHECK([for video post-postprocessing API],
|
||||
|
@ -723,7 +732,9 @@ AC_CACHE_CHECK([for video post-postprocessing API],
|
|||
AC_LANG_PROGRAM(
|
||||
[[
|
||||
#include <va/va.h>
|
||||
#include <va/va_vpp.h>
|
||||
#ifdef HAVE_VA_VA_VPP_H
|
||||
# include <va/va_vpp.h>
|
||||
#endif
|
||||
]],
|
||||
[[
|
||||
VADisplay va_dpy;
|
||||
|
|
|
@ -94,6 +94,8 @@ USE_VP8_ENCODER = USE_ENCODERS and cc.has_header('va/va_enc_vp8.h', dependencies
|
|||
USE_VP9_DECODER = cc.has_header('va/va_dec_vp9.h', dependencies: libva_dep, prefix: '#include <va/va.h>')
|
||||
USE_VP9_ENCODER = USE_ENCODERS and cc.has_header('va/va_enc_vp9.h', dependencies: libva_dep, prefix: '#include <va/va.h>')
|
||||
|
||||
USE_VPP = cc.has_header('va/va_vpp.h', dependencies: libva_dep, prefix: '#include <va/va_vpp.h>')
|
||||
|
||||
USE_DRM = libva_drm_dep.found() and libdrm_dep.found() and libudev_dep.found() and get_option('with_drm') != 'no'
|
||||
USE_EGL = gmodule_dep.found() and egl_dep.found() and GLES_VERSION_MASK != 0 and get_option('with_egl') != 'no'
|
||||
USE_GLX = libva_x11_dep.found() and x11_dep.found() and gl_dep.found() and libdl_dep.found() and get_option('with_glx') != 'no'
|
||||
|
@ -125,7 +127,7 @@ cdata.set10('USE_X11', USE_X11)
|
|||
cdata.set10('HAVE_XKBLIB', cc.has_header('X11/XKBlib.h', dependencies: x11_dep))
|
||||
cdata.set10('HAVE_XRANDR', xrandr_dep.found())
|
||||
cdata.set10('HAVE_XRENDER', xrender_dep.found())
|
||||
cdata.set10('USE_VA_VPP', true)
|
||||
cdata.set10('USE_VA_VPP', USE_VPP)
|
||||
cdata.set10('USE_GST_GL_HELPERS', gstgl_dep.found())
|
||||
cdata.set('GLES_VERSION_MASK', GLES_VERSION_MASK)
|
||||
runcmd = run_command('pkg-config', '--variable=driverdir', 'libva')
|
||||
|
|
Loading…
Reference in a new issue