chromium: add 2 fixes for v4l2 VDA support
PATCH 1/1 chromium: add 2 fixes for v4l2 VDA support
The first patch allows GpuVideoDecoder to actually get created. Without it chrome://gpu report hardware video acceleration is enabled, but actually ffmpegVideoDecoder is used for the decode.
The second adds NV12 & YVU420 formats for all ARM platforms, otherwise V4L2 VDA on dragonboard will error with NV12 buffers.
Signed-off-by Peter Griffin <[email protected]>
--- ...2_device-allow-NV12-YVU420-on-all-ARM-pla.patch | 26 +++++++++++ ...lt_decoder_factory-create-GpuVideoDecoder.patch | 51 ++++++++++++++++++++++ .../chromium-ozone-wayland_72.0.3626.121.bb | 2 + 3 files changed, 79 insertions(+) create mode 100644 recipes-browser/chromium/chromium-ozone-wayland/0001-generic_v4l2_device-allow-NV12-YVU420-on-all-ARM-pla.patch create mode 100644 recipes-browser/chromium/chromium-ozone-wayland/0001-media-default_decoder_factory-create-GpuVideoDecoder.patch
recipes-browser/chromium/chromium-ozone-wayland/0001-generic_v4l2_device-allow-NV12-YVU420-on-all-ARM-pla.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 676525a5cc0e5cc38ef59306413365811ee051ce Mon Sep 17 00:00:00 2001 +From: Peter Griffin <[email protected]> +Date: Fri, 15 Mar 2019 22:49:11 +0100 +Subject: [PATCH] generic_v4l2_device: allow NV12 & YVU420 on all ARM platforms + +Signed-off-by: Peter Griffin <[email protected]> +--- + media/gpu/v4l2/generic_v4l2_device.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/media/gpu/v4l2/generic_v4l2_device.cc b/media/gpu/v4l2/generic_v4l2_device.cc +index a1294ae0b..2b587ca 100644 +--- a/media/gpu/v4l2/generic_v4l2_device.cc ++++ b/media/gpu/v4l2/generic_v4l2_device.cc +@@ -200,7 +200,7 @@ std::vector<base::ScopedFD> GenericV4L2Device::GetDmabufsForV4L2Buffer( + bool GenericV4L2Device::CanCreateEGLImageFrom(uint32_t v4l2_pixfmt) { + static uint32_t kEGLImageDrmFmtsSupported[] = { + DRM_FORMAT_ARGB8888, +-#if defined(ARCH_CPU_ARMEL) ++#if defined(ARCH_CPU_ARM_FAMILY) + DRM_FORMAT_NV12, + DRM_FORMAT_YVU420, + #endif +-- +2.7.4 +
recipes-browser/chromium/chromium-ozone-wayland/0001-media-default_decoder_factory-create-GpuVideoDecoder.patch new file +51 -0
51 lines not on this page · raw message
recipes-browser/chromium/chromium-ozone-wayland_72.0.3626.121.bb +2 -0
@@ -38,6 +38,8 @@ SRC_URI += " \ file://0033-ozone-wayland-Fix-software-rendering.patch \ file://0034-ozone-wayland-Return-primary-display-on-null-window.patch \ file://0035-ozone-Implement-single-window-tab-dragging.patch \ + file://0001-generic_v4l2_device-allow-NV12-YVU420-on-all-ARM-pla.patch \ + file://0001-media-default_decoder_factory-create-GpuVideoDecoder.patch \ " # Chromium can use v4l2 device for hardware accelerated video decoding. Make sure that
Signature · 1 line
2.7.4