Add videoutils submodule for GstVideoDecoder APIs.

This commit is contained in:
Gwenole Beauchesne 2012-12-21 14:29:01 +01:00
parent 4344a1053d
commit 9e643a6147
9 changed files with 101 additions and 6 deletions

3
.gitmodules vendored
View file

@ -1,3 +1,6 @@
[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

View file

@ -20,7 +20,13 @@ if test -z "$GIT"; then
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

View file

@ -234,9 +234,8 @@ AC_CACHE_CHECK([for GstVideoDecoder],
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],
@ -597,6 +596,7 @@ debian.upstream/libgstvaapi-x11.install.in
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

View file

@ -25,5 +25,24 @@ codecparsers_source_h = \
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

1
ext/videoutils Submodule

@ -0,0 +1 @@
Subproject commit 251df2b0958e6265cf5752fdfc82c69a2869eca7

View file

@ -1,4 +1,4 @@
SUBDIRS = codecparsers vaapi
SUBDIRS = codecparsers video vaapi
# Extra clean files so that maintainer-clean removes *everything*
MAINTAINERCLEANFILES = Makefile.in $(gen_headers)

View file

@ -38,6 +38,7 @@ libgstvaapi_libs = \
$(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 = \

View file

@ -0,0 +1,64 @@
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

View file

@ -68,7 +68,8 @@ libgstvaapi_la_LIBADD = \
$(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