From patchwork Thu Apr 28 09:23:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 35455 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b9e:b0:7d:cfb5:dc7c with SMTP id b30csp3473276pzh; Thu, 28 Apr 2022 02:26:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE+1/H8bJwG6lqz/G72VtAlTQLWRY+kXW5JMG8ZjI6lZfOVJq6shdeojEZ1ZjCb3Dwx76r X-Received: by 2002:a17:906:99c1:b0:6db:f0cf:e38c with SMTP id s1-20020a17090699c100b006dbf0cfe38cmr30717101ejn.692.1651138012487; Thu, 28 Apr 2022 02:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651138012; cv=none; d=google.com; s=arc-20160816; b=ByREBKHR8ThqGgZ9pTfluB5C/Zs7cgPGRtykxuSFUvhhVndg8TFWkPW9lZTncMhHGo 4CkN5crK/jDYrPx/u0BKtT6yfk7j8aZD1zXcTE7XJFZWGVDYtxpThELCHMiMYA2Is/wB UjS5fl3DYaLbFm/LbLpZJNrjO9/P5w+qDYOCrVD8C9/Xc3O8/2L5IGGxFarF7m+I0WT8 Cji4HDUQzPXWGbNctkMLxhEX5uv2ic85d9TFqWQpA+z+C8Z5X7l0zWxGtVPkqMYw4hZH 9Uc+lf/2J/pGl8o27lMiFvFDaJJz0ecrfvaVf0srCPz4+0DWqd147sIQCv35akkau0j/ yoAQ== 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=E2D1TDn9C9A/fSr3NuJnkcCA8Bnr3MyruUeH7pcHGz4=; b=x1pCOSjrJybMHTcJud0YwuMKA9PUKv/6mSZ/xVfjH7GeID5IDWIt4pOOUqkTTotnpi Gj2fiR0ZrpoKpcZXYsJtPvfc0fehdZFBb+MG+yA0np13ZcVBVpPQD0jf/MUNVB2nqQCy jd0HGqMzwZz5p8o3UJP4PAMJWdgd5aRI854nSfA0TatG5YxzU6i+wwAOo0fwTnaJdGKF G99N4L+GdceRHoTs+2VPH3Ef4zjQe5VOXy8REhinfaE+qsjLvsGbaUm/PK2yfJpbwk8J Wf3vf4+gEYO0gNvfHZOZ4x/ypJlQQp8pSHrUvhXN0856aWRlne6dYGj4hQ+emL9WNNHF xECg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b="fGpPC/9E"; 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 v8-20020aa7d808000000b00425d4bbd155si3373148edq.3.2022.04.28.02.26.52; Thu, 28 Apr 2022 02:26:52 -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; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b="fGpPC/9E"; 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 43A8068B379; Thu, 28 Apr 2022 12:26:40 +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 B457B68AC9E for ; Thu, 28 Apr 2022 12:26:32 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651137997; x=1682673997; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=1ixNgkt6BWTbcHYHU8maAWy/2rAWNj00VzT6RsgcF1Y=; b=fGpPC/9EFlUlJgzWZLbEcSPLnw6TPPxZ287zYSfH+rIy9BCbdgV4hZ0d wKAFNcFo9CGlhcjPhOi+b1IdTAN5WcK/I63qvWFMIQpoQs95dNLxS3wwC VSF4+wbyqJUjEZursTkPYbRyNFM9IsEKnlMZVeTrvRHI8iJCMSA9SdC9z VXBRlnpNQ939H3ycbpdxEx8cNi7Ku7faQJGVOc0HU6YfDjmgT0CzgnMYQ HaIUxwzTiTpTKj+Jx2vOqVfeMvE1om52BAZEo8239T+n41X2Al5fNIsDy YCEfkEFudpUUwByKjBNFEWQhwZOJpU1x8263OFXP4g0x7AT+xfhftyS9E Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10330"; a="266381377" X-IronPort-AV: E=Sophos;i="5.90,295,1643702400"; d="scan'208";a="266381377" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2022 02:26:28 -0700 X-IronPort-AV: E=Sophos;i="5.90,295,1643702400"; d="scan'208";a="581175970" Received: from zhao12-mobl.ccr.corp.intel.com (HELO hxiang-desk.ccr.corp.intel.com) ([10.254.214.89]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2022 02:26:26 -0700 From: Haihao Xiang To: ffmpeg-devel@ffmpeg.org Date: Thu, 28 Apr 2022 17:23:18 +0800 Message-Id: <20220428092327.16558-2-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220428092327.16558-1-haihao.xiang@intel.com> References: <20220428092327.16558-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v08 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: sReeIhTQea8w 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 196873c4aa..81e7d43d22 100755 --- a/configure +++ b/configure @@ -6565,8 +6565,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