You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
configure: ensure --enable-libmfx uses libmfx 1.x
Intel's oneVPL is a successor to MediaSDK, but removed some obsolete features of MediaSDK[1], some early versions of oneVPL still use libmfx as library name[2]. However some of obsolete features, including OPAQUE memory, multi-frame encode, user plugins and LA_EXT rate control mode etc, have been enabled in QSV, so user can not use --enable-libmfx to enable QSV if using an early version of oneVPL SDK. In order to ensure user builds FFmpeg against a right version of libmfx, this patch added a check for version < 2.0 and warning message about the used obsolete features. [1] https://spec.oneapi.io/versions/latest/elements/oneVPL/source/VPL_intel_media_sdk.html [2] https://github.com/oneapi-src/oneVPL
This commit is contained in:
10
configure
vendored
10
configure
vendored
@@ -6583,10 +6583,12 @@ enabled liblensfun && require_pkg_config liblensfun lensfun lensfun.h lf_
|
|||||||
# Media SDK or Intel Media Server Studio, these don't come with
|
# Media SDK or Intel Media Server Studio, these don't come with
|
||||||
# pkg-config support. Instead, users should make sure that the build
|
# pkg-config support. Instead, users should make sure that the build
|
||||||
# can find the libraries and headers through other means.
|
# can find the libraries and headers through other means.
|
||||||
enabled libmfx && { check_pkg_config libmfx "libmfx >= 1.28" "mfx/mfxvideo.h" MFXInit ||
|
enabled libmfx && { { check_pkg_config libmfx "libmfx >= 1.28 libmfx < 2.0" "mfx/mfxvideo.h" MFXInit ||
|
||||||
{ require libmfx "mfx/mfxvideo.h mfx/mfxdefs.h" MFXInit "-llibmfx $advapi32_extralibs" &&
|
{ require libmfx "mfx/mfxvideo.h mfx/mfxdefs.h" MFXInit "-llibmfx $advapi32_extralibs" &&
|
||||||
{ test_cpp_condition mfx/mfxdefs.h "MFX_VERSION >= 1028" || die "ERROR: libmfx version must be >= 1.28"; } &&
|
{ test_cpp_condition mfx/mfxdefs.h "MFX_VERSION >= 1028 && MFX_VERSION < 2000" || die "ERROR: libmfx version must be >= 1.28 and < 2.0"; } &&
|
||||||
warn "using libmfx without pkg-config"; } }
|
warn "using libmfx without pkg-config"; } } &&
|
||||||
|
warn "build FFmpeg against libmfx 1.x, obsolete features of libmfx such as OPAQUE memory,\n"\
|
||||||
|
"multi-frame encode, user plugins and LA_EXT rate control mode are enabled"; }
|
||||||
|
|
||||||
if enabled libmfx; then
|
if enabled libmfx; then
|
||||||
check_cc MFX_CODEC_VP9 "mfx/mfxvp9.h mfx/mfxstructures.h" "MFX_CODEC_VP9"
|
check_cc MFX_CODEC_VP9 "mfx/mfxvp9.h mfx/mfxstructures.h" "MFX_CODEC_VP9"
|
||||||
|
Reference in New Issue
Block a user