From patchwork Thu Sep 23 06:28:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 30480 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:6506:0:0:0:0:0 with SMTP id z6csp158439iob; Wed, 22 Sep 2021 23:29:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCp+sZY2rjcQv05CFMKGcvLkJbpbXlmCVEQy5DWHIJ+b1qkTkTpNcZ1SjcRikmUEF+FdWK X-Received: by 2002:a50:bb09:: with SMTP id y9mr3584407ede.89.1632378546169; Wed, 22 Sep 2021 23:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632378546; cv=none; d=google.com; s=arc-20160816; b=hkOvrpX9Z4CCWuYGqZ4VMUbNV7IdIGEEG/zklH1wN8ke46ngSQ3gDQcuQP+cMl1A6q oaLmD5BL1JuHLYrrK9RSCe6VGfit6Tv7w4H6yAKwbzFxDUjMkZRROLzhvKF97tZ/vujs AWl6ItSTyhVK5IgCwLZNhLGc85l6CyeWrBmGTNxro7to6pIuf6m6Te6sZjREcKThFrq9 F4Xl6plSLIZ84iZIVINKHn5VtW5MSPJTyyBFG1b1gzFaGudYQW19HD1Jjy+TpMVHX7DP xvXq1RSYIH4S0EzpQJnYR6A3nksKfZxgp0HYJGArBK5pCqVV2764GZUtSUB45PaagVaX /eFQ== 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=djioarOZ8oHOvjT3sO36d3dWxePGFxDnTXC9QgL4R/w=; b=cTyoQw5PjQct4ZapmiEXDUN2jQyKbi9X92/YWj3cm3BcvjKLhfwmKmpQ+7vm2JXopR 8XeSMQbxoP/hp8Vzwai62In3UIE0GzlcpxLb265w6agZf9IVDkGw1Qc3NnMh+ipB4Onb OWBhXQ0LJNGVn1KBtFmphMVyKpU7eb65W3OIsBy4MH6y7kaiPetU+XzYXbROmLlmy/NR q73h4kUZ694AZX+CI13d4EayrsnSZa9bk6DpcAFkANDb37Zpr1pnM8eioIItS3sf1PcE 1etqSp0rSWolG5SoSYFWUvzppiUwaoRSf+tiWm77TmHVa2l+ElN1b/8GsaaQhY5RIton FzsQ== 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 b9si5162645edn.271.2021.09.22.23.29.05; Wed, 22 Sep 2021 23:29:06 -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 4A66F68A994; Thu, 23 Sep 2021 09:28:42 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C405768A920 for ; Thu, 23 Sep 2021 09:28:34 +0300 (EEST) X-IronPort-AV: E=McAfee;i="6200,9189,10115"; a="203930128" X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="203930128" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2021 23:28:29 -0700 X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="550689676" 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; 22 Sep 2021 23:28:28 -0700 From: Haihao Xiang To: ffmpeg-devel@ffmpeg.org Date: Thu, 23 Sep 2021 14:28:10 +0800 Message-Id: <20210923062818.18892-3-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210923062818.18892-1-haihao.xiang@intel.com> References: <20210923062818.18892-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v4 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: rGBpm42FZn0r 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 34e9a7c863..21c744e627 100755 --- a/configure +++ b/configure @@ -6440,7 +6440,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