From patchwork Thu Sep 23 06:28:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 30472 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:6506:0:0:0:0:0 with SMTP id z6csp158302iob; Wed, 22 Sep 2021 23:28:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbw/T9DdpSTZdnfSz66GpAq4Sq9FWLqsMbzu5I+DVoZND2z+lWNpcRcYqy6LWcTif6Hs3I X-Received: by 2002:a17:906:689b:: with SMTP id n27mr3389786ejr.459.1632378534750; Wed, 22 Sep 2021 23:28:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632378534; cv=none; d=google.com; s=arc-20160816; b=Jk4nEOPNmkyDpmArVQeIAkQRLpuZMgtsJ2H3opDCOsGbVDVi076DXIQyXGxdBodSRQ ir15pdOkvF9uy4jReDQ0PQ1F7s3QcYHdhLD0l4gluhJXI5YFKxGlQFKhqjIexYnLY8rQ 8BZjAgDLWgZw89XiFfe5fH94P6aUbeHNab24rpVVRS8EBIbSzL+DZAXCLQmsbD9l3LyP ItHrwXx6um/lNCwx7iasfQB+GR2Pcj/WiywleHkCS1Lq2pnZ+rlstZzn7F5d/Sa9a1XX l8ICvygT6cmYC3l92kvc8OEdndsI4UgcfMNbmf5y2wxHqPH7yqTPtYr+m19rexScJ1ps pwSA== 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=ZM7U1SQN1XIPj0N6IcnLTR6cduhQMX9w1SZzNvgYs+c=; b=v3DYzeMpsYINwEJWlUMjl86QB4J3zFurYSRviMOLQ87tVAGBOuVvnyaf0chGFXwY+F 8SOufTST+BPtZ5GanC87upinOS2FokIOX5UQ65pcJ49GnZiyXaHixkjuQpDjyzFuMUl6 WO8t8+5sshRXJ03a6J3nO6yhgtLnSk3SqZpYtA1Md/EGNCWILAWu4zETsZb4T9JuRCbV baeATjSCbmHQD7BGZKOFS5riqiDWmeMY2vmEy1eQmR9cAoXjp3K1EmikXYn27TqNolJV vMnsWNVXlLT5cHpXPjyCse4yZziezJg0nIstLzW8ypjGf3D7NTG074TpOSnNKRNrY5pq T/Tg== 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 26si4889494ejl.648.2021.09.22.23.28.54; Wed, 22 Sep 2021 23:28:54 -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 18E1068A94D; Thu, 23 Sep 2021 09:28:39 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A754568A926 for ; Thu, 23 Sep 2021 09:28:30 +0300 (EEST) X-IronPort-AV: E=McAfee;i="6200,9189,10115"; a="203930125" X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="203930125" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2021 23:28:28 -0700 X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="550689665" Received: from xhh-dg164.sh.intel.com ([10.239.159.167]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2021 23:28:27 -0700 From: Haihao Xiang To: ffmpeg-devel@ffmpeg.org Date: Thu, 23 Sep 2021 14:28:09 +0800 Message-Id: <20210923062818.18892-2-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210923062818.18892-1-haihao.xiang@intel.com> References: <20210923062818.18892-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v4 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: rRizLMy0VMhe 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 231d0398a8..34e9a7c863 100755 --- a/configure +++ b/configure @@ -6434,8 +6434,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