From patchwork Mon Jul 25 04:11:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 36939 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:1649:b0:8b:613a:194d with SMTP id no9csp1814393pzb; Sun, 24 Jul 2022 21:12:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1smMXGTkoY3lTRWq3nKwaM7DC6HY3GCYIMkyRqupQCXWZwDHtYxA2HviRXVjx1P0bY4yWwr X-Received: by 2002:a17:907:2894:b0:72b:3554:353d with SMTP id em20-20020a170907289400b0072b3554353dmr8797600ejc.297.1658722355705; Sun, 24 Jul 2022 21:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658722355; cv=none; d=google.com; s=arc-20160816; b=pbB1RHvB7KtlgBRJorG9NKjJgLeSSO/qxD75rfkTEkkC3dzPfk6MoKsE0jbqAURGXD x0ZAAzHVtg4P4LSNUIZQwzAqQvFNbL4RDrVlEv//+mGb3ZXhptuSyGiVe2OwgC22kX3l +1ytH8MADcbY4NzcrqQzTAKp60Tsctwl4vMp0d7q7hd504k2OUmUa6Ntg9ZpbNZ2cVIm u6ldbVK7v6lrncHuMHeTYeDc2KjwS4ttiYflbzXxOECq5KQVb6/jHmhLWivuGxg02vGH ootlLF2J/N6paOXcpb0MoIG6neRPioS0DzvysmmMil0kJiU1Eb5OyrB+5b7w5i3L3w0D tDJA== 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=nNEXdS+7PzsoD8oB22oI7jQOf1Nuy6FSC4IcO8WOsEw=; b=eQ3Sk8QOucaZ0Y75S6xiVMxpbo1WmyCuL09BJsQeozbfEfsgDWZ0Tc/57JZD5htskH zxBxWQqZ3KFFWtjSSd2oH/i01j7iw6qYr13fcXDL2k1ZaigergRsvcBXslQZovs8dwJ6 82+FqShMLq80iwOpnQSmSooYF0sRF4oAgPPQurnPFKZ1e7QWaV8u1fvNMG/HO0iPZvYQ +zN+FaUuRkvyMa1yKhSC/d7rjWxAMOdRhPA7yJGnoCmXO1wOCngwTq3+nEE2jsVYZ1jy M235ztHZd9qzlmLSZpibyu5NnQYK8jhhihwbYWaJTw07cLXccsE6InQUro59U6lef32L WDIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b="oIKP/hLO"; 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 hd34-20020a17090796a200b006fed9affed0si15085914ejc.528.2022.07.24.21.12.34; Sun, 24 Jul 2022 21:12:35 -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="oIKP/hLO"; 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 666E768B7D1; Mon, 25 Jul 2022 07:12:14 +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 BD2B968B378 for ; Mon, 25 Jul 2022 07:12:06 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658722331; x=1690258331; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=llqVbTszsBYvpYCOwRZnu8VUYC+RpLfUIsLZ35xLBYU=; b=oIKP/hLOLmDtOeN3QqzbYknVC2Y6TUv79GAEAz3WcZnMdi5LghPw4MU9 qr/ffaYCWWWTdENqFnZTXcOwJhNYW9dPeqF/zcThi8+DaxKTIDZRPuHEx PIjC7w0hUWr8Ebh4uQ+CbSOA40PhhIxbWioFNkqqwtyxq2NfTlu6SPJA3 KvuBiVesriLHgyzk41g667pvY9OWXIhoko7OTlPyVYPg6CzXI0yomaafq JNTvOgwBBAhMWXaOSdyigH8vAcIiPrOe1a7ldBFvDyrIKO07ZbtT2TrXB g+5G1EW4fNMGiQwid/obR4bylDLRIGtCDhsdjL9HVXyGifflG06QT1ouq w==; X-IronPort-AV: E=McAfee;i="6400,9594,10418"; a="274468205" X-IronPort-AV: E=Sophos;i="5.93,191,1654585200"; d="scan'208";a="274468205" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2022 21:12:03 -0700 X-IronPort-AV: E=Sophos;i="5.93,191,1654585200"; d="scan'208";a="596543987" Received: from xhh-dg164.sh.intel.com ([10.238.5.169]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2022 21:12:02 -0700 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Jul 2022 12:11:40 +0800 Message-Id: <20220725041151.7710-3-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220725041151.7710-1-haihao.xiang@intel.com> References: <20220725041151.7710-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v12 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: TrKzTpwrJrCY 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 are 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 027fd756c4..33ca654424 100755 --- a/configure +++ b/configure @@ -6588,7 +6588,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