diff -Nru gstreamer-vaapi-0.5.10/AUTHORS gstreamer-vaapi-0.6.0/AUTHORS --- gstreamer-vaapi-0.5.10/AUTHORS 2015-02-03 07:56:36.000000000 +0000 +++ gstreamer-vaapi-0.6.0/AUTHORS 2015-07-15 12:47:43.000000000 +0000 @@ -1,6 +1,7 @@ Maintainers: Gwenole Beauchesne - Lead developer +Sreerenj Balachandran - Lead developer Halley Zhao - MPEG-4:2 decoder This project is maintained by Intel Corporation. @@ -8,6 +9,7 @@ Contributors (sorted by first name): Cong Zhong +Changzhi Wei Emilio Lopez Fabrice Bellet Feng Yuan @@ -21,12 +23,12 @@ Lionel Landwerlin Matthew Waters Matthieu Bouron +Michael Olbrich Nicolas Dufresne Philip Lorenz Robert Bradford Ross Burton Simon Farnsworth -Sreerenj Balachandran Thibault Saunier Victor Manuel Jaquez Leal Xiaowei Li diff -Nru gstreamer-vaapi-0.5.10/build-aux/ltmain.sh gstreamer-vaapi-0.6.0/build-aux/ltmain.sh --- gstreamer-vaapi-0.5.10/build-aux/ltmain.sh 2015-02-03 08:39:51.000000000 +0000 +++ gstreamer-vaapi-0.6.0/build-aux/ltmain.sh 2015-07-15 12:50:31.000000000 +0000 @@ -70,7 +70,7 @@ # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) -# $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.10ubuntu1 +# $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.11 # automake: $automake_version # autoconf: $autoconf_version # @@ -80,7 +80,7 @@ PROGRAM=libtool PACKAGE=libtool -VERSION="2.4.2 Debian-2.4.2-1.10ubuntu1" +VERSION="2.4.2 Debian-2.4.2-1.11" TIMESTAMP="" package_revision=1.3337 diff -Nru gstreamer-vaapi-0.5.10/config.h.in gstreamer-vaapi-0.6.0/config.h.in --- gstreamer-vaapi-0.5.10/config.h.in 2015-02-03 08:39:53.000000000 +0000 +++ gstreamer-vaapi-0.6.0/config.h.in 2015-07-15 12:50:33.000000000 +0000 @@ -1,11 +1,35 @@ /* config.h.in. Generated from configure.ac by autoheader. */ +/* Defined to the string representation of GStreamer version */ +#undef GST_API_VERSION_S + +/* Defined to the string representation of GStreamer API version */ +#undef GST_PKG_VERSION_S + +/* Defined to the string representation of gstreamer-vaapi major version */ +#undef GST_VAAPI_MAJOR_VERSION_S + /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_DRM_FOURCC_H +/* Define to 1 if you have the header file. */ +#undef HAVE_EGL_EGL_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_GLES2_GL2EXT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_GLES2_GL2_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_GLES3_GL3EXT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_GLES3_GL3_H + /* Define to 1 if you have the header file. */ #undef HAVE_GL_GLEXT_H @@ -15,8 +39,8 @@ /* Define to 1 if you have the header file. */ #undef HAVE_GL_GL_H -/* Defined to 1 if GstVideoOverlayComposition API supports HW hints. */ -#undef HAVE_GST_VIDEO_OVERLAY_HWCAPS +/* Define to 1 if you have the header file. */ +#undef HAVE_GST_GL_GL_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H @@ -48,6 +72,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H +/* Define to 1 if you have the header file. */ +#undef HAVE_VA_VA_DEC_HEVC_H + /* Define to 1 if you have the header file. */ #undef HAVE_VA_VA_DEC_JPEG_H @@ -60,9 +87,18 @@ /* Define to 1 if you have the header file. */ #undef HAVE_VA_VA_ENC_H264_H +/* Define to 1 if you have the header file. */ +#undef HAVE_VA_VA_ENC_HEVC_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_VA_VA_ENC_JPEG_H + /* Define to 1 if you have the header file. */ #undef HAVE_VA_VA_ENC_MPEG2_H +/* Define to 1 if you have the header file. */ +#undef HAVE_VA_VA_ENC_VP8_H + /* Define to 1 if you have the header file. */ #undef HAVE_WAYLAND_CLIENT_H @@ -124,21 +160,42 @@ /* Defined to 1 if DRM is enabled */ #undef USE_DRM +/* Defined to 1 if EGL is enabled */ +#undef USE_EGL + /* Defined to 1 if video encoders are used */ #undef USE_ENCODERS +/* Defined to the set of enabled OpenGL ES APIs */ +#undef USE_GLES_VERSION_MASK + /* Defined to 1 if GLX is enabled */ #undef USE_GLX +/* Defined to 1 if GStreamer OpenGL helper libraries are available */ +#undef USE_GST_GL_HELPERS + +/* Defined to 1 if H265 encoder is used */ +#undef USE_H265_ENCODER + +/* Defined to 1 if HEVC decoder is used */ +#undef USE_HEVC_DECODER + /* Defined to 1 if JPEG decoder is used */ #undef USE_JPEG_DECODER +/* Defined to 1 if JPEG encoder is used */ +#undef USE_JPEG_ENCODER + /* Defined to 1 if video post-processing is used */ #undef USE_VA_VPP /* Defined to 1 if VP8 decoder is used */ #undef USE_VP8_DECODER +/* Defined to 1 if VP8 encoder is used */ +#undef USE_VP8_ENCODER + /* Defined to 1 if WAYLAND is enabled */ #undef USE_WAYLAND diff -Nru gstreamer-vaapi-0.5.10/configure gstreamer-vaapi-0.6.0/configure --- gstreamer-vaapi-0.5.10/configure 2015-02-03 08:39:53.000000000 +0000 +++ gstreamer-vaapi-0.6.0/configure 2015-07-15 12:50:33.000000000 +0000 @@ -1,8 +1,8 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for gst_vaapi 0.5.10. +# Generated by GNU Autoconf 2.69 for gst_vaapi 0.6.0. # -# Report bugs to . +# Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -275,7 +275,8 @@ $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and -$0: gwenole.beauchesne@intel.com about your system, +$0: gwenole.beauchesne@intel.com, +$0: sreerenj.balachandran@intel.com about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." @@ -650,9 +651,9 @@ # Identity of this package. PACKAGE_NAME='gst_vaapi' PACKAGE_TARNAME='gstreamer-vaapi' -PACKAGE_VERSION='0.5.10' -PACKAGE_STRING='gst_vaapi 0.5.10' -PACKAGE_BUGREPORT='gwenole.beauchesne@intel.com' +PACKAGE_VERSION='0.6.0' +PACKAGE_STRING='gst_vaapi 0.6.0' +PACKAGE_BUGREPORT='gwenole.beauchesne@intel.com, sreerenj.balachandran@intel.com' PACKAGE_URL='' ac_unique_file="Makefile.am" @@ -699,18 +700,28 @@ pkgconfigdir USE_WAYLAND_FALSE USE_WAYLAND_TRUE +USE_EGL_FALSE +USE_EGL_TRUE USE_GLX_FALSE USE_GLX_TRUE USE_X11_FALSE USE_X11_TRUE USE_DRM_FALSE USE_DRM_TRUE +USE_HEVC_DECODER_FALSE +USE_HEVC_DECODER_TRUE USE_VP8_DECODER_FALSE USE_VP8_DECODER_TRUE USE_JPEG_DECODER_FALSE USE_JPEG_DECODER_TRUE USE_VA_VPP_FALSE USE_VA_VPP_TRUE +USE_H265_ENCODER_FALSE +USE_H265_ENCODER_TRUE +USE_VP8_ENCODER_FALSE +USE_VP8_ENCODER_TRUE +USE_JPEG_ENCODER_FALSE +USE_JPEG_ENCODER_TRUE USE_ENCODERS_FALSE USE_ENCODERS_TRUE LIBVA_WAYLAND_LIBS @@ -725,6 +736,12 @@ LIBVA_CFLAGS WAYLAND_LIBS WAYLAND_CFLAGS +EGL_LIBS +EGL_CFLAGS +GLES3_LIBS +GLES3_CFLAGS +GLES2_LIBS +GLES2_CFLAGS GL_LIBS GL_CFLAGS XRENDER_LIBS @@ -739,14 +756,19 @@ DRM_CFLAGS plugindir GST_PLUGIN_PATH_1_0 -GST_PLUGIN_PATH GST_PLUGIN_LDFLAGS GST_ALL_LDFLAGS GST_VAAPI_LT_LDFLAGS GST_VAAPI_LT_VERSION GST_VAAPI_MAJOR_VERSION +USE_GST_GL_HELPERS_FALSE +USE_GST_GL_HELPERS_TRUE +GST_GL_LIBS +GST_GL_CFLAGS USE_LOCAL_VIDEO_PARSERS_FALSE USE_LOCAL_VIDEO_PARSERS_TRUE +USE_LOCAL_CODEC_PARSERS_H265_FALSE +USE_LOCAL_CODEC_PARSERS_H265_TRUE USE_BUILTIN_LIBVPX_FALSE USE_BUILTIN_LIBVPX_TRUE USE_LOCAL_CODEC_PARSERS_VP8_FALSE @@ -778,10 +800,6 @@ USE_GST_API_1_4p_TRUE USE_GST_API_1_2p_FALSE USE_GST_API_1_2p_TRUE -USE_GST_API_1_0p_FALSE -USE_GST_API_1_0p_TRUE -USE_GST_API_0_10_FALSE -USE_GST_API_0_10_TRUE GST_PLUGINS_BAD_VERSION_REQUIRED GST_PLUGINS_BASE_VERSION_REQUIRED GST_VERSION_REQUIRED @@ -956,7 +974,8 @@ enable_x11 enable_glx enable_wayland -with_gstreamer_api +enable_egl +with_glapi with_html_dir enable_gtk_doc enable_gtk_doc_html @@ -996,7 +1015,8 @@ GST_BASEVIDEO_LIBS GST_CODEC_PARSERS_CFLAGS GST_CODEC_PARSERS_LIBS -GST_PLUGIN_PATH +GST_GL_CFLAGS +GST_GL_LIBS GST_PLUGIN_PATH_1_0 DRM_CFLAGS DRM_LIBS @@ -1010,6 +1030,12 @@ XRENDER_LIBS GL_CFLAGS GL_LIBS +GLES2_CFLAGS +GLES2_LIBS +GLES3_CFLAGS +GLES3_LIBS +EGL_CFLAGS +EGL_LIBS WAYLAND_CFLAGS WAYLAND_LIBS LIBVA_CFLAGS @@ -1560,7 +1586,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures gst_vaapi 0.5.10 to adapt to many kinds of systems. +\`configure' configures gst_vaapi 0.6.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1631,7 +1657,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of gst_vaapi 0.5.10:";; + short | recursive ) echo "Configuration of gst_vaapi 0.6.0:";; esac cat <<\_ACEOF @@ -1660,6 +1686,7 @@ --enable-x11 enable X11 output [default=yes] --enable-glx enable OpenGL/X11 output [default=yes] --enable-wayland enable Wayland output [default=yes] + --enable-egl enable EGL output [default=yes] --enable-gtk-doc use gtk-doc to build documentation [[default=no]] --enable-gtk-doc-html build documentation in html format [[default=yes]] --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] @@ -1672,9 +1699,8 @@ --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot=DIR Search for dependent libraries within DIR (or the compiler's sysroot if not specified). - --with-gstreamer-api=VERSION - build against the specified GStreamer API version - [default=autodetect] + --with-glapi=APIs build with the specified OpenGL APIs + [default=any] --with-html-dir=PATH path to installed docs Some influential environment variables: @@ -1729,9 +1755,9 @@ C compiler flags for GST_CODEC_PARSERS, overriding pkg-config GST_CODEC_PARSERS_LIBS linker flags for GST_CODEC_PARSERS, overriding pkg-config - GST_PLUGIN_PATH - installation path for gstreamer-vaapi plugin elements for - GStreamer 0.10 + GST_GL_CFLAGS + C compiler flags for GST_GL, overriding pkg-config + GST_GL_LIBS linker flags for GST_GL, overriding pkg-config GST_PLUGIN_PATH_1_0 installation path for gstreamer-vaapi plugin elements for GStreamer 1.0 @@ -1750,6 +1776,14 @@ linker flags for XRENDER, overriding pkg-config GL_CFLAGS C compiler flags for GL, overriding pkg-config GL_LIBS linker flags for GL, overriding pkg-config + GLES2_CFLAGS + C compiler flags for GLES2, overriding pkg-config + GLES2_LIBS linker flags for GLES2, overriding pkg-config + GLES3_CFLAGS + C compiler flags for GLES3, overriding pkg-config + GLES3_LIBS linker flags for GLES3, overriding pkg-config + EGL_CFLAGS C compiler flags for EGL, overriding pkg-config + EGL_LIBS linker flags for EGL, overriding pkg-config WAYLAND_CFLAGS C compiler flags for WAYLAND, overriding pkg-config WAYLAND_LIBS @@ -1773,7 +1807,7 @@ Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. -Report bugs to . +Report bugs to . _ACEOF ac_status=$? fi @@ -1836,7 +1870,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -gst_vaapi configure 0.5.10 +gst_vaapi configure 0.6.0 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2181,9 +2215,9 @@ $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} -( $as_echo "## ------------------------------------------- ## +( $as_echo "## sssssssssssssssssssssssssssssssssssssssssss ## ## Report this to gwenole.beauchesne@intel.com ## -## ------------------------------------------- ##" +## sssssssssssssssssssssssssssssssssssssssssss ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac @@ -2205,7 +2239,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by gst_vaapi $as_me 0.5.10, which was +It was created by gst_vaapi $as_me 0.6.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3185,7 +3219,7 @@ # Define the identity of the package. PACKAGE='gstreamer-vaapi' - VERSION='0.5.10' + VERSION='0.6.0' cat >>confdefs.h <<_ACEOF @@ -3401,7 +3435,7 @@ LIBVA_PACKAGE_VERSION=1.0.3 -WAYLAND_API_VERSION=1.0.0 +WAYLAND_API_VERSION=1.0.2 # Check whether --enable-silent-rules was given. @@ -12172,12 +12206,20 @@ fi +# Check whether --enable-egl was given. +if test "${enable_egl+set}" = set; then : + enableval=$enable_egl; +else + enable_egl="yes" +fi + + -# Check whether --with-gstreamer-api was given. -if test "${with_gstreamer_api+set}" = set; then : - withval=$with_gstreamer_api; GST_API_VERSION="$with_gstreamer_api" +# Check whether --with-glapi was given. +if test "${with_glapi+set}" = set; then : + withval=$with_glapi; GLAPI="$with_glapi" else - GST_API_VERSION=autodetect + GLAPI=any fi @@ -12722,7 +12764,7 @@ -GLIB_VERSION_REQUIRED=2.28 +GLIB_VERSION_REQUIRED=2.32 pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 @@ -12865,53 +12907,28 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GStreamer API version" >&5 $as_echo_n "checking for GStreamer API version... " >&6; } -if test "$GST_API_VERSION" = "autodetect"; then - gst_pkg_versions="1.0 0.10" -else - as_arg_v1=$GST_API_VERSION -as_arg_v2=1.0 -awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null -case $? in #( - 1) : - gst_pkg_versions="0.10" ;; #( - 0) : - gst_pkg_versions="1.0" ;; #( - 2) : - gst_pkg_versions="1.0" ;; #( - *) : - ;; -esac +if $PKG_CONFIG --exists "gstreamer-1.0"; then + gst_version=`$PKG_CONFIG --modversion "gstreamer-1.0"` + gst_major_version=`echo "$gst_version" | cut -d'.' -f1` + gst_minor_version=`echo "$gst_version" | cut -d'.' -f2` + GST_API_VERSION="${gst_major_version}.${gst_minor_version}" + GST_PKG_VERSION="1.0" fi -for gst_pkg_version in ${gst_pkg_versions}; do - if $PKG_CONFIG --exists "gstreamer-$gst_pkg_version"; then - gst_version=`$PKG_CONFIG --modversion "gstreamer-$gst_pkg_version"` - gst_major_version=`echo "$gst_version" | cut -d'.' -f1` - gst_minor_version=`echo "$gst_version" | cut -d'.' -f2` - GST_API_VERSION="${gst_major_version}.${gst_minor_version}" - GST_PKG_VERSION="$gst_pkg_version" - break - fi -done if test -z "$GST_PKG_VERSION"; then - as_fn_error $? "version $GST_API_VERSION not found" "$LINENO" 5 + as_fn_error $? "gstreamer-$GST_PKG_VERSION was not found" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GST_API_VERSION" >&5 $as_echo "$GST_API_VERSION" >&6; } + +cat >>confdefs.h <<_ACEOF +#define GST_API_VERSION_S "$GST_API_VERSION" +_ACEOF + + case $GST_API_VERSION in -0.10) - GST_VERSION_REQUIRED=0.10.36 - GST_PLUGINS_BASE_VERSION_REQUIRED=0.10.31 - GST_PLUGINS_BAD_VERSION_REQUIRED=0.10.22 - ;; -1.0) - GST_VERSION_REQUIRED=1.0.0 - GST_PLUGINS_BASE_VERSION_REQUIRED=1.0.0 - GST_PLUGINS_BAD_VERSION_REQUIRED=1.0.0 - ;; 1.2) GST_VERSION_REQUIRED=1.1.90 GST_PLUGINS_BASE_VERSION_REQUIRED=1.1.0 @@ -12936,37 +12953,9 @@ -USE_GST_API_0_10="no" -USE_GST_API_1_0p="no" USE_GST_API_1_2p="no" USE_GST_API_1_4p="no" as_arg_v1=$GST_API_VERSION -as_arg_v2=0.10 -awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null -case $? in #( - 1) : - ;; #( - 0) : - USE_GST_API_0_10="yes" ;; #( - 2) : - ;; #( - *) : - ;; -esac -as_arg_v1=$GST_API_VERSION -as_arg_v2=1.0 -awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null -case $? in #( - 1) : - ;; #( - 0) : - USE_GST_API_1_0p="yes" ;; #( - 2) : - USE_GST_API_1_0p="yes" ;; #( - *) : - ;; -esac -as_arg_v1=$GST_API_VERSION as_arg_v2=1.2 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null case $? in #( @@ -12992,22 +12981,6 @@ *) : ;; esac - if test "$USE_GST_API_0_10" = "yes"; then - USE_GST_API_0_10_TRUE= - USE_GST_API_0_10_FALSE='#' -else - USE_GST_API_0_10_TRUE='#' - USE_GST_API_0_10_FALSE= -fi - - if test "$USE_GST_API_1_0p" = "yes"; then - USE_GST_API_1_0p_TRUE= - USE_GST_API_1_0p_FALSE='#' -else - USE_GST_API_1_0p_TRUE='#' - USE_GST_API_1_0p_FALSE= -fi - if test "$USE_GST_API_1_2p" = "yes"; then USE_GST_API_1_2p_TRUE= USE_GST_API_1_2p_FALSE='#' @@ -13025,23 +12998,17 @@ fi -GST_PKG_VERSION="$GST_API_VERSION" -if test "$USE_GST_API_1_2p" = "yes" || test "$USE_GST_API_1_4p" = "yes" ; then - GST_PKG_VERSION="1.0" -fi -if test "$USE_GST_API_0_10" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for GStreamer 0.10 is obsolete, and will be removed" >&5 -$as_echo "$as_me: WARNING: support for GStreamer 0.10 is obsolete, and will be removed" >&2;} - if test "$enable_builtin_videoparsers" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabled built-in videoparsers (unsupported)" >&5 -$as_echo "$as_me: WARNING: disabled built-in videoparsers (unsupported)" >&2;} - enable_builtin_videoparsers="no" - fi -elif test "$GST_API_VERSION" = "1.0"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for GStreamer 1.0 is obsolete, and will be removed" >&5 -$as_echo "$as_me: WARNING: support for GStreamer 1.0 is obsolete, and will be removed" >&2;} + +cat >>confdefs.h <<_ACEOF +#define GST_PKG_VERSION_S "$GST_PKG_VERSION" +_ACEOF + + +if test "$GST_API_VERSION" = "1.2"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for GStreamer 1.2 is deprecated, please upgrade" >&5 +$as_echo "$as_me: WARNING: support for GStreamer 1.2 is deprecated, please upgrade" >&2;} fi @@ -13227,44 +13194,6 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GstBaseSink::query hook" >&5 -$as_echo_n "checking for GstBaseSink::query hook... " >&6; } -if ${ac_cv_have_gst_base_sink_query+:} false; then : - $as_echo_n "(cached) " >&6 -else - - saved_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $GST_BASE_CFLAGS" - saved_LIBS="$LIBS" - LIBS="$LIBS $GST_BASE_LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -GstBaseSinkClass klass; klass.query = NULL; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_have_gst_base_sink_query="yes" -else - ac_cv_have_gst_base_sink_query="no" - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CPPFLAGS="$saved_CPPFLAGS" - LIBS="$saved_LIBS" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_gst_base_sink_query" >&5 -$as_echo "$ac_cv_have_gst_base_sink_query" >&6; } -if test "$ac_cv_have_gst_base_sink_query" != "yes"; then - as_fn_error $? "GstBaseSink does not contain the 'query' vfunc" "$LINENO" 5 -fi - pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_PLUGINS_BASE" >&5 @@ -13634,94 +13563,6 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GstVideoOverlayComposition" >&5 -$as_echo_n "checking for GstVideoOverlayComposition... " >&6; } -if ${ac_cv_have_gst_video_overlay_composition+:} false; then : - $as_echo_n "(cached) " >&6 -else - - saved_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $GST_CFLAGS $GST_VIDEO_CFLAGS" - saved_LIBS="$LIBS" - LIBS="$LIBS $GST_LIBS $GST_VIDEO_LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -GstVideoOverlayComposition *c; - c = gst_video_overlay_composition_new(0); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_have_gst_video_overlay_composition="yes" -else - ac_cv_have_gst_video_overlay_composition="no" - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CPPFLAGS="$saved_CPPFLAGS" - LIBS="$saved_LIBS" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_gst_video_overlay_composition" >&5 -$as_echo "$ac_cv_have_gst_video_overlay_composition" >&6; } -if test "$ac_cv_have_gst_video_overlay_composition" != "yes"; then - as_fn_error $? "GstVideoOverlayComposition is not available" "$LINENO" 5 -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ... with advanced format flags" >&5 -$as_echo_n "checking ... with advanced format flags... " >&6; } -if ${ac_cv_have_gst_video_overlay_hwcaps+:} false; then : - $as_echo_n "(cached) " >&6 -else - - saved_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $GST_CFLAGS $GST_VIDEO_CFLAGS" - saved_LIBS="$LIBS" - LIBS="$LIBS $GST_LIBS $GST_VIDEO_LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -GstVideoOverlayRectangle *rect; - const guint w = 64, h = 64; - guint flags = ( - GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA| - GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA); - rect = gst_video_overlay_rectangle_new_argb(NULL, w, h, w * 4, - 0, 0, w, h, flags); - gst_video_overlay_rectangle_set_global_alpha(rect, 0.5f); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_have_gst_video_overlay_hwcaps="yes" -else - ac_cv_have_gst_video_overlay_hwcaps="no" - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CPPFLAGS="$saved_CPPFLAGS" - LIBS="$saved_LIBS" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_gst_video_overlay_hwcaps" >&5 -$as_echo "$ac_cv_have_gst_video_overlay_hwcaps" >&6; } -if test "$ac_cv_have_gst_video_overlay_hwcaps" = "yes"; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_GST_VIDEO_OVERLAY_HWCAPS 1 -_ACEOF - -fi - if test "$USE_GST_API_1_2p" != "yes" && test "$USE_GST_API_1_4p" != "yes"; then pkg_failed=no @@ -13821,6 +13662,7 @@ ac_cv_have_gst_h264_parser="no" ac_cv_have_gst_jpeg_parser="no" ac_cv_have_gst_vp8_parser="no" + ac_cv_have_gst_h265_parser="no" else pkg_failed=no @@ -14111,78 +13953,80 @@ fi - if test "$enable_builtin_videoparsers" = "yes"; then - USE_LOCAL_VIDEO_PARSERS_TRUE= - USE_LOCAL_VIDEO_PARSERS_FALSE='#' +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for H.265 parser" >&5 +$as_echo_n "checking for H.265 parser... " >&6; } +if ${ac_cv_have_gst_h265_parser+:} false; then : + $as_echo_n "(cached) " >&6 else - USE_LOCAL_VIDEO_PARSERS_TRUE='#' - USE_LOCAL_VIDEO_PARSERS_FALSE= -fi - - -case $GST_API_VERSION in -0.10) lt_bias=0;; -1.0) lt_bias=2;; -1.2) lt_bias=4;; -1.4) lt_bias=5;; -1.[5-6]) lt_bias=6;; -esac -GST_VAAPI_MAJOR_VERSION=`expr 6 - "$lt_bias"` - - -GST_VAAPI_LT_CURRENT="$GST_VAAPI_MAJOR_VERSION" -GST_VAAPI_LT_REV=0 -GST_VAAPI_LT_AGE=0 -GST_VAAPI_LT_VERSION="$GST_VAAPI_LT_CURRENT:$GST_VAAPI_LT_REV:$GST_VAAPI_LT_AGE" -GST_VAAPI_LT_LDFLAGS="-version-info $GST_VAAPI_LT_VERSION" - + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $GST_CFLAGS $GST_CODEC_PARSERS_CFLAGS" + saved_LIBS="$LIBS" + LIBS="$LIBS $GST_LIBS $GST_CODEC_PARSERS_LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +GstH265SliceHdr slice_hdr; + GstH265VUIParams vui_params; + GstH265Profile profile = GST_H265_PROFILE_MAIN_STILL_PICTURE; + slice_hdr.n_emulation_prevention_bytes = 0; + vui_params.par_n = 0; + vui_params.par_d = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_gst_h265_parser="yes" +else + ac_cv_have_gst_h265_parser="no" -GST_ALL_LDFLAGS="-no-undefined" - - -GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^(_*gst_plugin_desc|gst_.*_get_type)\$\$' $GST_ALL_LDFLAGS" - +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_gst_h265_parser" >&5 +$as_echo "$ac_cv_have_gst_h265_parser" >&6; } + if test "$ac_cv_have_gst_h265_parser" != "yes"; then + USE_LOCAL_CODEC_PARSERS_H265_TRUE= + USE_LOCAL_CODEC_PARSERS_H265_FALSE='#' +else + USE_LOCAL_CODEC_PARSERS_H265_TRUE='#' + USE_LOCAL_CODEC_PARSERS_H265_FALSE= +fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GStreamer plugins directory" >&5 -$as_echo_n "checking for GStreamer plugins directory... " >&6; } -case $GST_PKG_VERSION in -0.10) _gst_plugin_path="$GST_PLUGIN_PATH";; -1.0) _gst_plugin_path="$GST_PLUGIN_PATH_1_0";; -esac -if test -d "$_gst_plugin_path"; then - GST_PLUGINS_DIR="$_gst_plugin_path" + if test "$enable_builtin_videoparsers" = "yes"; then + USE_LOCAL_VIDEO_PARSERS_TRUE= + USE_LOCAL_VIDEO_PARSERS_FALSE='#' else - GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-$GST_PKG_VERSION --variable pluginsdir` - if test -z "$GST_PLUGINS_DIR"; then - GST_PLUGINS_DIR="\$(libdir)/gstreamer-$GST_PKG_VERSION" - fi + USE_LOCAL_VIDEO_PARSERS_TRUE='#' + USE_LOCAL_VIDEO_PARSERS_FALSE= fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GST_PLUGINS_DIR" >&5 -$as_echo "$GST_PLUGINS_DIR" >&6; } -plugindir="$GST_PLUGINS_DIR" - -USE_DRM=0 -if test "$enable_drm" = "yes"; then +HAVE_GSTGL=0 +if test "$enable_glx" = "yes" -o "$enable_egl" = "yes"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5 -$as_echo_n "checking for DRM... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_GL" >&5 +$as_echo_n "checking for GST_GL... " >&6; } -if test -n "$DRM_CFLAGS"; then - pkg_cv_DRM_CFLAGS="$DRM_CFLAGS" +if test -n "$GST_GL_CFLAGS"; then + pkg_cv_GST_GL_CFLAGS="$GST_GL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-gl-\$GST_PKG_VERSION >= \$GST_PLUGINS_BAD_VERSION_REQUIRED\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gstreamer-gl-$GST_PKG_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then - pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm" 2>/dev/null` + pkg_cv_GST_GL_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-gl-$GST_PKG_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -14190,16 +14034,16 @@ else pkg_failed=untried fi -if test -n "$DRM_LIBS"; then - pkg_cv_DRM_LIBS="$DRM_LIBS" +if test -n "$GST_GL_LIBS"; then + pkg_cv_GST_GL_LIBS="$GST_GL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-gl-\$GST_PKG_VERSION >= \$GST_PLUGINS_BAD_VERSION_REQUIRED\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gstreamer-gl-$GST_PKG_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then - pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm" 2>/dev/null` + pkg_cv_GST_GL_LIBS=`$PKG_CONFIG --libs "gstreamer-gl-$GST_PKG_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -14220,49 +14064,240 @@ _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm" 2>&1` + GST_GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-gl-$GST_PKG_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED" 2>&1` else - DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm" 2>&1` + GST_GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-gl-$GST_PKG_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED" 2>&1` fi # Put the nasty error message in config.log where it belongs - echo "$DRM_PKG_ERRORS" >&5 + echo "$GST_GL_PKG_ERRORS" >&5 - USE_DRM=0 + HAVE_GSTGL=0 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - USE_DRM=0 + HAVE_GSTGL=0 else - DRM_CFLAGS=$pkg_cv_DRM_CFLAGS - DRM_LIBS=$pkg_cv_DRM_LIBS + GST_GL_CFLAGS=$pkg_cv_GST_GL_CFLAGS + GST_GL_LIBS=$pkg_cv_GST_GL_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } - USE_DRM=1 + HAVE_GSTGL=1 +fi fi -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 -$as_echo_n "checking for UDEV... " >&6; } +if test $HAVE_GSTGL -eq 1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GStreamer OpenGL helper libraries" >&5 +$as_echo_n "checking for GStreamer OpenGL helper libraries... " >&6; } +if ${ac_cv_have_gst_gl_helpers+:} false; then : + $as_echo_n "(cached) " >&6 +else -if test -n "$UDEV_CFLAGS"; then - pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $GST_GL_CFLAGS $GST_VIDEO_CFLAGS" + saved_LIBS="$LIBS" + LIBS="$saved_LIBS" + for ac_header in gst/gl/gl.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "gst/gl/gl.h" "ac_cv_header_gst_gl_gl_h" "$ac_includes_default" +if test "x$ac_cv_header_gst_gl_gl_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GST_GL_GL_H 1 +_ACEOF + : else - pkg_failed=yes -fi - else - pkg_failed=untried + HAVE_GSTGL=0 fi -if test -n "$UDEV_LIBS"; then - pkg_cv_UDEV_LIBS="$UDEV_LIBS" + +done + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +GstGLContext gl_context; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_gst_gl_helpers="yes" +else + ac_cv_have_gst_gl_helpers="no" HAVE_GSTGL=0 + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_gst_gl_helpers" >&5 +$as_echo "$ac_cv_have_gst_gl_helpers" >&6; } +fi + if test $HAVE_GSTGL -eq 1; then + USE_GST_GL_HELPERS_TRUE= + USE_GST_GL_HELPERS_FALSE='#' +else + USE_GST_GL_HELPERS_TRUE='#' + USE_GST_GL_HELPERS_FALSE= +fi + + + +cat >>confdefs.h <<_ACEOF +#define USE_GST_GL_HELPERS $HAVE_GSTGL +_ACEOF + + +if test "$enable_egl" = "yes" -a $HAVE_GSTGL -ne 1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GStreamer/GL helper libraries not found, disabling EGL support" >&5 +$as_echo "$as_me: WARNING: GStreamer/GL helper libraries not found, disabling EGL support" >&2;} + enable_egl="no" +fi + +case $GST_API_VERSION in +1.2) lt_bias=4;; +1.4) lt_bias=5;; +1.[5-6]) lt_bias=6;; +esac +GST_VAAPI_MAJOR_VERSION=`expr 7 - "$lt_bias"` + + + +cat >>confdefs.h <<_ACEOF +#define GST_VAAPI_MAJOR_VERSION_S "$GST_VAAPI_MAJOR_VERSION" +_ACEOF + + +GST_VAAPI_LT_CURRENT="$GST_VAAPI_MAJOR_VERSION" +GST_VAAPI_LT_REV=0 +GST_VAAPI_LT_AGE=0 +GST_VAAPI_LT_VERSION="$GST_VAAPI_LT_CURRENT:$GST_VAAPI_LT_REV:$GST_VAAPI_LT_AGE" +GST_VAAPI_LT_LDFLAGS="-version-info $GST_VAAPI_LT_VERSION" + + + +GST_ALL_LDFLAGS="-no-undefined" + + +GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^(_*gst_plugin_desc|gst_.*_get_type)\$\$' $GST_ALL_LDFLAGS" + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GStreamer plugins directory" >&5 +$as_echo_n "checking for GStreamer plugins directory... " >&6; } +if test -d "$GST_PLUGIN_PATH_1_0"; then + GST_PLUGINS_DIR="$GST_PLUGIN_PATH_1_0" +else + GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-$GST_PKG_VERSION --variable pluginsdir` + if test -z "$GST_PLUGINS_DIR"; then + GST_PLUGINS_DIR="\$(libdir)/gstreamer-$GST_PKG_VERSION" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GST_PLUGINS_DIR" >&5 +$as_echo "$GST_PLUGINS_DIR" >&6; } +plugindir="$GST_PLUGINS_DIR" + + + +USE_DRM=0 +if test "$enable_drm" = "yes"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5 +$as_echo_n "checking for DRM... " >&6; } + +if test -n "$DRM_CFLAGS"; then + pkg_cv_DRM_CFLAGS="$DRM_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$DRM_LIBS"; then + pkg_cv_DRM_LIBS="$DRM_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm" 2>&1` + else + DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$DRM_PKG_ERRORS" >&5 + + USE_DRM=0 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + USE_DRM=0 +else + DRM_CFLAGS=$pkg_cv_DRM_CFLAGS + DRM_LIBS=$pkg_cv_DRM_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + USE_DRM=1 +fi + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 +$as_echo_n "checking for UDEV... " >&6; } + +if test -n "$UDEV_CFLAGS"; then + pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$UDEV_LIBS"; then + pkg_cv_UDEV_LIBS="$UDEV_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 @@ -14660,9 +14695,15 @@ if test "$enable_glx" = "yes"; then enable_opengl="yes" fi +if test "$enable_egl" = "yes"; then + enable_opengl="yes" +fi +GLES_VERSION_MASK=0 HAVE_GL=0 if test "$enable_opengl" = "yes"; then +case ",$GLAPI," in +(*,any,*|*,gl,*) HAVE_GL=1 pkg_failed=no @@ -14718,81 +14759,428 @@ if test $_pkg_short_errors_supported = yes; then GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1` else - GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1` + GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$GL_PKG_ERRORS" >&5 + + HAVE_GL=0 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + HAVE_GL=0 +else + GL_CFLAGS=$pkg_cv_GL_CFLAGS + GL_LIBS=$pkg_cv_GL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + : +fi + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $GL_CFLAGS" + for ac_header in GL/gl.h GL/glext.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " +#ifdef HAVE_GL_GL_H +# include +#endif + +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + : +else + HAVE_GL=0 +fi + +done + + CPPFLAGS="$saved_CPPFLAGS" + ;; +esac +fi +GLES_VERSION_MASK=`expr $GLES_VERSION_MASK "+" $HAVE_GL "*" 1` + +HAVE_GLESv2=0 +if test "$enable_opengl" = "yes"; then +case ",$GLAPI," in +(*,any,*|*,gles2,*) + HAVE_GLESv2=1 + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLES2" >&5 +$as_echo_n "checking for GLES2... " >&6; } + +if test -n "$GLES2_CFLAGS"; then + pkg_cv_GLES2_CFLAGS="$GLES2_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glesv2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glesv2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GLES2_CFLAGS=`$PKG_CONFIG --cflags "glesv2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$GLES2_LIBS"; then + pkg_cv_GLES2_LIBS="$GLES2_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glesv2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glesv2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GLES2_LIBS=`$PKG_CONFIG --libs "glesv2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + GLES2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glesv2" 2>&1` + else + GLES2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glesv2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$GLES2_PKG_ERRORS" >&5 + + HAVE_GLESv2=0 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + HAVE_GLESv2=0 +else + GLES2_CFLAGS=$pkg_cv_GLES2_CFLAGS + GLES2_LIBS=$pkg_cv_GLES2_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + : +fi + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $GLES2_CFLAGS" + for ac_header in GLES2/gl2.h GLES2/gl2ext.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " +#ifdef HAVE_GLES2_GL2_H +# include +#endif + +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + : +else + HAVE_GLESv2=0 +fi + +done + + CPPFLAGS="$saved_CPPFLAGS" + ;; +esac +fi +GLES_VERSION_MASK=`expr $GLES_VERSION_MASK "+" $HAVE_GLESv2 "*" 4` + +HAVE_GLESv3=0 +if test "$enable_opengl" = "yes"; then +case ",$GLAPI," in +(*,any,*|*,gles3,*) + HAVE_GLESv3=1 + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLES3" >&5 +$as_echo_n "checking for GLES3... " >&6; } + +if test -n "$GLES3_CFLAGS"; then + pkg_cv_GLES3_CFLAGS="$GLES3_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glesv2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glesv2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GLES3_CFLAGS=`$PKG_CONFIG --cflags "glesv2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$GLES3_LIBS"; then + pkg_cv_GLES3_LIBS="$GLES3_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glesv2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glesv2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GLES3_LIBS=`$PKG_CONFIG --libs "glesv2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + GLES3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glesv2" 2>&1` + else + GLES3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glesv2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$GLES3_PKG_ERRORS" >&5 + + HAVE_GLESv3=0 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + HAVE_GLESv3=0 +else + GLES3_CFLAGS=$pkg_cv_GLES3_CFLAGS + GLES3_LIBS=$pkg_cv_GLES3_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + : +fi + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $GLES3_CFLAGS" + for ac_header in GLES3/gl3.h GLES3/gl3ext.h GLES2/gl2ext.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " +#ifdef HAVE_GLES3_GL3_H +# include +#endif + +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + : +else + HAVE_GLESv3=0 +fi + +done + + CPPFLAGS="$saved_CPPFLAGS" + ;; +esac +fi +GLES_VERSION_MASK=`expr $GLES_VERSION_MASK "+" $HAVE_GLESv3 "*" 8` + +USE_GLX=0 +if test "$enable_glx" = "yes" -a $HAVE_GL -eq 1 -a $USE_X11 -eq 1; then + USE_GLX=1 + saved_CPPFLAGS="$CPPFLAGS" + saved_LIBS="$LIBS" + CPPFLAGS="$CPPFLAGS $GL_CFLAGS" + LIBS="$LIBS $GL_LIBS" + for ac_header in GL/glx.h +do : + ac_fn_c_check_header_compile "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" " +#ifdef HAVE_GL_GL_H +# include +#endif + +" +if test "x$ac_cv_header_GL_glx_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GL_GLX_H 1 +_ACEOF + : +else + USE_GLX=0 +fi + +done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5 +$as_echo_n "checking for glXCreateContext in -lGL... " >&6; } +if ${ac_cv_lib_GL_glXCreateContext+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lGL $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char glXCreateContext (); +int +main () +{ +return glXCreateContext (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_GL_glXCreateContext=yes +else + ac_cv_lib_GL_glXCreateContext=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5 +$as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; } +if test "x$ac_cv_lib_GL_glXCreateContext" = xyes; then : + : +else + USE_GLX=0 +fi + + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" +fi + +USE_EGL=0 +if test "$enable_egl" = "yes" -a $GLES_VERSION_MASK -ne 0; then + USE_EGL=1 + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL" >&5 +$as_echo_n "checking for EGL... " >&6; } + +if test -n "$EGL_CFLAGS"; then + pkg_cv_EGL_CFLAGS="$EGL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl\""; } >&5 + ($PKG_CONFIG --exists --print-errors "egl") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EGL_CFLAGS=`$PKG_CONFIG --cflags "egl" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$EGL_LIBS"; then + pkg_cv_EGL_LIBS="$EGL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl\""; } >&5 + ($PKG_CONFIG --exists --print-errors "egl") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_EGL_LIBS=`$PKG_CONFIG --libs "egl" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "egl" 2>&1` + else + EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "egl" 2>&1` fi # Put the nasty error message in config.log where it belongs - echo "$GL_PKG_ERRORS" >&5 + echo "$EGL_PKG_ERRORS" >&5 - HAVE_GL=0 + USE_EGL=0 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - HAVE_GL=0 + USE_EGL=0 else - GL_CFLAGS=$pkg_cv_GL_CFLAGS - GL_LIBS=$pkg_cv_GL_LIBS + EGL_CFLAGS=$pkg_cv_EGL_CFLAGS + EGL_LIBS=$pkg_cv_EGL_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } : fi saved_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $GL_CFLAGS" - for ac_header in GL/gl.h GL/glext.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " -#ifdef HAVE_GL_GL_H -# include -#endif - -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - : -else - HAVE_GL=0 -fi - -done - - CPPFLAGS="$saved_CPPFLAGS" -fi - -USE_GLX=0 -if test "$enable_glx" = "yes" -a $HAVE_GL -eq 1 -a $USE_X11 -eq 1; then - USE_GLX=1 - saved_CPPFLAGS="$CPPFLAGS" saved_LIBS="$LIBS" - CPPFLAGS="$CPPFLAGS $GL_CFLAGS" - LIBS="$LIBS $GL_LIBS" - for ac_header in GL/glx.h + for ac_header in EGL/egl.h do : - ac_fn_c_check_header_compile "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" " -#ifdef HAVE_GL_GL_H -# include -#endif - -" -if test "x$ac_cv_header_GL_glx_h" = xyes; then : + ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default" +if test "x$ac_cv_header_EGL_egl_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_GL_GLX_H 1 +#define HAVE_EGL_EGL_H 1 _ACEOF : else - USE_GLX=0 + USE_EGL=0 fi done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5 -$as_echo_n "checking for glXCreateContext in -lGL... " >&6; } -if ${ac_cv_lib_GL_glXCreateContext+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglGetDisplay in -lEGL" >&5 +$as_echo_n "checking for eglGetDisplay in -lEGL... " >&6; } +if ${ac_cv_lib_EGL_eglGetDisplay+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lGL $LIBS" +LIBS="-lEGL $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -14802,30 +15190,30 @@ #ifdef __cplusplus extern "C" #endif -char glXCreateContext (); +char eglGetDisplay (); int main () { -return glXCreateContext (); +return eglGetDisplay (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_GL_glXCreateContext=yes + ac_cv_lib_EGL_eglGetDisplay=yes else - ac_cv_lib_GL_glXCreateContext=no + ac_cv_lib_EGL_eglGetDisplay=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5 -$as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; } -if test "x$ac_cv_lib_GL_glXCreateContext" = xyes; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_EGL_eglGetDisplay" >&5 +$as_echo "$ac_cv_lib_EGL_eglGetDisplay" >&6; } +if test "x$ac_cv_lib_EGL_eglGetDisplay" = xyes; then : : else - USE_GLX=0 + USE_EGL=0 fi CPPFLAGS="$saved_CPPFLAGS" @@ -14843,12 +15231,12 @@ pkg_cv_WAYLAND_CFLAGS="$WAYLAND_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.0.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.0.0") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.0.2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.0.2") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then - pkg_cv_WAYLAND_CFLAGS=`$PKG_CONFIG --cflags "wayland-client >= 1.0.0" 2>/dev/null` + pkg_cv_WAYLAND_CFLAGS=`$PKG_CONFIG --cflags "wayland-client >= 1.0.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -14860,12 +15248,12 @@ pkg_cv_WAYLAND_LIBS="$WAYLAND_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.0.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.0.0") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.0.2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.0.2") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then - pkg_cv_WAYLAND_LIBS=`$PKG_CONFIG --libs "wayland-client >= 1.0.0" 2>/dev/null` + pkg_cv_WAYLAND_LIBS=`$PKG_CONFIG --libs "wayland-client >= 1.0.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -14886,9 +15274,9 @@ _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - WAYLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-client >= 1.0.0" 2>&1` + WAYLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-client >= 1.0.2" 2>&1` else - WAYLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-client >= 1.0.0" 2>&1` + WAYLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-client >= 1.0.2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$WAYLAND_PKG_ERRORS" >&5 @@ -15322,6 +15710,66 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_vp8_decoding_api" >&5 $as_echo "$ac_cv_have_vp8_decoding_api" >&6; } +saved_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS" +for ac_header in va/va_dec_hevc.h +do : + ac_fn_c_check_header_compile "$LINENO" "va/va_dec_hevc.h" "ac_cv_header_va_va_dec_hevc_h" "#include +" +if test "x$ac_cv_header_va_va_dec_hevc_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VA_VA_DEC_HEVC_H 1 +_ACEOF + +fi + +done + +CPPFLAGS="$saved_CPPFLAGS" + +USE_HEVC_DECODER=0 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEVC decoding API" >&5 +$as_echo_n "checking for HEVC decoding API... " >&6; } +if ${ac_cv_have_hevc_decoding_api+:} false; then : + $as_echo_n "(cached) " >&6 +else + + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS" + saved_LIBS="$LIBS" + LIBS="$LIBS $LIBVA_LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #ifdef HAVE_VA_VA_DEC_HEVC_H + #include + #endif + +int +main () +{ +VAPictureParameterBufferHEVC pic_param; + VASliceParameterBufferHEVC slice_param; + VAIQMatrixBufferHEVC iq_matrix; + slice_param.slice_data_offset = 0; + slice_param.slice_data_flag = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_hevc_decoding_api="yes" USE_HEVC_DECODER=1 +else + ac_cv_have_hevc_decoding_api="no" + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_hevc_decoding_api" >&5 +$as_echo "$ac_cv_have_hevc_decoding_api" >&6; } USE_VA_VPP=0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for video post-postprocessing API" >&5 @@ -15366,6 +15814,9 @@ $as_echo "$ac_cv_have_va_vpp_api" >&6; } USE_ENCODERS=0 +USE_JPEG_ENCODER=0 +USE_VP8_ENCODER=0 +USE_H265_ENCODER=0 if test "$enable_encoders" = "yes"; then pkg_failed=no @@ -15459,6 +15910,173 @@ done + + for ac_header in va/va_enc_jpeg.h +do : + ac_fn_c_check_header_compile "$LINENO" "va/va_enc_jpeg.h" "ac_cv_header_va_va_enc_jpeg_h" "#include + +" +if test "x$ac_cv_header_va_va_enc_jpeg_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VA_VA_ENC_JPEG_H 1 +_ACEOF + USE_JPEG_ENCODER=1 +fi + +done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG encoding API" >&5 +$as_echo_n "checking for JPEG encoding API... " >&6; } +if ${ac_cv_have_jpeg_encoding_api+:} false; then : + $as_echo_n "(cached) " >&6 +else + + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS" + saved_LIBS="$LIBS" + LIBS="$LIBS $LIBVA_LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #ifdef HAVE_VA_VA_ENC_JPEG_H + #include + #endif + +int +main () +{ +VAEncPictureParameterBufferJPEG pic_param; + VAEncSliceParameterBufferJPEG slice_param; + VAQMatrixBufferJPEG q_matrix; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_jpeg_encoding_api="yes" USE_JPEG_ENCODER=1 +else + ac_cv_have_jpeg_encoding_api="no" + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_jpeg_encoding_api" >&5 +$as_echo "$ac_cv_have_jpeg_encoding_api" >&6; } + + for ac_header in va/va_enc_vp8.h +do : + ac_fn_c_check_header_compile "$LINENO" "va/va_enc_vp8.h" "ac_cv_header_va_va_enc_vp8_h" "#include + +" +if test "x$ac_cv_header_va_va_enc_vp8_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VA_VA_ENC_VP8_H 1 +_ACEOF + USE_VP8_ENCODER=1 +fi + +done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VP8 encoding API" >&5 +$as_echo_n "checking for VP8 encoding API... " >&6; } +if ${ac_cv_have_vp8_encoding_api+:} false; then : + $as_echo_n "(cached) " >&6 +else + + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS" + saved_LIBS="$LIBS" + LIBS="$LIBS $LIBVA_LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #ifdef HAVE_VA_VA_ENC_VP8_H + #include + #endif + +int +main () +{ +VAEncSequenceParameterBufferVP8 seq_param; + VAEncPictureParameterBufferVP8 pic_param; + VAQMatrixBufferVP8 q_matrix; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_vp8_encoding_api="yes" USE_VP8_ENCODER=1 +else + ac_cv_have_vp8_encoding_api="no" USE_VP8_ENCODER=0 + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_vp8_encoding_api" >&5 +$as_echo "$ac_cv_have_vp8_encoding_api" >&6; } + CPPFLAGS="$saved_CPPFLAGS" + + for ac_header in va/va_enc_hevc.h +do : + ac_fn_c_check_header_compile "$LINENO" "va/va_enc_hevc.h" "ac_cv_header_va_va_enc_hevc_h" "#include + +" +if test "x$ac_cv_header_va_va_enc_hevc_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VA_VA_ENC_HEVC_H 1 +_ACEOF + USE_H265_ENCODER=1 +fi + +done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEVC encoding API" >&5 +$as_echo_n "checking for HEVC encoding API... " >&6; } +if ${ac_cv_have_hevc_encoding_api+:} false; then : + $as_echo_n "(cached) " >&6 +else + + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS" + saved_LIBS="$LIBS" + LIBS="$LIBS $LIBVA_LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #ifdef HAVE_VA_VA_ENC_HEVC_H + #include + #endif + +int +main () +{ +VAEncSequenceParameterBufferHEVC seq_param; + VAEncPictureParameterBufferHEVC pic_param; + VAEncSliceParameterBufferHEVC; + VAQMatrixBufferHEVC q_matrix; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_hevc_encoding_api="yes" USE_H265_ENCODER=1 +else + ac_cv_have_hevc_encoding_api="no" USE_H265_ENCODER=0 + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_hevc_encoding_api" >&5 +$as_echo "$ac_cv_have_hevc_encoding_api" >&6; } CPPFLAGS="$saved_CPPFLAGS" fi fi @@ -15538,7 +16156,7 @@ fi -case ":$USE_X11:$USE_GLX:$USE_WAYLAND:$USE_DRM:" in +case ":$USE_X11:$USE_GLX:$USE_EGL:$USE_WAYLAND:$USE_DRM:" in *:1:*) ;; *) @@ -15562,6 +16180,48 @@ cat >>confdefs.h <<_ACEOF +#define USE_JPEG_ENCODER $USE_JPEG_ENCODER +_ACEOF + + if test $USE_JPEG_ENCODER -eq 1; then + USE_JPEG_ENCODER_TRUE= + USE_JPEG_ENCODER_FALSE='#' +else + USE_JPEG_ENCODER_TRUE='#' + USE_JPEG_ENCODER_FALSE= +fi + + + +cat >>confdefs.h <<_ACEOF +#define USE_VP8_ENCODER $USE_VP8_ENCODER +_ACEOF + + if test $USE_VP8_ENCODER -eq 1; then + USE_VP8_ENCODER_TRUE= + USE_VP8_ENCODER_FALSE='#' +else + USE_VP8_ENCODER_TRUE='#' + USE_VP8_ENCODER_FALSE= +fi + + + +cat >>confdefs.h <<_ACEOF +#define USE_H265_ENCODER $USE_H265_ENCODER +_ACEOF + + if test $USE_H265_ENCODER -eq 1; then + USE_H265_ENCODER_TRUE= + USE_H265_ENCODER_FALSE='#' +else + USE_H265_ENCODER_TRUE='#' + USE_H265_ENCODER_FALSE= +fi + + + +cat >>confdefs.h <<_ACEOF #define USE_VA_VPP $USE_VA_VPP _ACEOF @@ -15604,6 +16264,20 @@ cat >>confdefs.h <<_ACEOF +#define USE_HEVC_DECODER $USE_HEVC_DECODER +_ACEOF + + if test $USE_HEVC_DECODER -eq 1; then + USE_HEVC_DECODER_TRUE= + USE_HEVC_DECODER_FALSE='#' +else + USE_HEVC_DECODER_TRUE='#' + USE_HEVC_DECODER_FALSE= +fi + + + +cat >>confdefs.h <<_ACEOF #define USE_DRM $USE_DRM _ACEOF @@ -15646,6 +16320,26 @@ cat >>confdefs.h <<_ACEOF +#define USE_EGL $USE_EGL +_ACEOF + + if test $USE_EGL -eq 1; then + USE_EGL_TRUE= + USE_EGL_FALSE='#' +else + USE_EGL_TRUE='#' + USE_EGL_FALSE= +fi + + + +cat >>confdefs.h <<_ACEOF +#define USE_GLES_VERSION_MASK $GLES_VERSION_MASK +_ACEOF + + + +cat >>confdefs.h <<_ACEOF #define USE_WAYLAND $USE_WAYLAND _ACEOF @@ -15661,7 +16355,7 @@ pkgconfigdir=${libdir}/pkgconfig -ac_config_files="$ac_config_files Makefile debian.upstream/Makefile debian.upstream/changelog debian.upstream/control debian.upstream/gstreamer$GST_API_VERSION-vaapi-doc.install:debian.upstream/gstreamer-vaapi-doc.install.in debian.upstream/gstreamer$GST_API_VERSION-vaapi.install:debian.upstream/gstreamer-vaapi.install.in debian.upstream/libgstvaapi$GST_PKG_VERSION-dev.install:debian.upstream/libgstvaapi-dev.install.in debian.upstream/libgstvaapi$GST_VAAPI_MAJOR_VERSION.install:debian.upstream/libgstvaapi.install.in debian.upstream/libgstvaapi-drm-$GST_VAAPI_MAJOR_VERSION.install:debian.upstream/libgstvaapi-drm.install.in debian.upstream/libgstvaapi-glx-$GST_VAAPI_MAJOR_VERSION.install:debian.upstream/libgstvaapi-glx.install.in debian.upstream/libgstvaapi-wayland-$GST_VAAPI_MAJOR_VERSION.install:debian.upstream/libgstvaapi-wayland.install.in debian.upstream/libgstvaapi-x11-$GST_VAAPI_MAJOR_VERSION.install:debian.upstream/libgstvaapi-x11.install.in docs/Makefile docs/reference/Makefile docs/reference/libs/Makefile docs/reference/libs/libs-docs.xml docs/reference/plugins/Makefile docs/reference/plugins/plugins-docs.xml ext/Makefile ext/libvpx/Makefile gst-libs/Makefile gst-libs/gst/Makefile gst-libs/gst/base/Makefile gst-libs/gst/codecparsers/Makefile gst-libs/gst/vaapi/Makefile gst-libs/gst/video/Makefile gst/Makefile gst/vaapi/Makefile patches/Makefile patches/videoparsers/Makefile pkgconfig/Makefile pkgconfig/gstreamer-vaapi-$GST_PKG_VERSION.pc:pkgconfig/gstreamer-vaapi.pc.in pkgconfig/gstreamer-vaapi-drm-$GST_PKG_VERSION.pc:pkgconfig/gstreamer-vaapi-drm.pc.in pkgconfig/gstreamer-vaapi-glx-$GST_PKG_VERSION.pc:pkgconfig/gstreamer-vaapi-glx.pc.in pkgconfig/gstreamer-vaapi-wayland-$GST_PKG_VERSION.pc:pkgconfig/gstreamer-vaapi-wayland.pc.in pkgconfig/gstreamer-vaapi-x11-$GST_PKG_VERSION.pc:pkgconfig/gstreamer-vaapi-x11.pc.in tests/Makefile" +ac_config_files="$ac_config_files Makefile debian.upstream/Makefile debian.upstream/changelog debian.upstream/control debian.upstream/gstreamer$GST_API_VERSION-vaapi-doc.install:debian.upstream/gstreamer-vaapi-doc.install.in debian.upstream/gstreamer$GST_API_VERSION-vaapi.install:debian.upstream/gstreamer-vaapi.install.in debian.upstream/libgstvaapi$GST_PKG_VERSION-dev.install:debian.upstream/libgstvaapi-dev.install.in debian.upstream/libgstvaapi$GST_VAAPI_MAJOR_VERSION.install:debian.upstream/libgstvaapi.install.in debian.upstream/libgstvaapi-drm-$GST_VAAPI_MAJOR_VERSION.install:debian.upstream/libgstvaapi-drm.install.in debian.upstream/libgstvaapi-glx-$GST_VAAPI_MAJOR_VERSION.install:debian.upstream/libgstvaapi-glx.install.in debian.upstream/libgstvaapi-wayland-$GST_VAAPI_MAJOR_VERSION.install:debian.upstream/libgstvaapi-wayland.install.in debian.upstream/libgstvaapi-x11-$GST_VAAPI_MAJOR_VERSION.install:debian.upstream/libgstvaapi-x11.install.in docs/Makefile docs/reference/Makefile docs/reference/libs/Makefile docs/reference/libs/libs-docs.xml docs/reference/plugins/Makefile docs/reference/plugins/plugins-docs.xml ext/Makefile ext/libvpx/Makefile gst-libs/Makefile gst-libs/gst/Makefile gst-libs/gst/base/Makefile gst-libs/gst/codecparsers/Makefile gst-libs/gst/vaapi/Makefile gst/Makefile gst/vaapi/Makefile patches/Makefile patches/videoparsers/Makefile pkgconfig/Makefile pkgconfig/gstreamer-vaapi-$GST_PKG_VERSION.pc:pkgconfig/gstreamer-vaapi.pc.in pkgconfig/gstreamer-vaapi-drm-$GST_PKG_VERSION.pc:pkgconfig/gstreamer-vaapi-drm.pc.in pkgconfig/gstreamer-vaapi-glx-$GST_PKG_VERSION.pc:pkgconfig/gstreamer-vaapi-glx.pc.in pkgconfig/gstreamer-vaapi-wayland-$GST_PKG_VERSION.pc:pkgconfig/gstreamer-vaapi-wayland.pc.in pkgconfig/gstreamer-vaapi-x11-$GST_PKG_VERSION.pc:pkgconfig/gstreamer-vaapi-x11.pc.in tests/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -15824,14 +16518,6 @@ as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -if test -z "${USE_GST_API_0_10_TRUE}" && test -z "${USE_GST_API_0_10_FALSE}"; then - as_fn_error $? "conditional \"USE_GST_API_0_10\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${USE_GST_API_1_0p_TRUE}" && test -z "${USE_GST_API_1_0p_FALSE}"; then - as_fn_error $? "conditional \"USE_GST_API_1_0p\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi if test -z "${USE_GST_API_1_2p_TRUE}" && test -z "${USE_GST_API_1_2p_FALSE}"; then as_fn_error $? "conditional \"USE_GST_API_1_2p\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -15860,14 +16546,34 @@ as_fn_error $? "conditional \"USE_BUILTIN_LIBVPX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${USE_LOCAL_CODEC_PARSERS_H265_TRUE}" && test -z "${USE_LOCAL_CODEC_PARSERS_H265_FALSE}"; then + as_fn_error $? "conditional \"USE_LOCAL_CODEC_PARSERS_H265\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${USE_LOCAL_VIDEO_PARSERS_TRUE}" && test -z "${USE_LOCAL_VIDEO_PARSERS_FALSE}"; then as_fn_error $? "conditional \"USE_LOCAL_VIDEO_PARSERS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${USE_GST_GL_HELPERS_TRUE}" && test -z "${USE_GST_GL_HELPERS_FALSE}"; then + as_fn_error $? "conditional \"USE_GST_GL_HELPERS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${USE_ENCODERS_TRUE}" && test -z "${USE_ENCODERS_FALSE}"; then as_fn_error $? "conditional \"USE_ENCODERS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${USE_JPEG_ENCODER_TRUE}" && test -z "${USE_JPEG_ENCODER_FALSE}"; then + as_fn_error $? "conditional \"USE_JPEG_ENCODER\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${USE_VP8_ENCODER_TRUE}" && test -z "${USE_VP8_ENCODER_FALSE}"; then + as_fn_error $? "conditional \"USE_VP8_ENCODER\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${USE_H265_ENCODER_TRUE}" && test -z "${USE_H265_ENCODER_FALSE}"; then + as_fn_error $? "conditional \"USE_H265_ENCODER\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${USE_VA_VPP_TRUE}" && test -z "${USE_VA_VPP_FALSE}"; then as_fn_error $? "conditional \"USE_VA_VPP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -15880,6 +16586,10 @@ as_fn_error $? "conditional \"USE_VP8_DECODER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${USE_HEVC_DECODER_TRUE}" && test -z "${USE_HEVC_DECODER_FALSE}"; then + as_fn_error $? "conditional \"USE_HEVC_DECODER\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${USE_DRM_TRUE}" && test -z "${USE_DRM_FALSE}"; then as_fn_error $? "conditional \"USE_DRM\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -15892,6 +16602,10 @@ as_fn_error $? "conditional \"USE_GLX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${USE_EGL_TRUE}" && test -z "${USE_EGL_FALSE}"; then + as_fn_error $? "conditional \"USE_EGL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${USE_WAYLAND_TRUE}" && test -z "${USE_WAYLAND_FALSE}"; then as_fn_error $? "conditional \"USE_WAYLAND\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -16293,7 +17007,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by gst_vaapi $as_me 0.5.10, which was +This file was extended by gst_vaapi $as_me 0.6.0, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -16353,13 +17067,13 @@ Configuration commands: $config_commands -Report bugs to ." +Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -gst_vaapi config.status 0.5.10 +gst_vaapi config.status 0.6.0 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" @@ -16793,7 +17507,6 @@ "gst-libs/gst/base/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/base/Makefile" ;; "gst-libs/gst/codecparsers/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/codecparsers/Makefile" ;; "gst-libs/gst/vaapi/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/vaapi/Makefile" ;; - "gst-libs/gst/video/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/video/Makefile" ;; "gst/Makefile") CONFIG_FILES="$CONFIG_FILES gst/Makefile" ;; "gst/vaapi/Makefile") CONFIG_FILES="$CONFIG_FILES gst/vaapi/Makefile" ;; "patches/Makefile") CONFIG_FILES="$CONFIG_FILES patches/Makefile" ;; @@ -18176,6 +18889,9 @@ if test $USE_GLX -eq 1; then : VIDEO_OUTPUTS="$VIDEO_OUTPUTS glx" fi +if test $USE_EGL -eq 1; then : + VIDEO_OUTPUTS="$VIDEO_OUTPUTS egl" +fi if test $USE_WAYLAND -eq 1; then : VIDEO_OUTPUTS="$VIDEO_OUTPUTS wayland" fi diff -Nru gstreamer-vaapi-0.5.10/configure.ac gstreamer-vaapi-0.6.0/configure.ac --- gstreamer-vaapi-0.5.10/configure.ac 2015-02-03 08:00:40.000000000 +0000 +++ gstreamer-vaapi-0.6.0/configure.ac 2015-07-15 12:49:33.000000000 +0000 @@ -1,7 +1,7 @@ # gstreamer-vaapi package version number m4_define([gst_vaapi_major_version], [0]) -m4_define([gst_vaapi_minor_version], [5]) -m4_define([gst_vaapi_micro_version], [10]) +m4_define([gst_vaapi_minor_version], [6]) +m4_define([gst_vaapi_micro_version], [0]) m4_define([gst_vaapi_pre_version], [0]) m4_define([gst_vaapi_version], [gst_vaapi_major_version.gst_vaapi_minor_version.gst_vaapi_micro_version]) @@ -9,10 +9,11 @@ m4_append([gst_vaapi_version], gst_vaapi_pre_version, [.pre]) ]) +# Configure defaults +m4_define([default_glapi], [any]) + # gstreamer-vaapi library (libtool) version number -m4_define([gst_vaapi_lt_current], [6]) -m4_define([gst0_vaapi_lt_current_bias], [0]) -m4_define([gst1_vaapi_lt_current_bias], [2]) +m4_define([gst_vaapi_lt_current], [7]) m4_define([gst2_vaapi_lt_current_bias], [4]) m4_define([gst4_vaapi_lt_current_bias], [5]) m4_define([gst6_vaapi_lt_current_bias], [6]) @@ -20,16 +21,10 @@ m4_define([gst_vaapi_lt_age], [0]) # glib version number -m4_define([glib_version], [2.28]) +m4_define([glib_version], [2.32]) # gstreamer version number m4_define([gst_api_version], [autodetect]) -m4_define([gst0_version], [0.10.36]) -m4_define([gst0_plugins_base_version], [0.10.31]) -m4_define([gst0_plugins_bad_version], [0.10.22]) -m4_define([gst1_version], [1.0.0]) -m4_define([gst1_plugins_base_version], [1.0.0]) -m4_define([gst1_plugins_bad_version], [1.0.0]) m4_define([gst12_version], [1.1.90]) m4_define([gst12_plugins_base_version], [1.1.0]) m4_define([gst12_plugins_bad_version], [1.1.0]) @@ -41,7 +36,7 @@ m4_define([gst16_plugins_bad_version], [1.5.0]) # Wayland minimum version number -m4_define([wayland_api_version], [1.0.0]) +m4_define([wayland_api_version], [1.0.2]) # VA-API minimum version number m4_define([va_api_version], [0.30.4]) @@ -62,7 +57,7 @@ AC_PREREQ([2.66]) AC_INIT([gst_vaapi], [gst_vaapi_version], - [gwenole.beauchesne@intel.com], + [gwenole.beauchesne@intel.com, sreerenj.balachandran@intel.com], [gstreamer-vaapi]) AC_CONFIG_HEADERS([config.h]) @@ -147,11 +142,15 @@ [enable Wayland output @<:@default=yes@:>@]), [], [enable_wayland="yes"]) -AC_ARG_WITH([gstreamer-api], - AC_HELP_STRING([--with-gstreamer-api=VERSION], - [build against the specified GStreamer API version - @<:@default=gst_api_version@:>@]), - [GST_API_VERSION="$with_gstreamer_api"], [GST_API_VERSION=gst_api_version]) +AC_ARG_ENABLE([egl], + AS_HELP_STRING([--enable-egl], + [enable EGL output @<:@default=yes@:>@]), + [], [enable_egl="yes"]) + +AC_ARG_WITH([glapi], + AS_HELP_STRING([--with-glapi=APIs], + [build with the specified OpenGL APIs @<:@default=default_glapi@:>@]), + [GLAPI="$with_glapi"], [GLAPI=default_glapi]) dnl Check for basic libraries AC_CHECK_LIB(m, tan) @@ -178,45 +177,24 @@ dnl --------------------------------------------------------------------------- dnl -- GStreamer -- dnl --------------------------------------------------------------------------- - -dnl If GStreamer API version is to be autodetected, then always try -dnl with the latest version first AC_MSG_CHECKING([for GStreamer API version]) -if test "$GST_API_VERSION" = "autodetect"; then - gst_pkg_versions="1.0 0.10" -else - AS_VERSION_COMPARE([$GST_API_VERSION], [1.0], - [gst_pkg_versions="0.10"], [gst_pkg_versions="1.0"], - dnl GStreamer 1.2.x and 1.4.x APIs don't have their own namespace - [gst_pkg_versions="1.0"]) -fi -for gst_pkg_version in ${gst_pkg_versions}; do - if $PKG_CONFIG --exists "gstreamer-$gst_pkg_version"; then - gst_version=`$PKG_CONFIG --modversion "gstreamer-$gst_pkg_version"` - gst_major_version=`echo "$gst_version" | cut -d'.' -f1` - gst_minor_version=`echo "$gst_version" | cut -d'.' -f2` - GST_API_VERSION="${gst_major_version}.${gst_minor_version}" - GST_PKG_VERSION="$gst_pkg_version" - break - fi -done +if $PKG_CONFIG --exists "gstreamer-1.0"; then + gst_version=`$PKG_CONFIG --modversion "gstreamer-1.0"` + gst_major_version=`echo "$gst_version" | cut -d'.' -f1` + gst_minor_version=`echo "$gst_version" | cut -d'.' -f2` + GST_API_VERSION="${gst_major_version}.${gst_minor_version}" + GST_PKG_VERSION="1.0" +fi if test -z "$GST_PKG_VERSION"; then - AC_MSG_ERROR([version $GST_API_VERSION not found]) + AC_MSG_ERROR([gstreamer-$GST_PKG_VERSION was not found]) fi AC_MSG_RESULT([$GST_API_VERSION]) +AC_DEFINE_UNQUOTED([GST_API_VERSION_S], ["$GST_API_VERSION"], + [Defined to the string representation of GStreamer version]) + dnl Versions for GStreamer and plugins-base case $GST_API_VERSION in -0.10) - GST_VERSION_REQUIRED=gst0_version - GST_PLUGINS_BASE_VERSION_REQUIRED=gst0_plugins_base_version - GST_PLUGINS_BAD_VERSION_REQUIRED=gst0_plugins_bad_version - ;; -1.0) - GST_VERSION_REQUIRED=gst1_version - GST_PLUGINS_BASE_VERSION_REQUIRED=gst1_plugins_base_version - GST_PLUGINS_BAD_VERSION_REQUIRED=gst1_plugins_bad_version - ;; 1.2) GST_VERSION_REQUIRED=gst12_version GST_PLUGINS_BASE_VERSION_REQUIRED=gst12_plugins_base_version @@ -241,39 +219,22 @@ AC_SUBST(GST_PLUGINS_BASE_VERSION_REQUIRED) AC_SUBST(GST_PLUGINS_BAD_VERSION_REQUIRED) -USE_GST_API_0_10="no" -USE_GST_API_1_0p="no" USE_GST_API_1_2p="no" USE_GST_API_1_4p="no" -AS_VERSION_COMPARE([$GST_API_VERSION], [0.10], - [], [USE_GST_API_0_10="yes"], []) -AS_VERSION_COMPARE([$GST_API_VERSION], [1.0], - [], [USE_GST_API_1_0p="yes"], [USE_GST_API_1_0p="yes"]) AS_VERSION_COMPARE([$GST_API_VERSION], [1.2], [], [USE_GST_API_1_2p="yes"], [USE_GST_API_1_2p="yes"]) AS_VERSION_COMPARE([$GST_API_VERSION], [1.4], [], [USE_GST_API_1_4p="yes"], [USE_GST_API_1_4p="yes"]) -AM_CONDITIONAL([USE_GST_API_0_10], [test "$USE_GST_API_0_10" = "yes"]) -AM_CONDITIONAL([USE_GST_API_1_0p], [test "$USE_GST_API_1_0p" = "yes"]) AM_CONDITIONAL([USE_GST_API_1_2p], [test "$USE_GST_API_1_2p" = "yes"]) AM_CONDITIONAL([USE_GST_API_1_4p], [test "$USE_GST_API_1_4p" = "yes"]) -dnl GStreamer 1.2.x and 1.4.x APIs don't have their own namespace -GST_PKG_VERSION="$GST_API_VERSION" -if test "$USE_GST_API_1_2p" = "yes" || test "$USE_GST_API_1_4p" = "yes" ; then - GST_PKG_VERSION="1.0" -fi AC_SUBST([GST_PKG_VERSION]) -dnl Validate certain features -if test "$USE_GST_API_0_10" = "yes"; then - AC_MSG_WARN([support for GStreamer 0.10 is obsolete, and will be removed]) - if test "$enable_builtin_videoparsers" = "yes"; then - AC_MSG_WARN([disabled built-in videoparsers (unsupported)]) - enable_builtin_videoparsers="no" - fi -elif test "$GST_API_VERSION" = "1.0"; then - AC_MSG_WARN([support for GStreamer 1.0 is obsolete, and will be removed]) +AC_DEFINE_UNQUOTED([GST_PKG_VERSION_S], ["$GST_PKG_VERSION"], + [Defined to the string representation of GStreamer API version]) + +if test "$GST_API_VERSION" = "1.2"; then + AC_MSG_WARN([support for GStreamer 1.2 is deprecated, please upgrade]) fi dnl GStreamer Core @@ -282,25 +243,6 @@ PKG_CHECK_MODULES([GST_BASE], [gstreamer-base-$GST_PKG_VERSION >= $GST_VERSION_REQUIRED]) -AC_CACHE_CHECK([for GstBaseSink::query hook], ac_cv_have_gst_base_sink_query, [ - saved_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $GST_BASE_CFLAGS" - saved_LIBS="$LIBS" - LIBS="$LIBS $GST_BASE_LIBS" - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [[#include ]], - [[GstBaseSinkClass klass; klass.query = NULL;]])], - [ac_cv_have_gst_base_sink_query="yes"], - [ac_cv_have_gst_base_sink_query="no"] - ) - CPPFLAGS="$saved_CPPFLAGS" - LIBS="$saved_LIBS" -]) -if test "$ac_cv_have_gst_base_sink_query" != "yes"; then - AC_MSG_ERROR([GstBaseSink does not contain the 'query' vfunc]) -fi - dnl GStreamer -base plugins PKG_CHECK_MODULES([GST_PLUGINS_BASE], [gstreamer-plugins-base-$GST_PKG_VERSION >= $GST_PLUGINS_BASE_VERSION_REQUIRED]) @@ -317,55 +259,6 @@ PKG_CHECK_MODULES([GST_VIDEO], [gstreamer-video-$GST_PKG_VERSION >= $GST_PLUGINS_BASE_VERSION_REQUIRED]) -AC_CACHE_CHECK([for GstVideoOverlayComposition], - ac_cv_have_gst_video_overlay_composition, [ - saved_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $GST_CFLAGS $GST_VIDEO_CFLAGS" - saved_LIBS="$LIBS" - LIBS="$LIBS $GST_LIBS $GST_VIDEO_LIBS" - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [[#include ]], - [[GstVideoOverlayComposition *c; - c = gst_video_overlay_composition_new(0);]])], - [ac_cv_have_gst_video_overlay_composition="yes"], - [ac_cv_have_gst_video_overlay_composition="no"] - ) - CPPFLAGS="$saved_CPPFLAGS" - LIBS="$saved_LIBS" -]) -if test "$ac_cv_have_gst_video_overlay_composition" != "yes"; then - AC_MSG_ERROR([GstVideoOverlayComposition is not available]) -fi - -AC_CACHE_CHECK([... with advanced format flags], - ac_cv_have_gst_video_overlay_hwcaps, [ - saved_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $GST_CFLAGS $GST_VIDEO_CFLAGS" - saved_LIBS="$LIBS" - LIBS="$LIBS $GST_LIBS $GST_VIDEO_LIBS" - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [[#include ]], - [[GstVideoOverlayRectangle *rect; - const guint w = 64, h = 64; - guint flags = ( - GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA| - GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA); - rect = gst_video_overlay_rectangle_new_argb(NULL, w, h, w * 4, - 0, 0, w, h, flags); - gst_video_overlay_rectangle_set_global_alpha(rect, 0.5f);]])], - [ac_cv_have_gst_video_overlay_hwcaps="yes"], - [ac_cv_have_gst_video_overlay_hwcaps="no"] - ) - CPPFLAGS="$saved_CPPFLAGS" - LIBS="$saved_LIBS" -]) -if test "$ac_cv_have_gst_video_overlay_hwcaps" = "yes"; then - AC_DEFINE_UNQUOTED([HAVE_GST_VIDEO_OVERLAY_HWCAPS], 1, - [Defined to 1 if GstVideoOverlayComposition API supports HW hints.]) -fi - dnl GStreamer -bad plugins (deprecated in GStreamer v1.2) if test "$USE_GST_API_1_2p" != "yes" && test "$USE_GST_API_1_4p" != "yes"; then PKG_CHECK_MODULES([GST_BASEVIDEO], @@ -378,6 +271,7 @@ ac_cv_have_gst_h264_parser="no" ac_cv_have_gst_jpeg_parser="no" ac_cv_have_gst_vp8_parser="no" + ac_cv_have_gst_h265_parser="no" else PKG_CHECK_MODULES([GST_CODEC_PARSERS], [gstreamer-codecparsers-$GST_PKG_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED]) @@ -480,20 +374,83 @@ [test "$ac_cv_have_gst_vp8_parser" != "yes"]) AM_CONDITIONAL([USE_BUILTIN_LIBVPX], [test "$enable_builtin_libvpx" = "yes"]) +dnl ... H.265 parser, with the required extensions +AC_CACHE_CHECK([for H.265 parser], + ac_cv_have_gst_h265_parser, [ + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $GST_CFLAGS $GST_CODEC_PARSERS_CFLAGS" + saved_LIBS="$LIBS" + LIBS="$LIBS $GST_LIBS $GST_CODEC_PARSERS_LIBS" + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[GstH265SliceHdr slice_hdr; + GstH265VUIParams vui_params; + GstH265Profile profile = GST_H265_PROFILE_MAIN_STILL_PICTURE; + slice_hdr.n_emulation_prevention_bytes = 0; + vui_params.par_n = 0; + vui_params.par_d = 0;]])], + [ac_cv_have_gst_h265_parser="yes"], + [ac_cv_have_gst_h265_parser="no"] + ) + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" +]) +AM_CONDITIONAL([USE_LOCAL_CODEC_PARSERS_H265], + [test "$ac_cv_have_gst_h265_parser" != "yes"]) + dnl ... video parsers AM_CONDITIONAL([USE_LOCAL_VIDEO_PARSERS], [test "$enable_builtin_videoparsers" = "yes"]) +dnl ... opengl helper libraries +HAVE_GSTGL=0 +if test "$enable_glx" = "yes" -o "$enable_egl" = "yes"; then + PKG_CHECK_MODULES([GST_GL], + [gstreamer-gl-$GST_PKG_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED], + [HAVE_GSTGL=1], [HAVE_GSTGL=0]) +fi + +if test $HAVE_GSTGL -eq 1; then + AC_CACHE_CHECK([for GStreamer OpenGL helper libraries], + [ac_cv_have_gst_gl_helpers], [ + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $GST_GL_CFLAGS $GST_VIDEO_CFLAGS" + saved_LIBS="$LIBS" + LIBS="$saved_LIBS" + AC_CHECK_HEADERS([gst/gl/gl.h], [:], [HAVE_GSTGL=0]) + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[GstGLContext gl_context;]])], + [ac_cv_have_gst_gl_helpers="yes"], + [ac_cv_have_gst_gl_helpers="no" HAVE_GSTGL=0] + ) + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" + ]) +fi +AM_CONDITIONAL([USE_GST_GL_HELPERS], [test $HAVE_GSTGL -eq 1]) + +AC_DEFINE_UNQUOTED([USE_GST_GL_HELPERS], [$HAVE_GSTGL], + [Defined to 1 if GStreamer OpenGL helper libraries are available]) + +if test "$enable_egl" = "yes" -a $HAVE_GSTGL -ne 1; then + AC_MSG_WARN([GStreamer/GL helper libraries not found, disabling EGL support]) + enable_egl="no" +fi + case $GST_API_VERSION in -0.10) lt_bias=gst0_vaapi_lt_current_bias;; -1.0) lt_bias=gst1_vaapi_lt_current_bias;; 1.2) lt_bias=gst2_vaapi_lt_current_bias;; -1.4) lt_bias=gst4_vaapi_lt_current_bias;; +1.4) lt_bias=gst4_vaapi_lt_current_bias;; 1.[[5-6]]) lt_bias=gst6_vaapi_lt_current_bias;; esac GST_VAAPI_MAJOR_VERSION=`expr gst_vaapi_lt_current - "$lt_bias"` AC_SUBST(GST_VAAPI_MAJOR_VERSION) +AC_DEFINE_UNQUOTED([GST_VAAPI_MAJOR_VERSION_S], ["$GST_VAAPI_MAJOR_VERSION"], + [Defined to the string representation of gstreamer-vaapi major version]) + dnl GST_VAAPI_LT_LDFLAGS: GST_VAAPI_LT_CURRENT="$GST_VAAPI_MAJOR_VERSION" GST_VAAPI_LT_REV=gst_vaapi_lt_revision @@ -516,15 +473,10 @@ AC_SUBST(GST_PLUGIN_LDFLAGS) dnl Check for the GStreamer plugins directory -AC_ARG_VAR([GST_PLUGIN_PATH], [installation path for gstreamer-vaapi plugin elements for GStreamer 0.10]) AC_ARG_VAR([GST_PLUGIN_PATH_1_0], [installation path for gstreamer-vaapi plugin elements for GStreamer 1.0]) AC_MSG_CHECKING([for GStreamer plugins directory]) -case $GST_PKG_VERSION in -0.10) _gst_plugin_path="$GST_PLUGIN_PATH";; -1.0) _gst_plugin_path="$GST_PLUGIN_PATH_1_0";; -esac -if test -d "$_gst_plugin_path"; then - GST_PLUGINS_DIR="$_gst_plugin_path" +if test -d "$GST_PLUGIN_PATH_1_0"; then + GST_PLUGINS_DIR="$GST_PLUGIN_PATH_1_0" else GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-$GST_PKG_VERSION --variable pluginsdir` if test -z "$GST_PLUGINS_DIR"; then @@ -614,9 +566,15 @@ if test "$enable_glx" = "yes"; then enable_opengl="yes" fi +if test "$enable_egl" = "yes"; then + enable_opengl="yes" +fi +GLES_VERSION_MASK=0 HAVE_GL=0 if test "$enable_opengl" = "yes"; then +case ",$GLAPI," in +(*,any,*|*,gl,*) HAVE_GL=1 PKG_CHECK_MODULES([GL], [gl], [:], [HAVE_GL=0]) saved_CPPFLAGS="$CPPFLAGS" @@ -627,7 +585,52 @@ #endif ]) CPPFLAGS="$saved_CPPFLAGS" + ;; +esac +fi +GLES_VERSION_MASK=`expr $GLES_VERSION_MASK "+" $HAVE_GL "*" 1` + +dnl OpenGL|ESv2 +HAVE_GLESv2=0 +if test "$enable_opengl" = "yes"; then +case ",$GLAPI," in +(*,any,*|*,gles2,*) + HAVE_GLESv2=1 + PKG_CHECK_MODULES([GLES2], [glesv2], [:], [HAVE_GLESv2=0]) + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $GLES2_CFLAGS" + AC_CHECK_HEADERS([GLES2/gl2.h GLES2/gl2ext.h], [:], + [HAVE_GLESv2=0], [ +#ifdef HAVE_GLES2_GL2_H +# include +#endif + ]) + CPPFLAGS="$saved_CPPFLAGS" + ;; +esac +fi +GLES_VERSION_MASK=`expr $GLES_VERSION_MASK "+" $HAVE_GLESv2 "*" 4` + +dnl OpenGL|ESv3 +HAVE_GLESv3=0 +if test "$enable_opengl" = "yes"; then +case ",$GLAPI," in +(*,any,*|*,gles3,*) + HAVE_GLESv3=1 + PKG_CHECK_MODULES([GLES3], [glesv2], [:], [HAVE_GLESv3=0]) + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $GLES3_CFLAGS" + AC_CHECK_HEADERS([GLES3/gl3.h GLES3/gl3ext.h GLES2/gl2ext.h], [:], + [HAVE_GLESv3=0], [ +#ifdef HAVE_GLES3_GL3_H +# include +#endif + ]) + CPPFLAGS="$saved_CPPFLAGS" + ;; +esac fi +GLES_VERSION_MASK=`expr $GLES_VERSION_MASK "+" $HAVE_GLESv3 "*" 8` dnl ... GLX USE_GLX=0 @@ -647,6 +650,19 @@ LIBS="$saved_LIBS" fi +dnl ... EGL +USE_EGL=0 +if test "$enable_egl" = "yes" -a $GLES_VERSION_MASK -ne 0; then + USE_EGL=1 + PKG_CHECK_MODULES([EGL], [egl], [:], [USE_EGL=0]) + saved_CPPFLAGS="$CPPFLAGS" + saved_LIBS="$LIBS" + AC_CHECK_HEADERS([EGL/egl.h], [:], [USE_EGL=0]) + AC_CHECK_LIB([EGL], [eglGetDisplay], [:], [USE_EGL=0]) + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" +fi + dnl Check for Wayland USE_WAYLAND=0 if test "$enable_wayland" = "yes"; then @@ -765,6 +781,38 @@ LIBS="$saved_LIBS" ]) +dnl Check for va_dec_hevc.h header +saved_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS" +AC_CHECK_HEADERS([va/va_dec_hevc.h], [], [], [#include ]) +CPPFLAGS="$saved_CPPFLAGS" + +dnl Check for HEVC decoding API (0.38+) +USE_HEVC_DECODER=0 +AC_CACHE_CHECK([for HEVC decoding API], + ac_cv_have_hevc_decoding_api, [ + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS" + saved_LIBS="$LIBS" + LIBS="$LIBS $LIBVA_LIBS" + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + #ifdef HAVE_VA_VA_DEC_HEVC_H + #include + #endif + ]], + [[VAPictureParameterBufferHEVC pic_param; + VASliceParameterBufferHEVC slice_param; + VAIQMatrixBufferHEVC iq_matrix; + slice_param.slice_data_offset = 0; + slice_param.slice_data_flag = 0;]])], + [ac_cv_have_hevc_decoding_api="yes" USE_HEVC_DECODER=1], + [ac_cv_have_hevc_decoding_api="no"] + ) + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" +]) dnl Check for vpp (video post-processing) support USE_VA_VPP=0 @@ -793,6 +841,9 @@ dnl Check for encoding support USE_ENCODERS=0 +USE_JPEG_ENCODER=0 +USE_VP8_ENCODER=0 +USE_H265_ENCODER=0 if test "$enable_encoders" = "yes"; then PKG_CHECK_MODULES([LIBVA], [libva >= va_api_enc_version], [HAVE_VA_ENC=1], [HAVE_VA_ENC=0]) @@ -804,6 +855,92 @@ [USE_ENCODERS=1], [HAVE_VA_ENC=0 USE_ENCODERS=0], [#include ]) + + dnl Check for JPEG Encoding API (0.37.0+) + AC_CHECK_HEADERS([va/va_enc_jpeg.h], + [USE_JPEG_ENCODER=1], [], + [#include + ]) + AC_CACHE_CHECK([for JPEG encoding API], + ac_cv_have_jpeg_encoding_api, [ + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS" + saved_LIBS="$LIBS" + LIBS="$LIBS $LIBVA_LIBS" + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + #ifdef HAVE_VA_VA_ENC_JPEG_H + #include + #endif + ]], + [[VAEncPictureParameterBufferJPEG pic_param; + VAEncSliceParameterBufferJPEG slice_param; + VAQMatrixBufferJPEG q_matrix;]])], + [ac_cv_have_jpeg_encoding_api="yes" USE_JPEG_ENCODER=1], + [ac_cv_have_jpeg_encoding_api="no"] + ) + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" + ]) + + dnl Check for VP8 Encoding API + AC_CHECK_HEADERS([va/va_enc_vp8.h], + [USE_VP8_ENCODER=1], [], + [#include + ]) + AC_CACHE_CHECK([for VP8 encoding API], + ac_cv_have_vp8_encoding_api, [ + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS" + saved_LIBS="$LIBS" + LIBS="$LIBS $LIBVA_LIBS" + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + #ifdef HAVE_VA_VA_ENC_VP8_H + #include + #endif + ]], + [[VAEncSequenceParameterBufferVP8 seq_param; + VAEncPictureParameterBufferVP8 pic_param; + VAQMatrixBufferVP8 q_matrix;]])], + [ac_cv_have_vp8_encoding_api="yes" USE_VP8_ENCODER=1], + [ac_cv_have_vp8_encoding_api="no" USE_VP8_ENCODER=0] + ) + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" + ]) + CPPFLAGS="$saved_CPPFLAGS" + + dnl Check for H265/HEVC Encoding API + AC_CHECK_HEADERS([va/va_enc_hevc.h], + [USE_H265_ENCODER=1], [], + [#include + ]) + AC_CACHE_CHECK([for HEVC encoding API], + ac_cv_have_hevc_encoding_api, [ + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $LIBVA_CFLAGS" + saved_LIBS="$LIBS" + LIBS="$LIBS $LIBVA_LIBS" + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + #ifdef HAVE_VA_VA_ENC_HEVC_H + #include + #endif + ]], + [[VAEncSequenceParameterBufferHEVC seq_param; + VAEncPictureParameterBufferHEVC pic_param; + VAEncSliceParameterBufferHEVC; + VAQMatrixBufferHEVC q_matrix;]])], + [ac_cv_have_hevc_encoding_api="yes" USE_H265_ENCODER=1], + [ac_cv_have_hevc_encoding_api="no" USE_H265_ENCODER=0] + ) + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" + ]) CPPFLAGS="$saved_CPPFLAGS" fi fi @@ -818,7 +955,7 @@ dnl -- Generate files and summary -- dnl --------------------------------------------------------------------------- -case ":$USE_X11:$USE_GLX:$USE_WAYLAND:$USE_DRM:" in +case ":$USE_X11:$USE_GLX:$USE_EGL:$USE_WAYLAND:$USE_DRM:" in *:1:*) ;; *) @@ -830,6 +967,18 @@ [Defined to 1 if video encoders are used]) AM_CONDITIONAL([USE_ENCODERS], [test $USE_ENCODERS -eq 1]) +AC_DEFINE_UNQUOTED(USE_JPEG_ENCODER, $USE_JPEG_ENCODER, + [Defined to 1 if JPEG encoder is used]) +AM_CONDITIONAL(USE_JPEG_ENCODER, test $USE_JPEG_ENCODER -eq 1) + +AC_DEFINE_UNQUOTED(USE_VP8_ENCODER, $USE_VP8_ENCODER, + [Defined to 1 if VP8 encoder is used]) +AM_CONDITIONAL(USE_VP8_ENCODER, test $USE_VP8_ENCODER -eq 1) + +AC_DEFINE_UNQUOTED(USE_H265_ENCODER, $USE_H265_ENCODER, + [Defined to 1 if H265 encoder is used]) +AM_CONDITIONAL(USE_H265_ENCODER, test $USE_H265_ENCODER -eq 1) + AC_DEFINE_UNQUOTED(USE_VA_VPP, $USE_VA_VPP, [Defined to 1 if video post-processing is used]) AM_CONDITIONAL(USE_VA_VPP, test $USE_VA_VPP -eq 1) @@ -842,6 +991,10 @@ [Defined to 1 if VP8 decoder is used]) AM_CONDITIONAL(USE_VP8_DECODER, test $USE_VP8_DECODER -eq 1) +AC_DEFINE_UNQUOTED(USE_HEVC_DECODER, $USE_HEVC_DECODER, + [Defined to 1 if HEVC decoder is used]) +AM_CONDITIONAL(USE_HEVC_DECODER, test $USE_HEVC_DECODER -eq 1) + AC_DEFINE_UNQUOTED(USE_DRM, $USE_DRM, [Defined to 1 if DRM is enabled]) AM_CONDITIONAL(USE_DRM, test $USE_DRM -eq 1) @@ -854,6 +1007,13 @@ [Defined to 1 if GLX is enabled]) AM_CONDITIONAL(USE_GLX, test $USE_GLX -eq 1) +AC_DEFINE_UNQUOTED([USE_EGL], [$USE_EGL], + [Defined to 1 if EGL is enabled]) +AM_CONDITIONAL([USE_EGL], [test $USE_EGL -eq 1]) + +AC_DEFINE_UNQUOTED([USE_GLES_VERSION_MASK], [$GLES_VERSION_MASK], + [Defined to the set of enabled OpenGL ES APIs]) + AC_DEFINE_UNQUOTED(USE_WAYLAND, $USE_WAYLAND, [Defined to 1 if WAYLAND is enabled]) AM_CONDITIONAL(USE_WAYLAND, test $USE_WAYLAND -eq 1) @@ -895,7 +1055,6 @@ gst-libs/gst/base/Makefile gst-libs/gst/codecparsers/Makefile gst-libs/gst/vaapi/Makefile - gst-libs/gst/video/Makefile gst/Makefile gst/vaapi/Makefile patches/Makefile @@ -924,6 +1083,7 @@ AS_IF([test $USE_DRM -eq 1], [VIDEO_OUTPUTS="$VIDEO_OUTPUTS drm"]) AS_IF([test $USE_X11 -eq 1], [VIDEO_OUTPUTS="$VIDEO_OUTPUTS x11"]) AS_IF([test $USE_GLX -eq 1], [VIDEO_OUTPUTS="$VIDEO_OUTPUTS glx"]) +AS_IF([test $USE_EGL -eq 1], [VIDEO_OUTPUTS="$VIDEO_OUTPUTS egl"]) AS_IF([test $USE_WAYLAND -eq 1], [VIDEO_OUTPUTS="$VIDEO_OUTPUTS wayland"]) echo diff -Nru gstreamer-vaapi-0.5.10/debian/changelog gstreamer-vaapi-0.6.0/debian/changelog --- gstreamer-vaapi-0.5.10/debian/changelog 2015-04-30 00:52:37.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian/changelog 2015-07-16 07:38:58.000000000 +0000 @@ -1,3 +1,13 @@ +gstreamer-vaapi (0.6.0-1) unstable; urgency=medium + + * New upstream release. + - Update build-dep on gst 1.x to (>= 1.3). + * Update debian/copyright. + * Update homepage. + * Update Vcs-Browser to point to cgit interface (instead of gitweb). + + -- Vincent Cheng Thu, 16 Jul 2015 00:16:32 -0700 + gstreamer-vaapi (0.5.10-1) unstable; urgency=medium * New upstream release. diff -Nru gstreamer-vaapi-0.5.10/debian/control gstreamer-vaapi-0.6.0/debian/control --- gstreamer-vaapi-0.5.10/debian/control 2015-04-30 00:52:25.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian/control 2015-07-16 07:28:35.000000000 +0000 @@ -12,9 +12,9 @@ libdrm-dev, libgl1-mesa-dev, libglib2.0-dev, - libgstreamer-plugins-bad1.0-dev (>= 1.0.0), - libgstreamer-plugins-base1.0-dev (>= 1.0.0), - libgstreamer1.0-dev (>= 1.0.0), + libgstreamer-plugins-bad1.0-dev (>= 1.3.0), + libgstreamer-plugins-base1.0-dev (>= 1.3.0), + libgstreamer1.0-dev (>= 1.2.90), libudev-dev, libva-dev (>= 1.0.9), libwayland-dev, @@ -23,9 +23,9 @@ mesa-common-dev, yasm Standards-Version: 3.9.6 -Homepage: http://gitorious.org/vaapi/gstreamer-vaapi +Homepage: https://github.com/01org/gstreamer-vaapi/ Vcs-Git: git://anonscm.debian.org/pkg-gstreamer/gstreamer-vaapi.git -Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-gstreamer/gstreamer-vaapi.git +Vcs-Browser: http://anonscm.debian.org/cgit/pkg-gstreamer/gstreamer-vaapi.git Package: gstreamer1.0-vaapi Architecture: any diff -Nru gstreamer-vaapi-0.5.10/debian/copyright gstreamer-vaapi-0.6.0/debian/copyright --- gstreamer-vaapi-0.5.10/debian/copyright 2014-08-04 23:40:34.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian/copyright 2015-07-16 07:38:37.000000000 +0000 @@ -21,14 +21,9 @@ 2007 Jan Schmidt License: LGPL-2+ -Files: ext/videoutils/gst-libs/gst/video/* -Copyright: 2008 David Schleef - 2011 Mark Nauwelaerts . - 2011 Nokia Corporation. - 2012 Collabora Ltd. - 1999 Erik Walthinsen - 2002 Ronald Bultje -License: LGPL-2+ +Files: ext/libvpx/* +Copyright: 2010 The WebM Project authors +License: BSD-3-clause Files: debian/* Copyright: 2012 Timo Aaltonen @@ -88,3 +83,33 @@ . On Debian GNU/Linux systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + . + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + . + * Neither the name of Google, nor the WebM Project, nor the names + of its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/changelog gstreamer-vaapi-0.6.0/debian.upstream/changelog --- gstreamer-vaapi-0.5.10/debian.upstream/changelog 2015-02-03 08:39:57.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/changelog 2015-07-15 12:50:38.000000000 +0000 @@ -1,5 +1,5 @@ -gstreamer1.4-vaapi (0.5.10-1) unstable; urgency=low +gstreamer1.4-vaapi (0.6.0-1) unstable; urgency=low * Autogenerated package, see NEWS file for ChangeLog. - -- Gwenole Beauchesne Tue, 03 Feb 2015 10:39:55 +0200 + -- Gwenole Beauchesne Wed, 15 Jul 2015 15:50:34 +0300 diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/control gstreamer-vaapi-0.6.0/debian.upstream/control --- gstreamer-vaapi-0.5.10/debian.upstream/control 2015-02-03 08:39:57.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/control 2015-07-15 12:50:38.000000000 +0000 @@ -4,14 +4,14 @@ Maintainer: Gwenole Beauchesne Build-Depends: debhelper (>= 5), cdbs, - libglib2.0-dev (>= 2.28), + libglib2.0-dev (>= 2.32), libgstreamer1.0-dev (>= 1.2.90), libgstreamer-plugins-base1.0-dev (>= 1.3.0), libgstreamer-plugins-bad1.0-dev (>= 1.3.0), libdrm-dev, libudev-dev, libx11-dev, libxrandr-dev, libgl-dev, - libwayland-dev (>= 1.0.0), + libwayland-dev (>= 1.0.2), libva-dev (>= 1.0.3) Build-Depends-Indep: gtk-doc-tools (>= 1.9) Standards-Version: 3.7.2 @@ -26,8 +26,6 @@ - `vaapidecode': decode bitstreams using VA-API - `vaapiencode_mpeg2': encode bitstreams using VA-API (MPEG-2 codec) - `vaapiencode_h264': encode bitstreams using VA-API (H.264 codec) -# - `vaapiupload': convert from YUV pixels to VA surfaces -# - `vaapidownload': convert from VA surfaces to YUV pixels - `vaapipostproc': postprocess VA surfaces, e.g. for deinterlacing - `vaapisink': a VA-API based video sink @@ -47,7 +45,7 @@ . This package contains the debug files. -Package: libgstvaapi1 +Package: libgstvaapi2 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} @@ -56,7 +54,7 @@ . This package contains common libraries for the "vaapi" set. -Package: libgstvaapi-drm-1 +Package: libgstvaapi-drm-2 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} @@ -65,7 +63,7 @@ . This package contains headless libraries for the "vaapi" set. -Package: libgstvaapi-x11-1 +Package: libgstvaapi-x11-2 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} @@ -74,7 +72,7 @@ . This package contains x11 libraries for the "vaapi" set. -Package: libgstvaapi-glx-1 +Package: libgstvaapi-glx-2 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} @@ -83,7 +81,7 @@ . This package contains glx libraries for the "vaapi" set. -Package: libgstvaapi-wayland-1 +Package: libgstvaapi-wayland-2 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} @@ -96,11 +94,11 @@ Architecture: any Section: libdevel Depends: ${shlibs:Depends}, ${misc:Depends}, - libgstvaapi-drm-1 (= ${Source-Version}), - libgstvaapi-x11-1 (= ${Source-Version}), - libgstvaapi-glx-1 (= ${Source-Version}), - libgstvaapi-wayland-1 (= ${Source-Version}), - libgstvaapi1 (= ${Source-Version}) + libgstvaapi-drm-2 (= ${Source-Version}), + libgstvaapi-x11-2 (= ${Source-Version}), + libgstvaapi-glx-2 (= ${Source-Version}), + libgstvaapi-wayland-2 (= ${Source-Version}), + libgstvaapi2 (= ${Source-Version}) Description: GStreamer development files for libraries from the "vaapi" set GStreamer/VA-API development files. . diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/control.in gstreamer-vaapi-0.6.0/debian.upstream/control.in --- gstreamer-vaapi-0.5.10/debian.upstream/control.in 2015-02-03 07:56:36.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/control.in 2015-07-15 12:47:43.000000000 +0000 @@ -26,8 +26,6 @@ - `vaapidecode': decode bitstreams using VA-API @USE_ENCODERS_TRUE@ - `vaapiencode_mpeg2': encode bitstreams using VA-API (MPEG-2 codec) @USE_ENCODERS_TRUE@ - `vaapiencode_h264': encode bitstreams using VA-API (H.264 codec) -@USE_GST_API_0_10_TRUE@ - `vaapiupload': convert from YUV pixels to VA surfaces -@USE_GST_API_0_10_TRUE@ - `vaapidownload': convert from VA surfaces to YUV pixels - `vaapipostproc': postprocess VA surfaces, e.g. for deinterlacing - `vaapisink': a VA-API based video sink diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/gstreamer1.4-vaapi.install gstreamer-vaapi-0.6.0/debian.upstream/gstreamer1.4-vaapi.install --- gstreamer-vaapi-0.5.10/debian.upstream/gstreamer1.4-vaapi.install 2015-02-03 08:39:58.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/gstreamer1.4-vaapi.install 2015-07-15 12:50:38.000000000 +0000 @@ -1 +1 @@ -debian/tmp/home/sreerenj/opt/gstreamer-1.4/lib/gstreamer-1.0/libgstvaapi*.so +debian/tmp/home/sreerenj/opt/gstreamer/1.4/lib/gstreamer-1.0/libgstvaapi*.so diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi1.install gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi1.install --- gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi1.install 2015-02-03 08:39:58.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi1.install 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -debian/tmp/usr/lib/libgstcodecparsers_vpx.so.* -debian/tmp/usr/lib/libgstvaapi-1.4.so.* diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi2.install gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi2.install --- gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi2.install 1970-01-01 00:00:00.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi2.install 2015-07-15 12:50:38.000000000 +0000 @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libgstcodecparsers_vpx.so.* +debian/tmp/usr/lib/libgstvaapi-1.4.so.* diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-drm-1.install gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-drm-1.install --- gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-drm-1.install 2015-02-03 08:39:58.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-drm-1.install 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -debian/tmp/usr/lib/libgstvaapi-drm-1.4.so.* diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-drm-2.install gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-drm-2.install --- gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-drm-2.install 1970-01-01 00:00:00.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-drm-2.install 2015-07-15 12:50:38.000000000 +0000 @@ -0,0 +1 @@ +debian/tmp/usr/lib/libgstvaapi-drm-1.4.so.* diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-glx-1.install gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-glx-1.install --- gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-glx-1.install 2015-02-03 08:39:58.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-glx-1.install 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -debian/tmp/usr/lib/libgstvaapi-glx-1.4.so.* diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-glx-2.install gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-glx-2.install --- gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-glx-2.install 1970-01-01 00:00:00.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-glx-2.install 2015-07-15 12:50:38.000000000 +0000 @@ -0,0 +1 @@ +debian/tmp/usr/lib/libgstvaapi-glx-1.4.so.* diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-wayland-1.install gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-wayland-1.install --- gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-wayland-1.install 2015-02-03 08:39:58.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-wayland-1.install 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -debian/tmp/usr/lib/libgstvaapi-wayland-1.4.so.* diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-wayland-2.install gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-wayland-2.install --- gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-wayland-2.install 1970-01-01 00:00:00.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-wayland-2.install 2015-07-15 12:50:38.000000000 +0000 @@ -0,0 +1 @@ +debian/tmp/usr/lib/libgstvaapi-wayland-1.4.so.* diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-x11-1.install gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-x11-1.install --- gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-x11-1.install 2015-02-03 08:39:58.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-x11-1.install 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -debian/tmp/usr/lib/libgstvaapi-x11-1.4.so.* diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-x11-2.install gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-x11-2.install --- gstreamer-vaapi-0.5.10/debian.upstream/libgstvaapi-x11-2.install 1970-01-01 00:00:00.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/libgstvaapi-x11-2.install 2015-07-15 12:50:38.000000000 +0000 @@ -0,0 +1 @@ +debian/tmp/usr/lib/libgstvaapi-x11-1.4.so.* diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/Makefile.am gstreamer-vaapi-0.6.0/debian.upstream/Makefile.am --- gstreamer-vaapi-0.5.10/debian.upstream/Makefile.am 2015-02-03 07:56:36.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/Makefile.am 2015-07-15 12:47:43.000000000 +0000 @@ -37,6 +37,6 @@ EXTRA_DIST = $(DEBIANFILES) dist_noinst_DATA = $(DEBIANGENFILES) +DISTCLEANFILES = $(DEBIANGENFILES) -# Extra clean files so that maintainer-clean removes *everything* -MAINTAINERCLEANFILES = Makefile.in $(DEBIANGENFILES) +-include $(top_srcdir)/git.mk diff -Nru gstreamer-vaapi-0.5.10/debian.upstream/Makefile.in gstreamer-vaapi-0.6.0/debian.upstream/Makefile.in --- gstreamer-vaapi-0.5.10/debian.upstream/Makefile.in 2015-02-03 08:39:54.000000000 +0000 +++ gstreamer-vaapi-0.6.0/debian.upstream/Makefile.in 2015-07-15 12:50:34.000000000 +0000 @@ -148,10 +148,16 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ +EGL_CFLAGS = @EGL_CFLAGS@ +EGL_LIBS = @EGL_LIBS@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GIT = @GIT@ +GLES2_CFLAGS = @GLES2_CFLAGS@ +GLES2_LIBS = @GLES2_LIBS@ +GLES3_CFLAGS = @GLES3_CFLAGS@ +GLES3_LIBS = @GLES3_LIBS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GLIB_VERSION_REQUIRED = @GLIB_VERSION_REQUIRED@ @@ -169,6 +175,8 @@ GST_CFLAGS = @GST_CFLAGS@ GST_CODEC_PARSERS_CFLAGS = @GST_CODEC_PARSERS_CFLAGS@ GST_CODEC_PARSERS_LIBS = @GST_CODEC_PARSERS_LIBS@ +GST_GL_CFLAGS = @GST_GL_CFLAGS@ +GST_GL_LIBS = @GST_GL_LIBS@ GST_INTERFACES_CFLAGS = @GST_INTERFACES_CFLAGS@ GST_INTERFACES_LIBS = @GST_INTERFACES_LIBS@ GST_LIBS = @GST_LIBS@ @@ -178,7 +186,6 @@ GST_PLUGINS_BASE_LIBS = @GST_PLUGINS_BASE_LIBS@ GST_PLUGINS_BASE_VERSION_REQUIRED = @GST_PLUGINS_BASE_VERSION_REQUIRED@ GST_PLUGIN_LDFLAGS = @GST_PLUGIN_LDFLAGS@ -GST_PLUGIN_PATH = @GST_PLUGIN_PATH@ GST_PLUGIN_PATH_1_0 = @GST_PLUGIN_PATH_1_0@ GST_VAAPI_LT_LDFLAGS = @GST_VAAPI_LT_LDFLAGS@ GST_VAAPI_LT_VERSION = @GST_VAAPI_LT_VERSION@ @@ -353,9 +360,7 @@ EXTRA_DIST = $(DEBIANFILES) dist_noinst_DATA = $(DEBIANGENFILES) - -# Extra clean files so that maintainer-clean removes *everything* -MAINTAINERCLEANFILES = Makefile.in $(DEBIANGENFILES) +DISTCLEANFILES = $(DEBIANGENFILES) all: all-am .SUFFIXES: @@ -466,11 +471,11 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am @@ -552,6 +557,8 @@ tags-am uninstall uninstall-am +-include $(top_srcdir)/git.mk + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gstreamer-vaapi-0.5.10/docs/Makefile.am gstreamer-vaapi-0.6.0/docs/Makefile.am --- gstreamer-vaapi-0.5.10/docs/Makefile.am 2015-02-03 07:56:36.000000000 +0000 +++ gstreamer-vaapi-0.6.0/docs/Makefile.am 2015-07-15 12:47:43.000000000 +0000 @@ -6,5 +6,4 @@ DIST_SUBDIRS = reference -# Extra clean files so that maintainer-clean removes *everything* -MAINTAINERCLEANFILES = Makefile.in +-include $(top_srcdir)/git.mk diff -Nru gstreamer-vaapi-0.5.10/docs/Makefile.in gstreamer-vaapi-0.6.0/docs/Makefile.in --- gstreamer-vaapi-0.5.10/docs/Makefile.in 2015-02-03 08:39:54.000000000 +0000 +++ gstreamer-vaapi-0.6.0/docs/Makefile.in 2015-07-15 12:50:34.000000000 +0000 @@ -197,10 +197,16 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ +EGL_CFLAGS = @EGL_CFLAGS@ +EGL_LIBS = @EGL_LIBS@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GIT = @GIT@ +GLES2_CFLAGS = @GLES2_CFLAGS@ +GLES2_LIBS = @GLES2_LIBS@ +GLES3_CFLAGS = @GLES3_CFLAGS@ +GLES3_LIBS = @GLES3_LIBS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GLIB_VERSION_REQUIRED = @GLIB_VERSION_REQUIRED@ @@ -218,6 +224,8 @@ GST_CFLAGS = @GST_CFLAGS@ GST_CODEC_PARSERS_CFLAGS = @GST_CODEC_PARSERS_CFLAGS@ GST_CODEC_PARSERS_LIBS = @GST_CODEC_PARSERS_LIBS@ +GST_GL_CFLAGS = @GST_GL_CFLAGS@ +GST_GL_LIBS = @GST_GL_LIBS@ GST_INTERFACES_CFLAGS = @GST_INTERFACES_CFLAGS@ GST_INTERFACES_LIBS = @GST_INTERFACES_LIBS@ GST_LIBS = @GST_LIBS@ @@ -227,7 +235,6 @@ GST_PLUGINS_BASE_LIBS = @GST_PLUGINS_BASE_LIBS@ GST_PLUGINS_BASE_VERSION_REQUIRED = @GST_PLUGINS_BASE_VERSION_REQUIRED@ GST_PLUGIN_LDFLAGS = @GST_PLUGIN_LDFLAGS@ -GST_PLUGIN_PATH = @GST_PLUGIN_PATH@ GST_PLUGIN_PATH_1_0 = @GST_PLUGIN_PATH_1_0@ GST_VAAPI_LT_LDFLAGS = @GST_VAAPI_LT_LDFLAGS@ GST_VAAPI_LT_VERSION = @GST_VAAPI_LT_VERSION@ @@ -366,9 +373,6 @@ top_srcdir = @top_srcdir@ SUBDIRS = $(am__append_1) DIST_SUBDIRS = reference - -# Extra clean files so that maintainer-clean removes *everything* -MAINTAINERCLEANFILES = Makefile.in all: all-recursive .SUFFIXES: @@ -598,7 +602,6 @@ maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am @@ -681,6 +684,8 @@ ps ps-am tags tags-am uninstall uninstall-am +-include $(top_srcdir)/git.mk + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gstreamer-vaapi-0.5.10/docs/reference/libs/html/annotation-glossary.html gstreamer-vaapi-0.6.0/docs/reference/libs/html/annotation-glossary.html --- gstreamer-vaapi-0.5.10/docs/reference/libs/html/annotation-glossary.html 1970-01-01 00:00:00.000000000 +0000 +++ gstreamer-vaapi-0.6.0/docs/reference/libs/html/annotation-glossary.html 2015-07-15 12:52:27.000000000 +0000 @@ -0,0 +1,32 @@ + + + + +GStreamer VA-API Plugins 1.4 Library Reference Manual: Annotation Glossary + + + + + + + + + + + + + + + +
+

