From patchwork Fri Mar 11 08:16:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 34672 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6838:3486:0:0:0:0 with SMTP id ek6csp1484581nkb; Fri, 11 Mar 2022 00:17:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+SCjtR2dBioUTD3Tb0fvmZ2iaP/KLvlqE3vpzA0QZzq1QqyDfNigaMRGIU6UqF5i0jG5z X-Received: by 2002:a17:906:4ccd:b0:6b7:75ca:3eac with SMTP id q13-20020a1709064ccd00b006b775ca3eacmr7368251ejt.167.1646986642069; Fri, 11 Mar 2022 00:17:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646986642; cv=none; d=google.com; s=arc-20160816; b=iZENNug8zlayHW6LQOxi0OFIoIL6UomeCt/41AkBGv2cPaEclzLHXW9MA+KSPW6uDr RQhkEDzMm+sxsrAOgvQHLEsdUczvxquuu6FFR/+Equ+HdbKMWIE/Z7/xBNxcxJPR9SMD 2UZ72lLPdKII40/NBH47wV0XyyCyBKgdtwu6Lcp5unh9QCx0CnGRjhIe144iytCcd3dp O3Fp0Ghv1avW7qL2hcyMagWf/4Pz/6fLs9mZNYs45lhaQuIYcsdeBMChab/gyk57ERPv 9Gw7aOlLTv6giBb6rZBsc4q3YXVuQjZPepaz7lUNcGjCg3fwyR0fVL3zV3iZ96d7NlyL 0ZDQ== 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=3C9MG2QqEigbq3xPlFeiR9DavvBlacJ3inJgW404Fq8=; b=XRlVV5b1XGIyIHKljJ21SLz1dx9/kGhd8o7Rm6O0VH9hZWzzGAIKOGtY/4yKuvzfDh dGMN3upmjKJXl9MiUaQVG0bRv62c55qy5CGuazVNMXtmO5Ilw4E0jzMT20233sHDN7rk 1n5k0al3bvs2RiTV2jVPLj3R4B4/rHPiP2Qt9fOL4TWTlAc96betocGcugLe3e3j/2ef nIUNEpX8EJ3Z7wGEJFfpoLUwY+wKOpLvQZEpmf/A9PnukGgIGeRPck11VYOdHHWgH/79 +AN39pLC95pi8tF19pCAnlmMRJ0RRfBI8sM6tuVIQCrqQIQRvWTsAIg6+7CUgDmRCJAF Ciag== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=CIRMXLVF; 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 k3-20020a1709062a4300b006ae96f7b834si4190046eje.264.2022.03.11.00.17.21; Fri, 11 Mar 2022 00:17:22 -0800 (PST) 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=CIRMXLVF; 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 E4A3768B1F1; Fri, 11 Mar 2022 10:17:00 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E514368B18A for ; Fri, 11 Mar 2022 10:16:53 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646986619; x=1678522619; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=tu5B+bujrf+1tXcXnkUsMoJHYccxob5RL6I196M3iMA=; b=CIRMXLVFKroIeQ2p9Ze2g9ztO2Alk24muap+8fq6GI7dOt3v7JxRFt6e Xq/oDDJWCsv0RICpJTcFdgHKPgHGO8UCARvIxC3Gc7Un7TtyX3olYQzKa zoYq/9x70qdzi80Y4iOV3LFdRjVCf3W/mE+4CC58bX0dGQIQoGeM2dKu+ ToaVgOq/qmuMFTJpt5wM8UjL4qaAoWz3hmfkGcRmUbWpy4/sqSqAQEzq0 1NqW16Uc/J5lKy8coS/V90xYm7umYt995kiINXaY4mSzfROH8TSgmECBM EDRpGwVD3xpKhCpMzsDHMJvvqNfTxl+pqqtJ1RjObJWT/ldYhAy37doZL A==; X-IronPort-AV: E=McAfee;i="6200,9189,10282"; a="237700121" X-IronPort-AV: E=Sophos;i="5.90,173,1643702400"; d="scan'208";a="237700121" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2022 00:16:50 -0800 X-IronPort-AV: E=Sophos;i="5.90,173,1643702400"; d="scan'208";a="688997015" Received: from xhh-dg164.sh.intel.com ([10.239.159.54]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2022 00:16:49 -0800 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Fri, 11 Mar 2022 16:16:22 +0800 Message-Id: <20220311081630.21927-3-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220311081630.21927-1-haihao.xiang@intel.com> References: <20220311081630.21927-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v7 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: Wa7u+u1LB6bT 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 f3c60d9e40..31d4f4928b 100755 --- a/configure +++ b/configure @@ -6554,7 +6554,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