else
HAVE_MSDK="no"
fi
-])
+], [], [
+ dnl check the availability of vp9 apis
+ USE_MSDK_VP9_DEC=0
+ save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$LIBMFX_CFLAGS $MSDK_CFLAGS $save_CPPFLAGS"
+ AC_CHECK_HEADER(mfxvp9.h, [HAVE_MFXVP9_H=1], [HAVE_MFXVP9_H=0],
+ [
+ #include <mfxplugin.h>
+ ])
+ dnl check the availability of vp9 apis in PREFIX/include/mfx
+ AC_CHECK_HEADER(mfx/mfxvp9.h, [HAVE_MFX_MFXVP9_H=1], [HAVE_MFX_MFXVP9_H=0],
+ [
+ #include <mfx/mfxplugin.h>
+ ])
+ if test $HAVE_MFX_MFXVP9_H -eq 1; then
+ AC_DEFINE(HAVE_MFX_MFXVP9_H, 1, [Define if mfx/mfxdefs.h available])
+ fi
+
+ if test $HAVE_MFXVP9_H -eq 1 \
+ -o $HAVE_MFX_MFXVP9_H -eq 1; then
+ USE_MSDK_VP9_DEC=1
+ AC_DEFINE(USE_MSDK_VP9_DEC, 1, [Define if MediaSDK VP9 decoder api is available])
+ fi
+ ], [USE_MSDK_VP9_DEC=0])
AM_CONDITIONAL(USE_MSDK_LIBVA,
test "x$HAVE_MSDK" = "xyes" -a "x$HAVE_LIBVA_DRM" = "xyes")
+AM_CONDITIONAL([USE_MSDK_VP9_DEC],
+ [test $USE_MSDK_VP9_DEC -eq 1])
dnl *** ext plug-ins ***
dnl keep this list sorted alphabetically !
gstmsdkvp8dec.c \
gstmsdkvp8enc.c \
gstmsdkvc1dec.c \
- gstmsdkvp9dec.c \
gstmsdkdec.c \
gstmsdkenc.c \
gstmsdkvpp.c \
gstmsdkvp8dec.h \
gstmsdkvp8enc.h \
gstmsdkvc1dec.h \
- gstmsdkvp9dec.h \
gstmsdkdec.h \
gstmsdkenc.h \
gstmsdkvpp.h \
gstmsdkvpputil.h
+# Conditional build for vp9 decoder
+libgstmsdk_vp9dec_source_c = gstmsdkvp9dec.c
+libgstmsdk_vp9dec_source_h = gstmsdkvp9dec.h
+if USE_MSDK_VP9_DEC
+libgstmsdk_la_SOURCES += $(libgstmsdk_vp9dec_source_c)
+noinst_HEADERS += $(libgstmsdk_vp9dec_source_h)
+endif
+
libgstmsdk_la_CFLAGS = \
$(GST_CFLAGS) \
$(GST_BASE_CFLAGS) \
#include "gstmsdkvp8dec.h"
#include "gstmsdkvp8enc.h"
#include "gstmsdkvc1dec.h"
+#ifdef USE_MSDK_VP9_DEC
#include "gstmsdkvp9dec.h"
+#endif
#include "gstmsdkvpp.h"
GST_DEBUG_CATEGORY (gst_msdk_debug);
ret = gst_element_register (plugin, "msdkvc1dec", GST_RANK_NONE,
GST_TYPE_MSDKVC1DEC);
-
+#ifdef USE_MSDK_VP9_DEC
ret = gst_element_register (plugin, "msdkvp9dec", GST_RANK_NONE,
GST_TYPE_MSDKVP9DEC);
+#endif
ret = gst_element_register (plugin, "msdkvpp", GST_RANK_NONE,
GST_TYPE_MSDKVPP);