[submodule "ext/codecparsers"]
path = ext/codecparsers
url = git://gitorious.org/vaapi/gstreamer-codecparsers.git
+[submodule "ext/videoutils"]
+ path = ext/videoutils
+ url = git://gitorious.org/vaapi/gstreamer-videoutils.git
echo "*** No git found ***"
exit 1
else
- if test ! -f ext/codecparsers/autogen.sh; then
+ submodule_init="no"
+ for ext_module in codecparsers videoutils; do
+ if test ! -f ext/${ext_module}/autogen.sh; then
+ submodule_init="yes"
+ fi
+ done
+ if test "$submodule_init" = "yes"; then
$GIT submodule init
fi
$GIT submodule update
CPPFLAGS="$saved_CPPFLAGS"
LIBS="$saved_LIBS"
])
-if test "$ac_cv_have_gst_video_decoder" != "yes"; then
- AC_MSG_ERROR([GstVideoDecoder is not available])
-fi
+AM_CONDITIONAL([USE_LOCAL_GST_VIDEO_DECODER],
+ [test "$ac_cv_have_gst_video_decoder" != "yes"])
dnl GStreamer -bad plugins
PKG_CHECK_MODULES([GST_BASEVIDEO],
gst-libs/gst/Makefile
gst-libs/gst/codecparsers/Makefile
gst-libs/gst/vaapi/Makefile
+ gst-libs/gst/video/Makefile
gst/Makefile
gst/vaapi/Makefile
pkgconfig/Makefile
EXTRA_DIST += $(codecparsers_source_h:%.h=$(codecparsers_srcdir)/%.h)
+videoutils_srcdir = \
+ $(top_srcdir)/ext/videoutils/gst-libs/gst/video
+
+videoutils_source_c = \
+ gstvideodecoder.c \
+ gstvideoutils.c \
+ video.c \
+ $(NULL)
+
+EXTRA_DIST += $(videoutils_source_c:%.c=$(videoutils_srcdir)/%.c)
+
+videoutils_source_h = \
+ gstvideodecoder.h \
+ gstvideoutils.h \
+ video.h \
+ $(NULL)
+
+EXTRA_DIST += $(videoutils_source_h:%.h=$(videoutils_srcdir)/%.h)
+
# Extra clean files so that maintainer-clean removes *everything*
MAINTAINERCLEANFILES = Makefile.in
--- /dev/null
+Subproject commit 251df2b0958e6265cf5752fdfc82c69a2869eca7
-SUBDIRS = codecparsers vaapi
+SUBDIRS = codecparsers video vaapi
# Extra clean files so that maintainer-clean removes *everything*
MAINTAINERCLEANFILES = Makefile.in $(gen_headers)
$(GST_VIDEO_LIBS) \
$(GST_CODEC_PARSERS_LIBS) \
$(LIBVA_LIBS) \
+ $(top_builddir)/gst-libs/gst/video/libgstvaapi-videoutils.la \
$(top_builddir)/gst-libs/gst/codecparsers/libgstvaapi-codecparsers.la
libgstvaapi_source_c = \
--- /dev/null
+noinst_LTLIBRARIES = \
+ libgstvaapi-videoutils.la \
+ $(NULL)
+
+local_videoutils_srcdir = \
+ $(top_srcdir)/ext/videoutils/gst-libs/gst/video
+
+libgstvaapi_videoutils_cflags = \
+ -DGST_USE_UNSTABLE_API \
+ -I$(top_srcdir)/gst-libs \
+ $(GST_BASE_CFLAGS) \
+ $(GST_CFLAGS) \
+ $(NULL)
+
+libgstvaapi_videoutils_libs = \
+ $(GST_BASE_LIBS) \
+ $(GST_LIBS) \
+ $(NULL)
+
+gen_source_c =
+gen_source_h =
+
+if USE_LOCAL_GST_VIDEO_DECODER
+gen_source_c += gstvideodecoder.c gstvideoutils.c video.c
+gen_source_h += gstvideodecoder.h gstvideoutils.h video.h
+endif
+
+GENFILES = \
+ $(gen_source_c) \
+ $(gen_source_h) \
+ $(NULL)
+
+nodist_EXTRA_libgstvaapi_videoutils_la_SOURCES = dummy.c
+
+nodist_libgstvaapi_videoutils_la_SOURCES = \
+ $(gen_source_c) \
+ $(NULL)
+
+libgstvaapi_videoutils_la_CFLAGS = \
+ $(libgstvaapi_videoutils_cflags) \
+ $(NULL)
+
+libgstvaapi_videoutils_la_LIBADD = \
+ $(libgstvaapi_videoutils_libs) \
+ $(NULL)
+
+libgstvaapi_videoutils_la_LDFLAGS = \
+ $(GST_ALL_LDFLAGS) \
+ $(NULL)
+
+all-local: .timestamp.symlinks
+
+.timestamp.symlinks: $(GENFILES)
+ touch $@
+
+$(gen_source_c): %.c: $(local_videoutils_srcdir)/%.c %.h
+ $(LN_S) -f $< $@
+$(gen_source_h): %.h: $(local_videoutils_srcdir)/%.h
+ $(LN_S) -f $< $@
+
+DISTCLEANFILES = $(GENFILES) .timestamp.symlinks
+
+# Extra clean files so that maintainer-clean removes *everything*
+MAINTAINERCLEANFILES = Makefile.in
$(GST_VIDEO_LIBS) \
$(GST_INTERFACES_LIBS) \
$(GST_BASEVIDEO_LIBS) \
- $(GST_PLUGINS_BASE_LIBS)
+ $(GST_PLUGINS_BASE_LIBS) \
+ $(top_builddir)/gst-libs/gst/video/libgstvaapi-videoutils.la
libgstvaapi_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstvaapi_la_LIBTOOLFLAGS = --tag=disable-static