mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 21:42:25 +00:00
Add videoutils submodule for GstVideoDecoder APIs.
This commit is contained in:
parent
4344a1053d
commit
9e643a6147
9 changed files with 101 additions and 6 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +1,6 @@
|
||||||
[submodule "ext/codecparsers"]
|
[submodule "ext/codecparsers"]
|
||||||
path = ext/codecparsers
|
path = ext/codecparsers
|
||||||
url = git://gitorious.org/vaapi/gstreamer-codecparsers.git
|
url = git://gitorious.org/vaapi/gstreamer-codecparsers.git
|
||||||
|
[submodule "ext/videoutils"]
|
||||||
|
path = ext/videoutils
|
||||||
|
url = git://gitorious.org/vaapi/gstreamer-videoutils.git
|
||||||
|
|
|
@ -20,7 +20,13 @@ if test -z "$GIT"; then
|
||||||
echo "*** No git found ***"
|
echo "*** No git found ***"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
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
|
$GIT submodule init
|
||||||
fi
|
fi
|
||||||
$GIT submodule update
|
$GIT submodule update
|
||||||
|
|
|
@ -234,9 +234,8 @@ AC_CACHE_CHECK([for GstVideoDecoder],
|
||||||
CPPFLAGS="$saved_CPPFLAGS"
|
CPPFLAGS="$saved_CPPFLAGS"
|
||||||
LIBS="$saved_LIBS"
|
LIBS="$saved_LIBS"
|
||||||
])
|
])
|
||||||
if test "$ac_cv_have_gst_video_decoder" != "yes"; then
|
AM_CONDITIONAL([USE_LOCAL_GST_VIDEO_DECODER],
|
||||||
AC_MSG_ERROR([GstVideoDecoder is not available])
|
[test "$ac_cv_have_gst_video_decoder" != "yes"])
|
||||||
fi
|
|
||||||
|
|
||||||
dnl GStreamer -bad plugins
|
dnl GStreamer -bad plugins
|
||||||
PKG_CHECK_MODULES([GST_BASEVIDEO],
|
PKG_CHECK_MODULES([GST_BASEVIDEO],
|
||||||
|
@ -597,6 +596,7 @@ debian.upstream/libgstvaapi-x11.install.in
|
||||||
gst-libs/gst/Makefile
|
gst-libs/gst/Makefile
|
||||||
gst-libs/gst/codecparsers/Makefile
|
gst-libs/gst/codecparsers/Makefile
|
||||||
gst-libs/gst/vaapi/Makefile
|
gst-libs/gst/vaapi/Makefile
|
||||||
|
gst-libs/gst/video/Makefile
|
||||||
gst/Makefile
|
gst/Makefile
|
||||||
gst/vaapi/Makefile
|
gst/vaapi/Makefile
|
||||||
pkgconfig/Makefile
|
pkgconfig/Makefile
|
||||||
|
|
|
@ -25,5 +25,24 @@ codecparsers_source_h = \
|
||||||
|
|
||||||
EXTRA_DIST += $(codecparsers_source_h:%.h=$(codecparsers_srcdir)/%.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*
|
# Extra clean files so that maintainer-clean removes *everything*
|
||||||
MAINTAINERCLEANFILES = Makefile.in
|
MAINTAINERCLEANFILES = Makefile.in
|
||||||
|
|
1
ext/videoutils
Submodule
1
ext/videoutils
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 251df2b0958e6265cf5752fdfc82c69a2869eca7
|
|
@ -1,4 +1,4 @@
|
||||||
SUBDIRS = codecparsers vaapi
|
SUBDIRS = codecparsers video vaapi
|
||||||
|
|
||||||
# Extra clean files so that maintainer-clean removes *everything*
|
# Extra clean files so that maintainer-clean removes *everything*
|
||||||
MAINTAINERCLEANFILES = Makefile.in $(gen_headers)
|
MAINTAINERCLEANFILES = Makefile.in $(gen_headers)
|
||||||
|
|
|
@ -38,6 +38,7 @@ libgstvaapi_libs = \
|
||||||
$(GST_VIDEO_LIBS) \
|
$(GST_VIDEO_LIBS) \
|
||||||
$(GST_CODEC_PARSERS_LIBS) \
|
$(GST_CODEC_PARSERS_LIBS) \
|
||||||
$(LIBVA_LIBS) \
|
$(LIBVA_LIBS) \
|
||||||
|
$(top_builddir)/gst-libs/gst/video/libgstvaapi-videoutils.la \
|
||||||
$(top_builddir)/gst-libs/gst/codecparsers/libgstvaapi-codecparsers.la
|
$(top_builddir)/gst-libs/gst/codecparsers/libgstvaapi-codecparsers.la
|
||||||
|
|
||||||
libgstvaapi_source_c = \
|
libgstvaapi_source_c = \
|
||||||
|
|
64
gst-libs/gst/video/Makefile.am
Normal file
64
gst-libs/gst/video/Makefile.am
Normal 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
|
|
@ -68,7 +68,8 @@ libgstvaapi_la_LIBADD = \
|
||||||
$(GST_VIDEO_LIBS) \
|
$(GST_VIDEO_LIBS) \
|
||||||
$(GST_INTERFACES_LIBS) \
|
$(GST_INTERFACES_LIBS) \
|
||||||
$(GST_BASEVIDEO_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_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||||
libgstvaapi_la_LIBTOOLFLAGS = --tag=disable-static
|
libgstvaapi_la_LIBTOOLFLAGS = --tag=disable-static
|
||||||
|
|
Loading…
Reference in a new issue