mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
VP9: Allow building vp9 codecparser internally
This commit is contained in:
parent
ba33154dc4
commit
279f494bc0
3 changed files with 30 additions and 0 deletions
21
configure.ac
21
configure.ac
|
@ -291,6 +291,7 @@ if test "$enable_builtin_codecparsers" = "yes"; then
|
|||
ac_cv_have_gst_jpeg_parser="no"
|
||||
ac_cv_have_gst_vp8_parser="no"
|
||||
ac_cv_have_gst_h265_parser="no"
|
||||
ac_cv_have_gst_vp9_parser="no"
|
||||
else
|
||||
PKG_CHECK_MODULES([GST_CODEC_PARSERS],
|
||||
[gstreamer-codecparsers-$GST_PKG_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED])
|
||||
|
@ -397,6 +398,26 @@ AM_CONDITIONAL([USE_LOCAL_CODEC_PARSERS_VP8],
|
|||
[test "$ac_cv_have_gst_vp8_parser" != "yes"])
|
||||
AM_CONDITIONAL([USE_BUILTIN_LIBVPX], [test "$enable_builtin_libvpx" = "yes"])
|
||||
|
||||
dnl ... VP9 parser, with required extensions
|
||||
AC_CACHE_CHECK([for VP9 parser],
|
||||
ac_cv_have_gst_vp9_parser, [
|
||||
saved_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $GST_CFLAGS $GST_CODEC_PARSERS_CFLAGS"
|
||||
saved_LIBS="$LIBS"
|
||||
LIBS="$LIBS $GST_LIBS $GST_CODEC_PARSERS_LIBS"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[[#include <gst/codecparsers/gstvp9parser.h>]],
|
||||
[[GstVp9FrameHdr frame_hdr;]])],
|
||||
[ac_cv_have_gst_vp9_parser="yes"],
|
||||
[ac_cv_have_gst_vp9_parser="no"]
|
||||
)
|
||||
CPPFLAGS="$saved_CPPFLAGS"
|
||||
LIBS="$saved_LIBS"
|
||||
])
|
||||
AM_CONDITIONAL([USE_LOCAL_CODEC_PARSERS_VP9],
|
||||
[test "$ac_cv_have_gst_vp9_parser" != "yes"])
|
||||
|
||||
dnl ... H.265 parser, with the required extensions
|
||||
AC_CACHE_CHECK([for H.265 parser],
|
||||
ac_cv_have_gst_h265_parser, [
|
||||
|
|
|
@ -18,6 +18,8 @@ codecparsers_source_c = \
|
|||
parserutils.c \
|
||||
vp8utils.c \
|
||||
gsth265parser.c \
|
||||
gstvp9parser.c \
|
||||
vp9utils.c \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST += $(codecparsers_source_c:%.c=$(codecparsers_srcdir)/%.c)
|
||||
|
@ -35,6 +37,8 @@ codecparsers_source_h = \
|
|||
parserutils.h \
|
||||
vp8utils.h \
|
||||
gsth265parser.h \
|
||||
gstvp9parser.h \
|
||||
vp9utils.h \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST += $(codecparsers_source_h:%.h=$(codecparsers_srcdir)/%.h)
|
||||
|
|
|
@ -62,6 +62,11 @@ gen_source_h += dboolhuff.h
|
|||
endif
|
||||
endif
|
||||
|
||||
if USE_LOCAL_CODEC_PARSERS_VP9
|
||||
gen_source_c += gstvp9parser.c vp9utils.c
|
||||
gen_source_h += gstvp9parser.h vp9utils.h
|
||||
endif
|
||||
|
||||
if USE_LOCAL_CODEC_PARSERS_H265
|
||||
gen_source_c += gsth265parser.c
|
||||
gen_source_h += gsth265parser.h
|
||||
|
|
Loading…
Reference in a new issue