VP9: Allow building vp9 codecparser internally

This commit is contained in:
Sreerenj Balachandran 2015-11-06 14:24:08 +02:00
parent ba33154dc4
commit 279f494bc0
3 changed files with 30 additions and 0 deletions

View file

@ -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, [

View file

@ -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)

View file

@ -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