From patchwork Fri Oct 8 07:50:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 30993 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2084:0:0:0:0 with SMTP id a4csp610003ioa; Fri, 8 Oct 2021 00:52:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFaMSeBtaZH24MMnN7Jxz/1W4m3BlxR/4qkjNMIB/qlmdCbkFep4MUtNrKFBg8RsMnAJ5N X-Received: by 2002:a50:bf05:: with SMTP id f5mr12734820edk.156.1633679552534; Fri, 08 Oct 2021 00:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633679552; cv=none; d=google.com; s=arc-20160816; b=CKvK6VC+7arNy6BE3CkzCW2PHStL3ba8dFaViUkYxTlKaGK4WNZAMUmdmDLqWUh9Te DvV1B1canz9jdntCh37yHNZ3MQO515asOUb9pfXn2fg1v7TCeIrHJ9PBdYxA8HpmRlSV /iUaSWgqBsXIwfS+5q9+v5jzZTiMvRSfGgRDptJ5PzXsNNkOAbmC6Rm/a/B3S2JcY6nZ 6ykuSPszhaKkcgBrmZXDxcrdGaIs8taVKCTtj6EdPjgaNRzKU+N5nEK3x9PxjCZe9HwF RtFrucTjXPguqbAKfCbeTEfyFsWw55/g+UnwGDwnIOBQ+BzJIXsOlvVO3MLsO+uE35YV 8BIA== 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=vI1pSvK87T6XAQ6qe4OPwKat/aZyqSMD8gaTQLCbhGc=; b=iXWODP0rdjfAsoAyw+aFAmGNKVkhwT+aO0KMdLW3BrPdd8lqReABHG3QQAHfaehUDq hQ7tlxSnsiL3jCPjVPw569YH/Lf4kR220HaRGzuN32sHRip2kJrlKgm1yaQQ/Sa0Otrj ciQ20huQxGqX8A6URfoTo8th2Loh56f1vSkKP1yBG7iJdemRu0jzPUnr7td9ACYEcr39 upGrgAOCdC3n3wwhl9xAPC+DkfnNlfaIi3+dh+A3sr5rOceVDkgyZZ/ri7He4VXD3u52 VIDevUrYZzp8SSoV9q4gmhTJd1Ck4vxA74t4Y9ChVWIqpmos4KJE9lmvCEZNxmpM3KpB 0q9w== 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 6si2283829ejc.421.2021.10.08.00.52.30; Fri, 08 Oct 2021 00:52:32 -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 03A2068A774; Fri, 8 Oct 2021 10:51:26 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1D54468A61A for ; Fri, 8 Oct 2021 10:51:16 +0300 (EEST) X-IronPort-AV: E=McAfee;i="6200,9189,10130"; a="249816263" X-IronPort-AV: E=Sophos;i="5.85,357,1624345200"; d="scan'208";a="249816263" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2021 00:51:10 -0700 X-IronPort-AV: E=Sophos;i="5.85,357,1624345200"; d="scan'208";a="478885049" Received: from xhh-dg164.sh.intel.com ([10.239.159.167]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2021 00:51:07 -0700 From: Haihao Xiang To: ffmpeg-devel@ffmpeg.org Date: Fri, 8 Oct 2021 15:50:48 +0800 Message-Id: <20211008075056.27151-3-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211008075056.27151-1-haihao.xiang@intel.com> References: <20211008075056.27151-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v5 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: Dpy5YKhGW/uj 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 960b030e24..b4a8c04a26 100755 --- a/configure +++ b/configure @@ -6441,7 +6441,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