From 481b7f0468b3f5928f8f0fc6aa21e4836fb3f3c5 Mon Sep 17 00:00:00 2001 From: Chris Dimich Date: Mon, 9 Jan 2023 10:52:50 -0800 Subject: chromium-ozone-wayland: add bbappend and patches as per NXP 5.15.71_2.2.0 rel Changes include: - support on i.MX 8 series platform. - 8MM/8MP/8MQ support h264/hevc/vp8/vp9 hardware decoding. - 8QM/8QXP support h264/hevc/vp8 hardware decoding. - support seek, playrate change and resolution change. - support video acceleration for online media platform such as Youtube, bilibili. Signed-off-by: Chris Dimich (cherry picked from commit 23bdb51b7858db363e56f7748f5523d44f78ac98) --- ...tch-to-use-VDA-instead-of-direct-VideoDec.patch | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0101-V4L2VDA-Switch-to-use-VDA-instead-of-direct-VideoDec.patch (limited to 'dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0101-V4L2VDA-Switch-to-use-VDA-instead-of-direct-VideoDec.patch') diff --git a/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0101-V4L2VDA-Switch-to-use-VDA-instead-of-direct-VideoDec.patch b/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0101-V4L2VDA-Switch-to-use-VDA-instead-of-direct-VideoDec.patch new file mode 100644 index 00000000..24ae4dd3 --- /dev/null +++ b/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0101-V4L2VDA-Switch-to-use-VDA-instead-of-direct-VideoDec.patch @@ -0,0 +1,44 @@ +From a86b5ee086e281f34ab90498aedde523c47f9df0 Mon Sep 17 00:00:00 2001 +From: Hou Qi +Date: Wed, 17 Aug 2022 16:57:11 +0800 +Subject: [PATCH 01/17] V4L2VDA: Switch to use VDA instead of direct + VideoDecoder + +commit b7f3a9e8058f593d7d88b6b6cafa71957aa3f1a1 aims to default +enable "direct VideoDecoder" support on Linux. So need to switch +to use VDA path iff: + +1. kVaapiVideoDecodeLinux is enabled (disabled by default); +2. kUseChromeOSDirectVideoDecoder is disabled (enabled by default); +3. GL is used; + +Upstream-Status: Inappropriate [NXP specific] +--- + media/base/media_switches.cc | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc +index 36d638adb816e..938bcede9c878 100644 +--- a/media/base/media_switches.cc ++++ b/media/base/media_switches.cc +@@ -487,7 +487,7 @@ const base::Feature kUnifiedAutoplay{"UnifiedAutoplay", + // Enable vaapi video decoding on linux. This is already enabled by default on + // chromeos, but needs an experiment on linux. + const base::Feature kVaapiVideoDecodeLinux{"VaapiVideoDecoder", +- base::FEATURE_DISABLED_BY_DEFAULT}; ++ base::FEATURE_ENABLED_BY_DEFAULT}; + + const base::Feature kVaapiVideoEncodeLinux{"VaapiVideoEncoder", + base::FEATURE_DISABLED_BY_DEFAULT}; +@@ -735,7 +735,7 @@ const base::Feature kUseRealColorSpaceForAndroidVideo{ + // experiment with direct VideoDecoder path on Linux Desktop. + // TODO(b/159825227): remove when the direct video decoder is fully launched. + const base::Feature kUseChromeOSDirectVideoDecoder{ +- "UseChromeOSDirectVideoDecoder", base::FEATURE_ENABLED_BY_DEFAULT}; ++ "UseChromeOSDirectVideoDecoder", base::FEATURE_DISABLED_BY_DEFAULT}; + + #if BUILDFLAG(IS_CHROMEOS) + // ChromeOS has one of two VideoDecoder implementations active based on +-- +2.17.1 + -- cgit v1.2.3-54-g00ecf