From patchwork Sat Sep 18 02:29:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 30329 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2a4a:0:0:0:0 with SMTP id k10csp2752365iov; Fri, 17 Sep 2021 19:30:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTnv6i/fC+SKNwgxNsYMMkvP8Mkz+D5cIbmCdjE9GTFgEW1UjLg8ey7Etqh84hX0EyCGlX X-Received: by 2002:a17:906:3012:: with SMTP id 18mr16476779ejz.136.1631932248382; Fri, 17 Sep 2021 19:30:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631932248; cv=none; d=google.com; s=arc-20160816; b=FXdLQHEpjhkgl+yuS/gGZJe4LPnQ9MhNzMs9YTacBi9IykySLF1jNF9oPcddi7BEyd QNEH6rfrM5fxrUB/wjstMpRNPFg3hMU7Se0WUHVER6LV2JyDROCVib6Gj0WxCnuxvgjL Yek3OKNn2fxx62jsjyMMO9NOFExpF8JBgmG3EH/zSNq1k5yEv/qzm/KKB8E3+EBI1Swu fPj6M52MVCmJD/62SkRkONe5Uwg0O1n6LsYyOvO8dsg8sfZqr3zfSw6+mdCcKEi+cBCI l7DL7MV+b17fjQOjEtL/9Vy/pxE+ARH47HNoyjJgBMxr6WkxHOtNtH560QXrOy3yMub1 f3FQ== 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=NhkthUBBmWUsi5B+a5wmBYy7+mxCsaPM1KLRmT4jTOk=; b=MX0NEDoyuNw8WTuJhXa3pu87KrH4wPzbyZuP6DIiVg5FTBOb+DhLPG9tX7SgLpONDE lR50NILCAKTfhbd+mJNzw5tio0RvFkBgvFfa+KhLv5HTUvd3S4sXK/sDx8oXgKFhFFIo OQiJyEDQpP2CXsUmw1p/8/XFfnf6gjPGRdlu9Oikh5qmrutj/WYKVxRrUtQHD/Hf1dHo HOZmR8ZIBeo1TETHUfVhuD8IgDVPTJWII5NmZ0Uq1cC6B9bwqOMBq7XlpqtZQchQTP+/ YexrfwPJI2R53xkR0UHCmUSd8NxXJcJB6YDolT8qg9nBZVDD9GsxHGB/ygo/9Bo4iPWB ylvw== 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 e26si8655327eds.290.2021.09.17.19.30.48; Fri, 17 Sep 2021 19:30:48 -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 6596D68B161; Sat, 18 Sep 2021 05:30:35 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4AF0268AAD8 for ; Sat, 18 Sep 2021 05:30:27 +0300 (EEST) X-IronPort-AV: E=McAfee;i="6200,9189,10110"; a="222563135" X-IronPort-AV: E=Sophos;i="5.85,303,1624345200"; d="scan'208";a="222563135" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2021 19:30:24 -0700 X-IronPort-AV: E=Sophos;i="5.85,303,1624345200"; d="scan'208";a="473303686" 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; 17 Sep 2021 19:30:23 -0700 From: Haihao Xiang To: ffmpeg-devel@ffmpeg.org Date: Sat, 18 Sep 2021 10:29:56 +0800 Message-Id: <20210918023005.30128-2-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210918023005.30128-1-haihao.xiang@intel.com> References: <20210918023005.30128-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v3 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: i+lYr/ZuY+sz 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 7ac23123c7..48fde41b68 100755 --- a/configure +++ b/configure @@ -6432,8 +6432,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