From patchwork Fri Oct 15 13:39:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 31128 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2084:0:0:0:0 with SMTP id a4csp378733ioa; Fri, 15 Oct 2021 06:40:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJFuWXX4gzvEzzkGHNTi9jAVtsduucDLEu7SX3D0BahoSAVEUFuSAdDGfP3HZW/RfHOH7H X-Received: by 2002:a17:906:f109:: with SMTP id gv9mr6661352ejb.184.1634305203190; Fri, 15 Oct 2021 06:40:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634305203; cv=none; d=google.com; s=arc-20160816; b=p1OpuHpIbgyJLzMt6HwkyjF/HQClZDifXY+hSsyZGP+pGlHwsoT3zrOtmUKAVhVWnj WMPMT9joEfINd+2ou+89psgnwbsFP//VzsZFPGVJLJZi52IhRmCS70Vk4av/h7vwOmCl Sk43c3++/SoS7AtK4LpILblMy+cRwUbQy1Q/FnBzgqucMidfVg8JjLKuz81IiR5c/0zD X+F3HnNUzyzowzXXtJel9KbWnT0dya6yw71VN6fM3wgUC4IcsM/ACTkMqCzaCK92dzMH 1vzVc9fzR/vnLtss1uYwk4rq0pn/EhfWe9SBQpUd2zMgN3ZgcKKtvISQhhdbveLsPsdZ t5Ig== 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=wO6CC6Hnbts4YibeOighyNe/O71wlzBLya0Llzcg4YE=; b=PGxCgOIA5tK3pwbIM4nZohuqhRDvWwxFPLSS447OrPdHWq8Fsn5euayl4AyTOUprSp ysMcidoCIff5UclihB1V5OzdjWmiI4MbZqbeqyTmrwnO1xlIkaLru8oFtUdog6Aas4xT Pr+ArjN+mu2tDBshAPRbiulf9IA7+NKofv6cAv36FI/dNbXAKdOo4nE8orkFqKlC0foF EA02nDoQkCefOTypbP8RMR7XmSJUZwa+jr1SYdmSZzgpiwUlfYxGOcGLkrRodgZMBImZ tDazN76AB/90Pk7p3SKxLXl9a8Y5zmsPyqN7QDUpX1huXFeAQ/iq/7krKnlFWEcXV3ts C41A== 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 u21si8360699eda.507.2021.10.15.06.40.02; Fri, 15 Oct 2021 06:40:03 -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 8ED9068A99E; Fri, 15 Oct 2021 16:39:40 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3CF1068A947 for ; Fri, 15 Oct 2021 16:39:33 +0300 (EEST) X-IronPort-AV: E=McAfee;i="6200,9189,10137"; a="226686974" X-IronPort-AV: E=Sophos;i="5.85,375,1624345200"; d="scan'208";a="226686974" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2021 06:39:30 -0700 X-IronPort-AV: E=Sophos;i="5.85,375,1624345200"; d="scan'208";a="442524769" Received: from xhh-dg164.sh.intel.com ([10.239.159.167]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2021 06:39:29 -0700 From: Haihao Xiang To: ffmpeg-devel@ffmpeg.org Date: Fri, 15 Oct 2021 21:39:07 +0800 Message-Id: <20211015133915.13624-3-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211015133915.13624-1-haihao.xiang@intel.com> References: <20211015133915.13624-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v6 02/10] configure: fix the check for MFX_CODEC_VP9 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: iYXm3VcvIUCN The data structures for VP9 in mfxvp9.h is wrapped by MFX_VERSION_NEXT, which means those data structures have never been used in a public release. Actually MFX_CODEC_VP9 and other VP9 stuffs is added in mfxstructures.h. In addition, mfxdefs.h is included in mfxvp9.h, so we may use the check in this patch for MFX_CODEC_VP9 This is in preparation for oneVPL support because mfxvp9.h is removed from oneVPL [1] [1]: https://github.com/oneapi-src/oneVPL --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index f89e769684..0204d230c7 100755 --- a/configure +++ b/configure @@ -6444,7 +6444,7 @@ enabled libmfx && { { check_pkg_config libmfx "libmfx < 2.0" "mfx/mfx "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" + check_cc MFX_CODEC_VP9 "mfx/mfxdefs.h mfx/mfxstructures.h" "MFX_CODEC_VP9" fi enabled libmodplug && require_pkg_config libmodplug libmodplug libmodplug/modplug.h ModPlug_Load