[vlc-devel] [PATCH]v2.1 [WIP] codec: configure.ac & Makefile.am for GStreamer based decoder module

Vikram Fugro vikram.fugro at gmail.com
Mon Apr 28 18:10:20 CEST 2014


GStreamer is a cross-platform multimedia processing
framework for audio/video postprocess/capture/
encode/decode/render.

This module is intended for Audio/Video decoding using
the available GStreamer plugins present in the system.
Currently this module supports only video decoding
and can be extended to audio decoding as well.
ZeroCopy is currently not supported and must be added.

Codecs currently supported are h264, mpeg4, vp8, mpeg2,
flashvideo, wmv1/2/3, vc1.

Signed-off-by: Vikram Fugro <vikram.fugro at gmail.com>
---
 configure.ac              |   20 ++++++++++++++++++++
 modules/codec/Makefile.am |    7 +++++++
 2 files changed, 27 insertions(+)

diff --git a/configure.ac b/configure.ac
index 2f28385..a9a1626 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2256,6 +2256,26 @@ PKG_CHECK_EXISTS([libavutil], [
 AC_MSG_RESULT([${avfork}])
 
 dnl
+dnl gstreamer stuff
+dnl
+AC_ARG_ENABLE(gst-decode,
+  [  --enable-gst-decode     GStreamer based decoding support (currently supports only video decoding) (default auto)])
+
+have_gst_decode="no"
+AS_IF([test "${enable_gst_decode}" != "no"], [
+  PKG_CHECK_MODULES([GST_APP], [gstreamer-app-1.0], [
+    PKG_CHECK_MODULES([GST_VIDEO], [gstreamer-video-1.0], [
+      have_gst_decode="yes"
+    ], [
+      AC_MSG_WARN([${GST_VIDEO_PKG_ERRORS}. GStreamer Decode module will not be built.])
+    ])
+  ], [
+    AC_MSG_WARN([${GST_APP_PKG_ERRORS}. GStreamer modules will not be built.])
+  ])
+])
+AM_CONDITIONAL([HAVE_GST_DECODE], [test "${have_gst_decode}" = "yes"])
+
+dnl
 dnl  avcodec decoder/encoder plugin
 dnl
 AC_ARG_ENABLE(avcodec,
diff --git a/modules/codec/Makefile.am b/modules/codec/Makefile.am
index 14500c6..d6027fb 100644
--- a/modules/codec/Makefile.am
+++ b/modules/codec/Makefile.am
@@ -470,3 +470,10 @@ libquicktime_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
 libquicktime_plugin_la_LIBADD = $(LIBM)
 EXTRA_LTLIBRARIES += libquicktime_plugin.la
 codec_LTLIBRARIES += $(LTLIBquicktime)
+
+libgstdecode_plugin_la_SOURCES = codec/gstdecode.c
+libgstdecode_plugin_la_CFLAGS = $(AM_CFLAGS) $(GST_VIDEO_CFLAGS) $(GST_APP_CFLAGS)
+libgstdecode_plugin_la_LIBADD = $(GST_VIDEO_LIBS) $(GST_APP_LIBS)
+if HAVE_GST_DECODE
+codec_LTLIBRARIES += libgstdecode_plugin.la
+endif
-- 
1.7.9.5




More information about the vlc-devel mailing list