From patchwork Fri Mar 11 08:16:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 34671 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6838:3486:0:0:0:0 with SMTP id ek6csp1484479nkb; Fri, 11 Mar 2022 00:17:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOcBZxb0ZeHk4CaEG2vnwBePIV3o9hxh7J+EdDFRWhTw5+eMupaTLlwUfYu+ZkdgdSdgVE X-Received: by 2002:aa7:d1cc:0:b0:416:60c6:9225 with SMTP id g12-20020aa7d1cc000000b0041660c69225mr7790304edp.71.1646986631811; Fri, 11 Mar 2022 00:17:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646986631; cv=none; d=google.com; s=arc-20160816; b=WI1imaAgjsE726N/nh+JIjFGjmSOMQJa3n6en7MDLAeGqyWtdKCoTFIi7Qf8MeaVqA AqUhKlSySnN5zePgVdKEpUsRDrtTykUMb6XO4LnrVJW1zgs7+qpIjDS3DLoCATIwXQae FCc7mV9A6cgjGYeSEXnaAiasRwjBg7PH3imirzy7iixSbE90uAT3PLS/zd1DCTo5Or64 sqNLVGOFFmwpIsbCq5HbJE+avnWyeRDXofu95qJlU81oaG4FL9IJQFV2+KdtEcc8nRZ7 GQQ7MXxC8H9S2yDFrjaJ7Iqj2md4tAFSGQ1gjv4cvWP9OQcx2X4miQwnWwkaMqlzlqgh czsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=PC36ImkNefl56i5crnQLGXbKZkaLHpcOBAK4/NRZnKk=; b=HBe3pP2wQ1v1lGAtaGJj4cYQka3d2wSONqHDp9nxkY0RPLRHXcV/v5+gZ0ehlCfRX0 M3grx5PMyCdcIyG5GS8evaFtMpenStmokpXw3KwoniPDoeCS/wEagqAmwdVhszhdhkXB yTZCALkvlhtbgGFXiS4LbUZUyRdKjEMZF8PeUi0a9iur0VT42ExTsoidAfrtePcvc0i4 o1e/w0e+SdC/Fyv7iTgP3ZMCUWPlPIGT3AYf5DzMKd+L75Apu4+Q2q6YIvhfjgcTZvoN PNRrW+taGI3KOM2Sl2Ayk5XhhOn+rE4/zoFtMZfNIghnqKpJ+CN/Xd1ltRoVnXntfL8I Vcag== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=Ncbw4GSl; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id ju5-20020a17090798a500b006d6e97b3a32si4327501ejc.735.2022.03.11.00.17.11; Fri, 11 Mar 2022 00:17:11 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=Ncbw4GSl; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0169F68B1A8; Fri, 11 Mar 2022 10:17:00 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 96ADE68A0C4 for ; Fri, 11 Mar 2022 10:16:52 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646986617; x=1678522617; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=mkRqVBdFkpRBJl7J3sQzqp3A/BA7HnpnNxyLmG/s2os=; b=Ncbw4GSlne4iT4X/fF5W9DGQYOQV4kl/Sw/GHh+/l0XeTMgZYulHPIW9 p5eygpZZ1Mvj3BUpKQkczSeIm/X+d6Y8Frvc9DipvkfTdol2komG0vxLy Sgd+pywcgcucXLaZC3B4o4v1yGBvJSuLU/EGm6o4QaeL8Elrbn8ShMVqZ 6LV6qn+sVtTihMsSLvsKPJoUyaR/DyeR9R+JwSn+fzicFUDU4LrAstfuO VLoOyqomnsf4owhLN9CKtO8fnU+s62eNQhfI9nmH5ordsw2Jz/UGyt5Yz g95jIUZlD5/i861V2nNDA4rOGjPfpwId84EejvjKyY1iUIzjGrXiRDFB3 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10282"; a="237700115" X-IronPort-AV: E=Sophos;i="5.90,173,1643702400"; d="scan'208";a="237700115" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2022 00:16:49 -0800 X-IronPort-AV: E=Sophos;i="5.90,173,1643702400"; d="scan'208";a="688997004" Received: from xhh-dg164.sh.intel.com ([10.239.159.54]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2022 00:16:48 -0800 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Fri, 11 Mar 2022 16:16:21 +0800 Message-Id: <20220311081630.21927-2-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220311081630.21927-1-haihao.xiang@intel.com> References: <20220311081630.21927-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v7 01/10] configure: ensure --enable-libmfx uses libmfx 1.x X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Haihao Xiang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: yGB5QDXwV0Lp From: Haihao Xiang Intel's oneVPL is a successor to MediaSDK, but removed some obsolete features of MediaSDK[1]. Some early versions of oneVPL still uses 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 make sure user builds FFmpeg against a right version of libmfx, this patch added a check for the version of libmfx 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 --- configure | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 7d22c2a345..f3c60d9e40 100755 --- a/configure +++ b/configure @@ -6548,8 +6548,11 @@ enabled liblensfun && require_pkg_config liblensfun lensfun lensfun.h lf_ # Media SDK or Intel Media Server Studio, these don't come with # pkg-config support. Instead, users should make sure that the build # can find the libraries and headers through other means. -enabled libmfx && { check_pkg_config libmfx libmfx "mfx/mfxvideo.h" MFXInit || - { require libmfx "mfx/mfxvideo.h" MFXInit "-llibmfx $advapi32_extralibs" && warn "using libmfx without pkg-config"; } } +enabled libmfx && { { check_pkg_config libmfx "libmfx < 2.0" "mfx/mfxvideo.h" MFXInit || + { require "libmfx < 2.0" "mfx/mfxvideo.h" MFXInit "-llibmfx $advapi32_extralibs" && 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 check_cc MFX_CODEC_VP9 "mfx/mfxvp9.h mfx/mfxstructures.h" "MFX_CODEC_VP9" fi