AC_ARG_VAR([YASM], [Path to yasm program, if any])
AC_PATH_PROG([YASM], [yasm])
-if test -z "$YASM"; then
+if test -z "$YASM" -a "$enable_builtin_libvpx" = "yes"; then
AC_MSG_ERROR([yasm is needed to build libvpx sources])
fi
[enable built-in codecparsers @<:@default=yes@:>@]),
[], [enable_builtin_codecparsers="yes"])
+AC_ARG_ENABLE(builtin_libvpx,
+ AS_HELP_STRING([--enable-builtin-libvpx],
+ [enable built-in libvpx @<:@default=yes@:>@]),
+ [], [enable_builtin_libvpx="yes"])
+
AC_ARG_ENABLE([encoders],
AS_HELP_STRING([--enable-encoders],
[enable video encoders @<:@default=yes@:>@]),
[test "$ac_cv_have_gst_jpeg_parser" != "yes"])
dnl ... VP8 parser, not upstream yet
+if test "$enable_builtin_libvpx" = "yes"; then
+ ac_cv_have_gst_vp8_parser="no"
+fi
AC_CACHE_CHECK([for VP8 parser],
ac_cv_have_gst_vp8_parser, [
saved_CPPFLAGS="$CPPFLAGS"
])
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"])
case $GST_API_VERSION in
0.10) lt_bias=gst0_vaapi_lt_current_bias;;
if USE_LOCAL_CODEC_PARSERS_VP8
gen_source_c += gstvp8parser.c
gen_source_h += gstvp8parser.h gstvp8rangedecoder.h vp8utils.h
-#gen_source_c += dboolhuff.c gstvp8rangedecoder.c vp8utils.c
-#gen_source_h += dboolhuff.h
+
+if USE_BUILTIN_LIBVPX
add_source_c += gstvaapilibvpx.c
libgstvaapi_codecparsers_cflags += \
libgstvaapi_codecparsers_libs += \
$(top_builddir)/ext/libvpx/libgstcodecparsers_vpx.la
+else
+gen_source_c += dboolhuff.c gstvp8rangedecoder.c vp8utils.c
+gen_source_h += dboolhuff.h
+endif
endif
GENFILES = \