From: Thomas Preston Date: Wed, 20 Nov 2019 17:39:27 +0000 Subject: [Buildroot] [RFC PATCH v3 13/30] package/libcef: Add option to enable VA-API HW acceleration. In-Reply-To: <20191120173944.130142-1-thomas.preston@codethink.co.uk> References: <20191120173944.130142-1-thomas.preston@codethink.co.uk> Message-ID: <20191120173944.130142-14-thomas.preston@codethink.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net From: Michael Drake 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 d904c79e52..f38bf1967c 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 fb40d0e40a..784377a71d 100644 --- a/package/libcef/libcef.mk +++ b/package/libcef/libcef.mk @@ -208,6 +208,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 -- 2.20.1