From patchwork Thu Dec 5 17:14:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Drake X-Patchwork-Id: 1204747 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=codethink.co.uk Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47TNH247Vfz9sP3 for ; Fri, 6 Dec 2019 04:38:22 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D20EA25E8F; Thu, 5 Dec 2019 17:38:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gaNXj6Avm-T8; Thu, 5 Dec 2019 17:38:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id DD70225CF1; Thu, 5 Dec 2019 17:38:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 8D6AF1BF5AA for ; Thu, 5 Dec 2019 17:38:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5503725C83 for ; Thu, 5 Dec 2019 17:38:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j3IsVf9xsrwG for ; Thu, 5 Dec 2019 17:38:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from imap2.colo.codethink.co.uk (imap2.colo.codethink.co.uk [78.40.148.184]) by silver.osuosl.org (Postfix) with ESMTPS id 331DF25F62 for ; Thu, 5 Dec 2019 17:37:57 +0000 (UTC) Received: from [167.98.27.226] (helo=ts007-build.ts007.codethink.co.uk) by imap2.colo.codethink.co.uk with esmtpsa (Exim 4.92 #3 (Debian)) id 1icuiv-0007Yj-NP; Thu, 05 Dec 2019 17:15:29 +0000 From: Michael Drake To: buildroot@busybox.net Date: Thu, 5 Dec 2019 17:14:59 +0000 Message-Id: <20191205171517.96639-13-michael.drake@codethink.co.uk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191205171517.96639-1-michael.drake@codethink.co.uk> References: <20191205171517.96639-1-michael.drake@codethink.co.uk> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v1 12/30] package/libcef: Add option to enable VA-API HW acceleration. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jon duSaint , Michael Drake , Patrick Glaser , Thomas Preston , Enis Lavery Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Cc: Patrick Glaser Cc: Jon duSaint Cc: Enis Lavery Signed-off-by: Michael Drake Signed-off-by: Thomas Preston --- package/libcef/Config.in | 7 +++++++ package/libcef/libcef.mk | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/package/libcef/Config.in b/package/libcef/Config.in index e74ed961f6..b4f76e1dbe 100644 --- a/package/libcef/Config.in +++ b/package/libcef/Config.in @@ -94,4 +94,11 @@ config BR2_PACKAGE_LIBCEF_CEFSIMPLE help Enables libcef example application cefsimple. +config BR2_PACKAGE_LIBCEF_VAAPI + bool "Enable va-api support in libcef." + depends on BR2_x86_64 + select BR2_PACKAGE_LIBVA + help + Enables VA-API-based hardware acceleration. + endif diff --git a/package/libcef/libcef.mk b/package/libcef/libcef.mk index c555f0d85b..bc616b6923 100644 --- a/package/libcef/libcef.mk +++ b/package/libcef/libcef.mk @@ -214,6 +214,13 @@ else LIBCEF_GN_DEFINES += use_pulseaudio=false endif +ifeq ($(BR2_PACKAGE_LIBCEF_VAAPI),y) +LIBCEF_GN_DEFINES += use_vaapi=true +LIBCEF_DEPENDENCIES += libva +else +LIBCEF_GN_DEFINES += use_vaapi=false +endif + ifeq ($(BR2_PACKAGE_LIBCEF_CEFSIMPLE),y) LIBCEF_BUILD_TARGETS += cefsimple define LIBCEF_INSTALL_CEFSIMPLE