summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorPetri Hintukainen <phintuka@users.sourceforge.net>2013-10-29 13:46:47 +0200
committerPetri Hintukainen <phintuka@users.sourceforge.net>2013-10-29 13:46:47 +0200
commitb9f8239b38a9100e2f30b8bb54967c436dbb073a (patch)
treed36a160c93d9a71d22587fc66d93d022e918a1ed /m4
parent8eaa8996a96c736c1f1119d8ccd402b400437eba (diff)
downloadxine-lib-b9f8239b38a9100e2f30b8bb54967c436dbb073a.tar.gz
xine-lib-b9f8239b38a9100e2f30b8bb54967c436dbb073a.tar.bz2
Added VP8/VP9 decoder using libvpx
Diffstat (limited to 'm4')
-rw-r--r--m4/decoders.m414
-rw-r--r--m4/summary.m41
2 files changed, 15 insertions, 0 deletions
diff --git a/m4/decoders.m4 b/m4/decoders.m4
index fbea178c3..46be43e33 100644
--- a/m4/decoders.m4
+++ b/m4/decoders.m4
@@ -534,6 +534,20 @@ AC_DEFUN([XINE_DECODER_PLUGINS], [
fi
AM_CONDITIONAL([ENABLE_WAVPACK], [test x"$have_wavpack" = x"yes"])
+ dnl libvpx decoder plugin
+ AC_ARG_ENABLE([vpx],
+ [AS_HELP_STRING([--enable-vpx], [Enable libvpx VP8/VP9 decoder support (default: enabled)])],
+ [test x"$enableval" != x"no" && enable_vpx="yes"])
+ if test x"$enable_vpx" != x"no"; then
+ PKG_CHECK_MODULES([VPX], [vpx] , [have_vpx=yes], [have_vpx=no])
+ if test x"$enable_vpx" = x"yes" && test x"$have_vpx" != x"yes"; then
+ AC_MSG_ERROR([VP8/VP9 support requested, but libvpx not found])
+ fi
+ AC_CHECK_LIB([vpx],[vpx_codec_vp9_dx], [
+ AC_DEFINE([HAVE_VPX_VP9_DECODER], 1, [Define this if you have VP9 support in libvpx])
+ ], [], [${VPX_LIBS}])
+ fi
+ AM_CONDITIONAL([ENABLE_VPX], [test x"$have_vpx" = x"yes"])
dnl Only enable building dmx image if either gdk_pixbuf or ImageMagick are enabled
AM_CONDITIONAL([BUILD_DMX_IMAGE], [test x"$have_imagemagick" = x"yes" -o x"$have_gdkpixbuf" = x"yes"])
diff --git a/m4/summary.m4 b/m4/summary.m4
index 8e084e635..449b430e3 100644
--- a/m4/summary.m4
+++ b/m4/summary.m4
@@ -83,6 +83,7 @@ AC_DEFUN([XINE_LIB_SUMMARY], [
test x"$have_theora" = x"yes" && echo " - theora"
test x"$have_w32dll" = x"yes" && echo " - w32dll"
test x"$have_vdpau" = x"yes" && echo " - vdpau"
+ test x"$have_vpx" = x"yes" && echo " - libvpx (VP8/VP9)"
if test x"$with_external_ffmpeg" != x"no"; then
echo " - ffmpeg (external library)"
else