CHECK_WITH([x10tv],[usb 0bc7:0004 X10 remote device],[X10TV],[yes])
CHECK_WITH([vaapi],[video acceleration api],[VAAPI],[yes])
CHECK_WITH([vdpau],[video decode+presentation api for unix],[VDPAU],[yes])
+CHECK_WITH([onevpl],[Intel QSV api for unix],[ONEVPL],[no])
CHECK_WITH([nv],[nvenc/nvdec ffnvcodec api],[NV],[yes])
CHECK_WITH([cuda],[nv cuda plugins],[CUDA],[auto])
CHECK_WITH([clang],[use clang instead of gcc/g++],[CLANG],[no])
])
CHECK_ENABLE([static-build], [STATIC_BUILD], [build static], [auto])
-CHECK_ENABLE([x264_hidepth], [X264_HIDEPTH], [build x264 10bit], [no])
CHECK_ENABLE([x265_hidepth], [X265_HIDEPTH], [build x265 10bit], [no])
test "x$WANT_STATIC_BUILD" = "xauto" && WANT_STATIC_BUILD=$WANT_CINBIN_BUILD
REQUIRE_PROG(OBJCOPY, [objcopy])
if test "x$FATAL_ERROR" != "x"; then
- AC_MSG_ERROR("fatal eror.")
+ AC_MSG_ERROR("fatal error.")
fi
CHECK_PROG(PACTL, [pactl])
WANT_PACTL=$PROG_PACTL
AC_MSG_ERROR([requires vaapi support.])
fi
+CHECK_LIB([ONEVPL], [vpl], [MFXCreateSession])
+if test "x$HAVE_ONEVPL" != "xyes" -a "x$WANT_ONEVPL" = "xyes"; then
+ AC_MSG_ERROR([requires onevpl support.])
+fi
+
#CHECK_LIB([NVENC], [nvidia-encode], [NvEncodeAPICreateInstance])
#if test "x$HAVE_mjpegtools" = "xyes"; then
for v in GL XFT XXF86VM OSS ALSA FIREWIRE OGG DV DVB LADSPA \
VIDEO4LINUX2 ESOUND PULSE PACTL OPENEXR LV2 \
COMMERCIAL GIFLIB LIBZMPEG LIBDPX SHUTTLE SHUTTLE_USB XV \
- VAAPI VDPAU CUDA NV WINTV X10TV; do
+ VAAPI VDPAU ONEVPL CUDA NV WINTV X10TV; do
eval vv="\$WANT_$v"
if test "x$vv" != "xno"; then
CFG_CFLAGS+=" -DHAVE_$v"
fi
CFG_WANTS+=" VDPAU"
+if test "x$WANT_ONEVPL" != "xno" -a "x$HAVE_ONEVPL" = "xyes"; then
+ FFMPEG_EXTRA_LDFLAGS+=' -lvpl `pkg-config --libs vpl`'
+ FFMPEG_EXTRA_CFG+=' --extra-cflags="'$(pkg-config --cflags vpl)'"'
+ WANT_ONEVPL="yes"
+fi
+CFG_WANTS+=" ONEVPL"
+
+
if test "x$WANT_NV" != "xno"; then
WANT_NV="yes"
CFG_WANTS+=" NV"
AC_SUBST(WANT_CIN_3RDPARTY)
AC_SUBST(EXTRA_LIBS)
AC_SUBST(FFMPEG_EXTRA_CFG)
-AC_SUBST(WANT_X264_HIDEPTH)
AC_SUBST(WANT_X265_HIDEPTH)
AC_SUBST(CFG_CFLAGS)
--disable-doc \
$(call if_want,VAAPI,--enable-vaapi,--disable-vaapi) \
$(call if_want,VDPAU,--enable-vdpau,--disable-vdpau) \
+ $(call if_want,ONEVPL,--enable-libvpl,--disable-libvpl) \
$(call if_want,NV, --enable-nvenc --enable-nvdec --enable-ffnvcodec) \
$(call if_ena,twolame,--enable-libtwolame) \
$(call if_ena,openjpeg,--enable-libopenjpeg) \