From patchwork Tue Jul 12 06:27:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 36740 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:6da0:b0:8b:e47:9dbf with SMTP id wl32csp1811527pzb; Mon, 11 Jul 2022 23:28:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uVdWr+8xT6Mp50xTOM3LdAFnHGd/hj7dGBLdUD4EFe2MtVH62lMTH4KpJz6awTn83X5naQ X-Received: by 2002:a17:907:2ccc:b0:72b:6907:fce6 with SMTP id hg12-20020a1709072ccc00b0072b6907fce6mr5514459ejc.115.1657607319780; Mon, 11 Jul 2022 23:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657607319; cv=none; d=google.com; s=arc-20160816; b=LJpDp91Lor7qlA7+aRi4JS88A0sLTIaq09z/I2aVNkfYCIuzblzpvIQSSzNTGImQ57 7xVajzkjmz6Fsj+ws45FE6w1y3T0PQNQiKOLeelfBp8Yt5l0Y6OqQ6sGZvNHfizT2h3v 0MPafaRMA6Ofx8ZWctb/ax9QwAlg4F66Z78SZRDw1na28d/duzQsajqf1yQ36LGDFy/M knCkVKNdlGZQWqXjRAqEtN2KEpM04ykRiZJFuy7hS2iVl5OvH/JWOEYdYHalAvczGmq3 oYPgx4rLpJs8U/SsR/XzEHp//7GPWueHS5aHLYBIC5e+nFhtwm7dX/16Fa8lb+eQEO+e myKA== 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=EfHHBx9zNs98lpPjFvbFgcLyTeaj2IHhS5YtvxT7uqo=; b=Y9hNY/fFbvykDWDgkChF5Yu6rKNCBnBrPkmaqY7mMEIe6GAVXt4ApGmL5QbpZeipIT y4kuzXiarN49ST7ZEWYYW+ax7Fb1h+vyIcWpnbrziyBCWHOFpBPXjhk+ajSqSPUgSj79 XIcS7Xndy0rbHkkBiw7hJm2C4igwotpOL7yooS445r3HHPOJ88Cb4RQad42RYryW5elP FStp/y3v2huAQctVQD50as/BtIoWNQaKX2YcKJq+ybEunXeAFM8bzpxGZ8pG1vGRUo4/ 3UBq41vleeplmi8Z2hDJMTe6fM0zVajs/S/OqVM7U3PFXAHSVZzjHR1+rELxkXQ7IMzk A9ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=K8GXLjJM; 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 r11-20020a17090638cb00b0072625d8a873si11611813ejd.927.2022.07.11.23.28.39; Mon, 11 Jul 2022 23:28:39 -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=K8GXLjJM; 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 402EB68B840; Tue, 12 Jul 2022 09:28:22 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A2EDD68B58F for ; Tue, 12 Jul 2022 09:28:15 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657607301; x=1689143301; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=yDTDL/pYr84+qqaDjFfywST/2qgQgpKy3sJ136+WGwU=; b=K8GXLjJMdh9mDaVC3ZqQpWiHqvNvtRHW8BUClR/f4gbQcSOr/TZQleUv HppY3ZjRjf4ezxZj5yjvjQVu365TUXUe+B4t+rK2cwuXwZ00CL0g+bLEN 278ezs5HIpsOkrenGUuMbymiNqCnM1O5wG01xGSO17F7nAis9YcatNvXz VQM+pSJ+v6+S4HUXoITnFCHN32UpfFvlBlC0nqd2DA56b7IrRvy7OjT0J 4lLpc1ELspipw9R0eNvZ1T7e6JDSDR/lzAVGukYtlb/2k5VOE7CTD3m/D lL3sG87SbAu6IXyn4WHdlVc9af7mc0TuG/FKhIPx3dVONa0SUiiSmm4Ga g==; X-IronPort-AV: E=McAfee;i="6400,9594,10405"; a="346534430" X-IronPort-AV: E=Sophos;i="5.92,265,1650956400"; d="scan'208";a="346534430" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2022 23:28:10 -0700 X-IronPort-AV: E=Sophos;i="5.92,265,1650956400"; d="scan'208";a="622381975" Received: from xhh-dg164.sh.intel.com ([10.239.159.146]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2022 23:28:09 -0700 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Tue, 12 Jul 2022 14:27:24 +0800 Message-Id: <20220712062735.20339-3-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220712062735.20339-1-haihao.xiang@intel.com> References: <20220712062735.20339-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v10 02/13] 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: pFI+IBQrqoph From: Haihao Xiang 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 9f0c2eabc0..959526ec8f 100755 --- a/configure +++ b/configure @@ -6581,7 +6581,7 @@ enabled libmfx && { { check_pkg_config libmfx "libmfx >= 1.28 libmfx "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