diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2023-01-10 08:59:03 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 08:59:03 -0300 |
commit | 1c7f17f6063d0b747d94a17059b176f3ebdb3e3e (patch) | |
tree | 5da96ff55339ea98501a9e1f7544a243b20e9983 /dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0101-V4L2VDA-Switch-to-use-VDA-instead-of-direct-VideoDec.patch | |
parent | bd8ff87bf68f52b3933c5d1e9f83c610f18a963d (diff) | |
parent | 481b7f0468b3f5928f8f0fc6aa21e4836fb3f3c5 (diff) | |
download | meta-freescale-1c7f17f6063d0b747d94a17059b176f3ebdb3e3e.tar.gz |
Merge pull request #1380 from Freescale/backport-1375-to-kirkstone
[Backport kirkstone] chromium-ozone-wayland: add bbappend and patches as per NXP 5.15.71_2…
Diffstat (limited to 'dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0101-V4L2VDA-Switch-to-use-VDA-instead-of-direct-VideoDec.patch')
-rw-r--r-- | dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0101-V4L2VDA-Switch-to-use-VDA-instead-of-direct-VideoDec.patch | 44 |
1 files changed, 44 insertions, 0 deletions
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 @@ | |||
1 | From a86b5ee086e281f34ab90498aedde523c47f9df0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hou Qi <qi.hou@nxp.com> | ||
3 | Date: Wed, 17 Aug 2022 16:57:11 +0800 | ||
4 | Subject: [PATCH 01/17] V4L2VDA: Switch to use VDA instead of direct | ||
5 | VideoDecoder | ||
6 | |||
7 | commit b7f3a9e8058f593d7d88b6b6cafa71957aa3f1a1 aims to default | ||
8 | enable "direct VideoDecoder" support on Linux. So need to switch | ||
9 | to use VDA path iff: | ||
10 | |||
11 | 1. kVaapiVideoDecodeLinux is enabled (disabled by default); | ||
12 | 2. kUseChromeOSDirectVideoDecoder is disabled (enabled by default); | ||
13 | 3. GL is used; | ||
14 | |||
15 | Upstream-Status: Inappropriate [NXP specific] | ||
16 | --- | ||
17 | media/base/media_switches.cc | 4 ++-- | ||
18 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
19 | |||
20 | diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc | ||
21 | index 36d638adb816e..938bcede9c878 100644 | ||
22 | --- a/media/base/media_switches.cc | ||
23 | +++ b/media/base/media_switches.cc | ||
24 | @@ -487,7 +487,7 @@ const base::Feature kUnifiedAutoplay{"UnifiedAutoplay", | ||
25 | // Enable vaapi video decoding on linux. This is already enabled by default on | ||
26 | // chromeos, but needs an experiment on linux. | ||
27 | const base::Feature kVaapiVideoDecodeLinux{"VaapiVideoDecoder", | ||
28 | - base::FEATURE_DISABLED_BY_DEFAULT}; | ||
29 | + base::FEATURE_ENABLED_BY_DEFAULT}; | ||
30 | |||
31 | const base::Feature kVaapiVideoEncodeLinux{"VaapiVideoEncoder", | ||
32 | base::FEATURE_DISABLED_BY_DEFAULT}; | ||
33 | @@ -735,7 +735,7 @@ const base::Feature kUseRealColorSpaceForAndroidVideo{ | ||
34 | // experiment with direct VideoDecoder path on Linux Desktop. | ||
35 | // TODO(b/159825227): remove when the direct video decoder is fully launched. | ||
36 | const base::Feature kUseChromeOSDirectVideoDecoder{ | ||
37 | - "UseChromeOSDirectVideoDecoder", base::FEATURE_ENABLED_BY_DEFAULT}; | ||
38 | + "UseChromeOSDirectVideoDecoder", base::FEATURE_DISABLED_BY_DEFAULT}; | ||
39 | |||
40 | #if BUILDFLAG(IS_CHROMEOS) | ||
41 | // ChromeOS has one of two VideoDecoder implementations active based on | ||
42 | -- | ||
43 | 2.17.1 | ||
44 | |||