From patchwork Fri Oct 8 07:50:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 30987 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2084:0:0:0:0 with SMTP id a4csp609611ioa; Fri, 8 Oct 2021 00:51:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzD5+CmhO6vvKLBbRnM3RP8KlS8ue/lI4MlsAR+e4n/qZi30kEgQeUTw8Ul6Z5b1oGvBwsZ X-Received: by 2002:a05:6402:2807:: with SMTP id h7mr9466407ede.58.1633679515685; Fri, 08 Oct 2021 00:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633679515; cv=none; d=google.com; s=arc-20160816; b=GqCfAAFll16enac6vcDmaD4cVk/t7wu57QOG5XRWXP5BJ5zau7cE8fbpaXWmZTYp8H Qgr6iXA2fWqOMvqIzW6ppNpHMD1y5r+a980Q6rYInr2U1S7KYtsHwWcnjTaQAFDjyNyF 2tkzquRoARBXj3LHQ04wyxKG80ywT7H4DQ+UMkThnQny3HFRsSNOjrBfxZzbiYVYXryZ D9xfFoUgr3SFn5YFe4mlBvV67VY3Ns1+zG5btTMZIhUnv4U7LrTX6sfuLAXX7uAWIw+V BJKIWLpLbkY1fGJWsP9Cl0HNUdi8kdUVnWiIV5t7y9eWo+D2v9PK85ULoylGHKOtcjPu NOkw== 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:delivered-to; bh=2jt8hMlELP5gkUofbYLO7qWvyco1q7hjR0KMGZPyIw0=; b=OemDGkSjE4Ft3vvQL3Onyh37GjNZTI8jPgxvo3SGXLrQc3gtDdp7liOLi/kbd71TZ7 /ln7ZKygImYAZ/mNWhPRX5xaPK5g+WxTYqleaLf9tWbnj+VFqnkvBNmdAQ0kM8WesMEo WgT5aH4lmyucbZ7KLR1nDDvrBgOYFg7Vu/Tgu9z4/ceC7LVu+c4pZvacIa1WF56zBkGS M1u65HeTIbzQ8DRU+enJCHFgc7UF8Ftn0RMwww4WzD3cmCQ1JyvRXMsZ5H7Alfl20Vh9 M9nD7MFWd2dy3NGEwcqkXgvvWJG6vFuM2qY0Tc69EZ51kPNgebKNMw0vU2iFXwTIE7DL Dz7Q== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id e6si2132975ejl.722.2021.10.08.00.51.55; Fri, 08 Oct 2021 00:51:55 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A0AA568A6C5; Fri, 8 Oct 2021 10:51:22 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D984068A5E6 for ; Fri, 8 Oct 2021 10:51:14 +0300 (EEST) X-IronPort-AV: E=McAfee;i="6200,9189,10130"; a="249816262" X-IronPort-AV: E=Sophos;i="5.85,357,1624345200"; d="scan'208";a="249816262" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2021 00:51:07 -0700 X-IronPort-AV: E=Sophos;i="5.85,357,1624345200"; d="scan'208";a="478885037" Received: from xhh-dg164.sh.intel.com ([10.239.159.167]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2021 00:51:06 -0700 From: Haihao Xiang To: ffmpeg-devel@ffmpeg.org Date: Fri, 8 Oct 2021 15:50:47 +0800 Message-Id: <20211008075056.27151-2-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211008075056.27151-1-haihao.xiang@intel.com> References: <20211008075056.27151-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v5 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: X3ouxISHOoeZ 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/appendix/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 5e630e6e5d..960b030e24 100755 --- a/configure +++ b/configure @@ -6435,8 +6435,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