+Annotation Glossary

+

C

+
closure
+

This parameter is a 'user_data', for callbacks; many bindings can pass NULL here.

+
+ + + \ No newline at end of file diff -Nru gstreamer-vaapi-0.5.10/docs/reference/libs/html/api-index-full.html gstreamer-vaapi-0.6.0/docs/reference/libs/html/api-index-full.html --- gstreamer-vaapi-0.5.10/docs/reference/libs/html/api-index-full.html 2015-02-03 08:45:00.000000000 +0000 +++ gstreamer-vaapi-0.6.0/docs/reference/libs/html/api-index-full.html 2015-07-15 12:52:27.000000000 +0000 @@ -7,6 +7,7 @@ + @@ -16,7 +17,7 @@ Home Prev - +Next

@@ -31,6 +32,22 @@
+GstVaapiConfigInfoEncoder, struct in GstVaapiContext +
+
+
+GstVaapiContext, struct in GstVaapiContext +
+
+
+GstVaapiContextInfo, struct in GstVaapiContext +
+
+
+GstVaapiContextUsage, enum in GstVaapiContext +
+
+
GstVaapiDecoder, struct in GstVaapiDecoder
@@ -39,6 +56,10 @@
+GstVaapiDecoderH265, struct in GstVaapiDecoderH265 +
+
+
GstVaapiDecoderJpeg, struct in GstVaapiDecoderJpeg
@@ -55,18 +76,42 @@
+GstVaapiDecoderUnit, struct in GstVaapiDecoderUnit +
+
+
+GstVaapiDecoderUnitFlags, enum in GstVaapiDecoderUnit +
+
+
GstVaapiDecoderVC1, struct in GstVaapiDecoderVC1
+GstVaapiDecoderVp8, struct in GstVaapiDecoderVp8 +
+
+
GstVaapiDisplay, struct in GstVaapiDisplay
+GstVaapiDisplayEGL, struct in GstVaapiDisplayEGL +
+
+
GstVaapiDisplayGLX, struct in GstVaapiDisplayGLX
+GstVaapiDisplayInfo, struct in GstVaapiDisplay +
+
+
+GstVaapiDisplayType, enum in GstVaapiDisplay +
+
+
GstVaapiDisplayX11, struct in GstVaapiDisplayX11
@@ -75,10 +120,18 @@
+GstVaapiEnumSubset, struct in GstVaapiValue +
+
+
GstVaapiFilter, struct in GstVaapiFilter
+GstVaapiFilterOp, enum in GstVaapiFilter +
+
+
GstVaapiID, typedef in Basic data structures
@@ -115,6 +168,10 @@
+GstVaapiStreamAlignH265, enum in GstVaapiDecoderH265 +
+
+
GstVaapiSubpicture, struct in GstVaapiSubpicture
@@ -155,6 +212,26 @@
+gst_vaapi_context_get_id, function in GstVaapiContext +
+
+
+gst_vaapi_context_get_surface_count, function in GstVaapiContext +
+
+
+gst_vaapi_context_get_surface_proxy, function in GstVaapiContext +
+
+
+gst_vaapi_context_new, function in GstVaapiContext +
+
+
+gst_vaapi_context_reset, function in GstVaapiContext +
+
+
gst_vaapi_decoder_decode, function in GstVaapiDecoder
@@ -187,6 +264,14 @@
+gst_vaapi_decoder_h265_new, function in GstVaapiDecoderH265 +
+
+
+gst_vaapi_decoder_h265_set_alignment, function in GstVaapiDecoderH265 +
+
+
gst_vaapi_decoder_jpeg_new, function in GstVaapiDecoderJpeg
@@ -207,26 +292,110 @@
+gst_vaapi_decoder_unit_clear, function in GstVaapiDecoderUnit +
+
+
+gst_vaapi_decoder_unit_init, function in GstVaapiDecoderUnit +
+
+
+gst_vaapi_decoder_unit_new, function in GstVaapiDecoderUnit +
+
+
+gst_vaapi_decoder_unit_set_parsed_info, function in GstVaapiDecoderUnit +
+
+
gst_vaapi_decoder_vc1_new, function in GstVaapiDecoderVC1
+gst_vaapi_decoder_vp8_new, function in GstVaapiDecoderVp8 +
+
+
+gst_vaapi_display_drm_get_device, function in GstVaapiDisplayDRM +
+
+
+gst_vaapi_display_drm_get_device_path, function in GstVaapiDisplayDRM +
+
+
+gst_vaapi_display_drm_new, function in GstVaapiDisplayDRM +
+
+
+gst_vaapi_display_drm_new_with_device, function in GstVaapiDisplayDRM +
+
+
+gst_vaapi_display_egl_get_gl_context, function in GstVaapiDisplayEGL +
+
+
+gst_vaapi_display_egl_get_gl_display, function in GstVaapiDisplayEGL +
+
+
+gst_vaapi_display_egl_new, function in GstVaapiDisplayEGL +
+
+
+gst_vaapi_display_egl_new_with_native_display, function in GstVaapiDisplayEGL +
+
+
+gst_vaapi_display_egl_set_gl_context, function in GstVaapiDisplayEGL +
+
+
gst_vaapi_display_flush, function in GstVaapiDisplay
+gst_vaapi_display_get_class_type, function in GstVaapiDisplay +
+
+
+gst_vaapi_display_get_decode_profiles, function in GstVaapiDisplay +
+
+
gst_vaapi_display_get_display, function in GstVaapiDisplay
+gst_vaapi_display_get_display_name, function in GstVaapiDisplay +
+
+
+gst_vaapi_display_get_display_type, function in GstVaapiDisplay +
+
+
+gst_vaapi_display_get_encode_profiles, function in GstVaapiDisplay +
+
+
gst_vaapi_display_get_height, function in GstVaapiDisplay
+gst_vaapi_display_get_image_formats, function in GstVaapiDisplay +
+
+
gst_vaapi_display_get_pixel_aspect_ratio, function in GstVaapiDisplay
+gst_vaapi_display_get_property, function in GstVaapiDisplay +
+
+
gst_vaapi_display_get_render_mode, function in GstVaapiDisplay
@@ -239,6 +408,14 @@
+gst_vaapi_display_get_subpicture_formats, function in GstVaapiDisplay +
+
+
+gst_vaapi_display_get_vendor_string, function in GstVaapiDisplay +
+
+
gst_vaapi_display_get_width, function in GstVaapiDisplay
@@ -263,6 +440,10 @@
+gst_vaapi_display_has_opengl, function in GstVaapiDisplay +
+
+
gst_vaapi_display_has_property, function in GstVaapiDisplay
@@ -271,6 +452,10 @@
+gst_vaapi_display_has_video_processing, function in GstVaapiDisplay +
+
+
gst_vaapi_display_lock, function in GstVaapiDisplay
@@ -279,6 +464,18 @@
+gst_vaapi_display_ref, function in GstVaapiDisplay +
+
+
+gst_vaapi_display_replace, function in GstVaapiDisplay +
+
+
+gst_vaapi_display_set_property, function in GstVaapiDisplay +
+
+
gst_vaapi_display_set_render_mode, function in GstVaapiDisplay
@@ -295,6 +492,22 @@
+gst_vaapi_display_unref, function in GstVaapiDisplay +
+
+
+gst_vaapi_display_wayland_get_display, function in GstVaapiDisplayWayland +
+
+
+gst_vaapi_display_wayland_new, function in GstVaapiDisplayWayland +
+
+
+gst_vaapi_display_wayland_new_with_display, function in GstVaapiDisplayWayland +
+
+
gst_vaapi_display_x11_get_display, function in GstVaapiDisplayX11
@@ -511,6 +724,30 @@
+gst_vaapi_parser_frame_append_unit, function in GstVaapiParserFrame +
+
+
+gst_vaapi_parser_frame_free, function in GstVaapiParserFrame +
+
+
+gst_vaapi_parser_frame_new, function in GstVaapiParserFrame +
+
+
+gst_vaapi_parser_frame_ref, macro in GstVaapiParserFrame +
+
+
+gst_vaapi_parser_frame_replace, macro in GstVaapiParserFrame +
+
+
+gst_vaapi_parser_frame_unref, macro in GstVaapiParserFrame +
+
+
gst_vaapi_pixmap_get_format, function in GstVaapiPixmap
@@ -563,6 +800,10 @@
+GST_VAAPI_POPCOUNT32, macro in GstVaapiValue +
+
+
gst_vaapi_profile, function in GstVaapiProfile
@@ -723,6 +964,14 @@
+gst_vaapi_texture_egl_new, function in GstVaapiTextureEGL +
+
+
+gst_vaapi_texture_egl_new_wrapped, function in GstVaapiTextureEGL +
+
+
gst_vaapi_texture_get_format, function in GstVaapiTexture
@@ -735,6 +984,10 @@
+gst_vaapi_texture_get_orientation_flags, function in GstVaapiTexture +
+
+
gst_vaapi_texture_get_size, function in GstVaapiTexture
@@ -747,18 +1000,70 @@
+gst_vaapi_texture_glx_new, function in GstVaapiTextureGLX +
+
+
+gst_vaapi_texture_glx_new_wrapped, function in GstVaapiTextureGLX +
+
+
gst_vaapi_texture_new, function in GstVaapiTexture
+gst_vaapi_texture_new_wrapped, function in GstVaapiTexture +
+
+
gst_vaapi_texture_put_surface, function in GstVaapiTexture
+gst_vaapi_texture_ref, function in GstVaapiTexture +
+
+
+gst_vaapi_texture_replace, function in GstVaapiTexture +
+
+
+gst_vaapi_texture_set_orientation_flags, function in GstVaapiTexture +
+
+
+gst_vaapi_texture_unref, function in GstVaapiTexture +
+
+
+GST_VAAPI_TYPE_POINT, macro in GstVaapiValue +
+
+
+GST_VAAPI_TYPE_RATE_CONTROL, macro in GstVaapiValue +
+
+
+GST_VAAPI_TYPE_RECTANGLE, macro in GstVaapiValue +
+
+
+GST_VAAPI_TYPE_RENDER_MODE, macro in GstVaapiValue +
+
+
+GST_VAAPI_TYPE_ROTATION, macro in GstVaapiValue +
+
+
gst_vaapi_video_format_from_va_format, function in GstVideoFormat
+gst_vaapi_video_format_from_va_fourcc, function in GstVideoFormat +
+
+
gst_vaapi_video_format_get_chroma_type, function in GstVideoFormat
@@ -823,6 +1128,14 @@
+gst_vaapi_window_drm_new, function in GstVaapiWindowDRM +
+
+
+gst_vaapi_window_egl_new, function in GstVaapiWindowEGL +
+
+
gst_vaapi_window_get_display, function in GstVaapiWindow
@@ -903,6 +1216,10 @@
+gst_vaapi_window_wayland_new, function in GstVaapiWindowWayland +
+
+
gst_vaapi_window_x11_get_xid, function in GstVaapiWindowX11
diff -Nru gstreamer-vaapi-0.5.10/docs/reference/libs/html/ch01.html gstreamer-vaapi-0.6.0/docs/reference/libs/html/ch01.html --- gstreamer-vaapi-0.5.10/docs/reference/libs/html/ch01.html 2015-02-03 08:45:00.000000000 +0000 +++ gstreamer-vaapi-0.6.0/docs/reference/libs/html/ch01.html 2015-07-15 12:52:27.000000000 +0000 @@ -21,7 +21,7 @@

