From patchwork Thu Apr 28 09:23:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 35456 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b9e:b0:7d:cfb5:dc7c with SMTP id b30csp3473329pzh; Thu, 28 Apr 2022 02:27:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaVyX2e8I16GS3Usu21/d31gamvdpgimGCTkjZW7s0BnpI1Ww3QGAkPZRLfLlSuijhJSjh X-Received: by 2002:a17:907:6294:b0:6e1:ea4:74a3 with SMTP id nd20-20020a170907629400b006e10ea474a3mr30365926ejc.168.1651138021835; Thu, 28 Apr 2022 02:27:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651138021; cv=none; d=google.com; s=arc-20160816; b=0WAqywDqxV+dJD0ph4v+K0hjZEdjNQ/g8IX8FPy6IhITsBmHao5Wqm2/zmyjom1Frc wggV1r/udEKl9FQXnTp6T5RhAm/s7dC2YkFsrhMMb5E+4stvEXO5rZhkeBRndN4s5Zax 66bkubV/4ws/FnHlLFF0e8lz6nzeXM2o7NSAW4whp0GG4s4nQXlPts70uO7cbS7oVNnf /cHifKnyTEwMlMQ7Hg8wSdQnziJ1xXwFm/dH4pN2xVRQQa9gwXeAi/Epfw0MmaczwE+G 8kM2Tj2EJxEeOfjBHNHnZxZDWNdvnKhujqtyyepI/TnbYAiDLttemDWkH61OIXsReE8F uz5Q== 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=LeT7n8M2kiHsudy6Doh9dWUPW6yK8dB/zvlnuKfVm4Q=; b=rrxBeGw+SQ6ZEoAVixSwsfVQJxSDQLuIYizyGgQrCWQoU4WhDd5+pfgreBH9dYeNkl OOgU2a0oZJJ7wyeY5SKb0OFzXru7tS01pzkh36vlTrCYAQCHf+dHWtPKGSkrvoSc2pqF H/k1b1u9tLT5DbnAOq4lgZoSwQhZ+UaXV04Am+3osi93ArE8aCntvugg4gahd6mA0yKc /34RgD2QHrQxRcMXE2YyH0uNzhXc6gWsuvGMCmifr3CN/Zzu4oiP0o4+TSVVAEjSbtjb y7UNwnHwrz/vcYIc9lsGb3mAk1cB8/tfYXcDHcDI+D8ea9QR2rFveSQoObpjth9Y+vos w8gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=myQihF1i; 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 cz24-20020a0564021cb800b00425fc94628csi3212156edb.592.2022.04.28.02.27.01; Thu, 28 Apr 2022 02:27:01 -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=myQihF1i; 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 95A2D68B393; Thu, 28 Apr 2022 12:26:43 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5A6AA68B37A for ; Thu, 28 Apr 2022 12:26:35 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651138000; x=1682674000; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=t6VZJGegjBiogEDuFlYir2RtnF64T2Og4q8k4G6G0Oo=; b=myQihF1igh+kFN5AmUt0Lqc95atoCuMWa8xs9xTazE/u7nHOKXqSlfE7 I6CDEJeRMGWiwJPtUqS6gW05B/EU2lQakRBWElt1ea4dB5GJAGwKSRD9u t1NUX2X+fvpVnh3T9B1ZYUVFCC+o55/lf4a45v3jOqwcaUSDJDv7ThMMD U3QWxMfZzHDfB++5UewoWR3eXHZjpafkxJoDPaLRyewKdJvT+7hym7Y8T 7eB3Y524HQ0WMD8OiZhifEzhh162Bv3N+9EFhEMeRzweuZxaOD5xMF6sc 3HBm3ebeOOpeMjfcoThxmMly9nz1/Tgb4ZVobhuEO2hUHHwKgXTdTfbhB Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10330"; a="266381379" X-IronPort-AV: E=Sophos;i="5.90,295,1643702400"; d="scan'208";a="266381379" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2022 02:26:31 -0700 X-IronPort-AV: E=Sophos;i="5.90,295,1643702400"; d="scan'208";a="581175980" Received: from zhao12-mobl.ccr.corp.intel.com (HELO hxiang-desk.ccr.corp.intel.com) ([10.254.214.89]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2022 02:26:29 -0700 From: Haihao Xiang To: ffmpeg-devel@ffmpeg.org Date: Thu, 28 Apr 2022 17:23:19 +0800 Message-Id: <20220428092327.16558-3-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220428092327.16558-1-haihao.xiang@intel.com> References: <20220428092327.16558-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v08 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: PN7pW2/LGJsP 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 81e7d43d22..939c6e86f9 100755 --- a/configure +++ b/configure @@ -6571,7 +6571,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