From patchwork Mon Aug 16 07:33:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 29550 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2a4a:0:0:0:0 with SMTP id k10csp1799724iov; Mon, 16 Aug 2021 00:34:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6TH0hA4nD/REwMCz37b5j3fYA7hz5vs0co1hN7lw3juwwPgHaHLC7NoDIr+IL/yBknV5s X-Received: by 2002:a17:907:c28:: with SMTP id ga40mr14782455ejc.330.1629099269626; Mon, 16 Aug 2021 00:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629099269; cv=none; d=google.com; s=arc-20160816; b=Zqko+teumavoPOFD+MKnkbK6DT2jKnEppn5A88/Bvqb8EFUWGIMr5sJWlk1OPYCxID z9FyOFMEEskzFI3pM+LaXj/5/KkWIDOpEfRrEROIrtFhe1AWkQsHbc0sKdxWMIzQ3aLR 5Su59N+eBopTGmDmWcscKzn14s6n4tsctJd8x+CykUWY/NapX1BnTMvQZUSISyz/QvSA bSTa7KrJoXvK8MDKoZr+Itgt+Cqvw8QI+MHC2JDXkHUp7+mEP/7xphJQj0sZrfZFFR+D qzfnSEi+g+MtFo1ilJx9aMzYAyuRZfBFwlg3h6r0rTM2PVi2giaCZI3qr9xBg1W1+n59 XVxQ== 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=At75D1DKvYJoSH/ThAzgHnFzw7yewjsQ4ErFxntoCwk=; b=FRY/H2Z9QAp6+pFw2aXAamj3b5g5gT1pq1o5sxBBIyf65H8/7IujsoRhWwjBpUG2qi 1Bq9zeRfzl+dtkTlz2hL5VMpBlfFf68wBz5UJmIYHlBDdHvUWmLPFsANYrsXnAJWMCaU 4vMKp9CR7fTCEkkI4BAnwrrSopDD7TvVP3iPOgABt/dGGtINUXu7KgrKcKbKfXqMr9yn j3/epQbAqgfVQavG/gAX2uJNvtJ+oFD6Zzuoqo4Ie0PTqXuHRPgNd68e3XDEqDiGR9Be t8tEqBOvU/zj5UAwKYIi477Q8roCWB//15nYxO1qpRcR+He4DVpagx/NLcV13XL2oF72 ZrJg== 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 h6si9188850edv.408.2021.08.16.00.34.29; Mon, 16 Aug 2021 00:34:29 -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 EAA2A68A5F0; Mon, 16 Aug 2021 10:33:57 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9E29368A583 for ; Mon, 16 Aug 2021 10:33:48 +0300 (EEST) X-IronPort-AV: E=McAfee;i="6200,9189,10077"; a="203011859" X-IronPort-AV: E=Sophos;i="5.84,324,1620716400"; d="scan'208";a="203011859" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2021 00:33:41 -0700 X-IronPort-AV: E=Sophos;i="5.84,324,1620716400"; d="scan'208";a="519461827" 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; 16 Aug 2021 00:33:40 -0700 From: Haihao Xiang To: ffmpeg-devel@ffmpeg.org Date: Mon, 16 Aug 2021 15:33:17 +0800 Message-Id: <20210816073325.27020-3-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210816073325.27020-1-haihao.xiang@intel.com> References: <20210816073325.27020-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v2 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: x5+/y7WMveDS 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 4bdb8bac18..b10a7b5a52 100755 --- a/configure +++ b/configure @@ -6442,7 +6442,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