msdk: allow building against open sourced msdk
Building against mfx_dispatcher is used to search for headers in PREFIX/include/mfx/ only (commit: 62f04e801bd7e247102ac67df889bee33ab74ff7), but it is just PREFIX/include with open source msdk version. https://bugzilla.gnome.org/show_bug.cgi?id=796118
This commit is contained in:
parent
9956f22537
commit
dec0953517
@ -1088,6 +1088,14 @@ AG_GST_CHECK_FEATURE(MSDK, [Intel MediaSDK], msdk, [
|
||||
[
|
||||
AC_DEFINE(HAVE_LIBMFX, 1, [Define if mfx_dispatcher is available])
|
||||
HAVE_MSDK="yes"
|
||||
dnl external msdk dispatchers sometimes install headers into prefix/mfx/
|
||||
save_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$LIBMFX_CFLAGS $save_CPPFLAGS"
|
||||
AC_CHECK_HEADER(mfx/mfxdefs.h, [HAVE_MFX_MFXDEFS_H=1], [HAVE_MFX_MFXDEFS_H=0])
|
||||
if test $HAVE_MFX_MFXDEFS_H -eq 1; then
|
||||
AC_DEFINE(HAVE_MFX_MFXDEFS_H, 1, [Define if mfx/mfxdefs.h available])
|
||||
fi
|
||||
CPPFLAGS="$save_CPPFLAGS"
|
||||
], [
|
||||
AC_ARG_WITH([msdk-prefix],
|
||||
AS_HELP_STRING([--with-msdk-prefix],
|
||||
|
@ -33,7 +33,7 @@
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBMFX
|
||||
#ifdef HAVE_MFX_MFXDEFS_H
|
||||
# include <mfx/mfxplugin.h>
|
||||
#else
|
||||
# include "mfxplugin.h"
|
||||
|
@ -33,7 +33,7 @@
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBMFX
|
||||
#ifdef HAVE_MFX_MFXDEFS_H
|
||||
# include <mfx/mfxplugin.h>
|
||||
#else
|
||||
# include "mfxplugin.h"
|
||||
|
@ -33,7 +33,7 @@
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBMFX
|
||||
#ifdef HAVE_MFX_MFXDEFS_H
|
||||
# include <mfx/mfxstructures.h>
|
||||
# include <mfx/mfxjpeg.h>
|
||||
#else
|
||||
|
@ -33,7 +33,7 @@
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBMFX
|
||||
#ifdef HAVE_MFX_MFXDEFS_H
|
||||
# include <mfx/mfxstructures.h>
|
||||
# include <mfx/mfxjpeg.h>
|
||||
#else
|
||||
|
@ -34,7 +34,7 @@
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBMFX
|
||||
#ifdef HAVE_MFX_MFXDEFS_H
|
||||
# include <mfx/mfxplugin.h>
|
||||
# include <mfx/mfxvp8.h>
|
||||
#else
|
||||
|
@ -33,7 +33,7 @@
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBMFX
|
||||
#ifdef HAVE_MFX_MFXDEFS_H
|
||||
# include <mfx/mfxplugin.h>
|
||||
# include <mfx/mfxvp8.h>
|
||||
#else
|
||||
|
@ -41,7 +41,7 @@
|
||||
#include <gst/gst.h>
|
||||
#include <gst/video/video.h>
|
||||
|
||||
#ifdef HAVE_LIBMFX
|
||||
#ifdef HAVE_MFX_MFXDEFS_H
|
||||
# include <mfx/mfxvideo.h>
|
||||
#else
|
||||
# include "mfxvideo.h"
|
||||
|
@ -40,7 +40,7 @@
|
||||
#include <gst/gst.h>
|
||||
#include <va/va.h>
|
||||
|
||||
#ifdef HAVE_LIBMFX
|
||||
#ifdef HAVE_MFX_MFXDEFS_H
|
||||
# include <mfx/mfxvideo.h>
|
||||
#else
|
||||
# include "mfxvideo.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user