-gst-plugins-vaapi Library

+gst-plugins-vaapi Library

GstVideoFormat — Video format helpers for VA-API @@ -39,13 +39,31 @@ GstVaapiDisplayGLX — VA/GLX display abstraction
+GstVaapiDisplayEGL +
+
+GstVaapiDisplayDRM — VA/DRM display abstraction +
+
+GstVaapiDisplayWayland — VA/Wayland display abstraction +
+
GstVaapiWindow — VA window abstraction
GstVaapiWindowX11 — VA/X11 window abstraction
-GstVaapiWindowGLX — VA/GLX window abstraction +GstVaapiWindowGLX +
+
+GstVaapiWindowEGL — VA/EGL window abstraction +
+
+GstVaapiWindowDRM — VA/DRM dummy window abstraction +
+
+GstVaapiWindowWayland — VA/Wayland window abstraction
GstVaapiPixmap — Pixmap abstraction @@ -69,6 +87,12 @@ GstVaapiTexture — VA/GLX texture abstraction
+GstVaapiTextureEGL — VA/EGL texture abstraction +
+
+GstVaapiTextureGLX — VA/GLX texture abstraction +
+
GstVaapiProfile — VA profile abstraction
@@ -99,11 +123,29 @@ GstVaapiDecoderVC1 — VC-1 decoder
+GstVaapiDecoderVp8 — VP8 decoder +
+
+GstVaapiDecoderH265 — H.265 decoder +
+
+GstVaapiDecoderUnit — Decoder unit +
+
GstVaapiSurfaceProxy — VA surface proxy
GstVaapiFilter
+
+GstVaapiValue — GValue implementations specific to VA-API +
+
+GstVaapiParserFrame — VA decoder frame +
+
+GstVaapiContext — VA context abstraction +
+

+ To ease the creation of plugins, a Gstreamer-oriented library was created, + which wraps VA-API. +