From patchwork Thu Jun 2 03:41:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 36046 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6914:b0:82:6b11:2509 with SMTP id q20csp3803146pzj; Wed, 1 Jun 2022 20:42:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAC0JoGrRCyOdbBwgGbgkcKk156sNFN6G1EREtkXOZJ2up0QNmEtyh/PgNyE5aJN3LUATc X-Received: by 2002:a17:907:96a4:b0:6fe:f4dc:8fe5 with SMTP id hd36-20020a17090796a400b006fef4dc8fe5mr2478779ejc.504.1654141345375; Wed, 01 Jun 2022 20:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654141345; cv=none; d=google.com; s=arc-20160816; b=NkSyigpdxpxjs0WhM9qr4cByU7ZwDtt4Yrd3+WXiXiEE2swBg+ZzLdKcLJ0MncyE2P ngJFm3pR5cnQLb36k6byh1I/bit9GueQy8Un0ejaDC4FAFCd/LPZiMiKU2rc2CEDHUiA jpYchA0qfeYV8ELFIwGI60CnBLtHLstUu3H7WUY22Dur9PCdNtJkHethapCn0ac0fgfs Qg7zQSxKGUTDo8xZOTbbnpGQuBvXP1gteaXd0z1VwHgqtEPpWb9QF2u0fYJFoUVLQ8Jq huqsveyyNRcOjCVQSzTOf0S2rayv4gkQXiy0yK2vNdaMaP3YKYGEImX3tvfqbAoHH093 9NYg== 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=i2Krm6dHKdXCiEZK00qCYG+IKFd8dQleXqS6qAhSND4=; b=C4A9ESq+GDl9QUfkR9wu8fEHiYsdTqT3m26Ub6w9QZsLdaF9DBa87nMXQQYqoUF8sM 66FMY+l7W2EFFSoI/vIb1PQlkzL9VbkPOwsK9VuC1ssr9n9Ul4ntc8jOYi9+0vk5qvQn qEwq0KcG1mwqke7lRY7AeUbifTUiE4qA5sAGNnPcaVI/oMoMyPIPAdMq/UrWmAGCWGkg ReY4d07701zku71ViVixWbhSO+R6cYT8Tz08dpIRmde6SSaKeFJF6YJj+LCxbFVmtCO4 8aBOuCEn2/7hYktiFPl9ZUSSl1SjEpKvEXddjE47RwazexvzA3jYZotrt28haacimKUM +fLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=CgIR6zDh; 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 h24-20020a17090634d800b006f39ffe23c8si3209682ejb.263.2022.06.01.20.42.24; Wed, 01 Jun 2022 20:42:25 -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=CgIR6zDh; 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 AFBD468B7F5; Thu, 2 Jun 2022 06:42:02 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2CFC868B7A6 for ; Thu, 2 Jun 2022 06:41:55 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654141320; x=1685677320; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=QMTNPVSeol4aX9tbFAT2ngSxU+cpA09vgmHM9/OfiUQ=; b=CgIR6zDhJuSnOwJQO+vy7eeD+d5q/L8oa4CWDkgmBdi+tqm/mBfWF1at kyKn66pKJ5ASRdsJpXUGodXsC30UaqG3Rp7qdzUZRd4qrvKnAj0NrdfXM 3NxXQlfsITBInW+5mX5vkX4QbekwSOMHBQ6viPdcLA/yUoFMQoCvT8IZh K7UBb0QZ6hfYUKocnMCvm9LdK3I+pVx0ecs+Lq3up5ZNclm8+7c54Rwvy 7LlgyViGfimec0BYjoA1+5H3Gx3Yvx4keBBCJcD6HvMrDaCvt5i3Y3avx 1hUYWeJc0ismVVv7nLKnZXKPkyO0fhs5z8ExzEupaWgE4wFjqSugdrQB3 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10365"; a="362181636" X-IronPort-AV: E=Sophos;i="5.91,270,1647327600"; d="scan'208";a="362181636" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2022 20:41:51 -0700 X-IronPort-AV: E=Sophos;i="5.91,270,1647327600"; d="scan'208";a="552629535" Received: from xhh-dg164.sh.intel.com ([10.239.159.54]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2022 20:41:50 -0700 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Thu, 2 Jun 2022 11:41:10 +0800 Message-Id: <20220602034118.22447-3-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220602034118.22447-1-haihao.xiang@intel.com> References: <20220602034118.22447-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v9 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: V8/L7y9v7yVn 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 51a0bb1481..78e2847460 100755 --- a/configure +++ b/configure @@ -6573,7 +6573,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