forked from StaZhu/enable-chromium-hevc-hardware-decoding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
remove-main-main10-profile-limit.patch
46 lines (42 loc) · 1.85 KB
/
remove-main-main10-profile-limit.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From f8a2a66134bb127bfde54db3e0575b7636e93441 Mon Sep 17 00:00:00 2001
From: Sta Zhu <[email protected]>
Date: Wed, 31 Aug 2022 14:13:54 +0800
Subject: [PATCH] Video: Remove Main/Main10 profile limit
This will consider all HEVC profile as to supported, and
help you be able to play video's like HEVC Rext, SCC etc...
---
media/base/supported_types.cc | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/media/base/supported_types.cc b/media/base/supported_types.cc
index 287af88e744a0..cc28d84b262fe 100644
--- a/media/base/supported_types.cc
+++ b/media/base/supported_types.cc
@@ -205,27 +205,7 @@ bool IsHevcProfileSupported(const VideoType& type) {
return false;
#if BUILDFLAG(ENABLE_PLATFORM_HEVC)
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || \
- BUILDFLAG(IS_MAC)
-#if BUILDFLAG(IS_CHROMEOS_LACROS)
- // TODO(b/171813538): For Lacros, the supplemental profile cache will be
- // asking lacros-gpu, but we will be doing decoding in ash-gpu. Until the
- // codec detection is plumbed through to ash-gpu we can do this extra check
- // for HEVC support.
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kLacrosEnablePlatformHevc)) {
- return true;
- }
-#endif // BUILDFLAG(IS_CHROMEOS_LACROS)
- return GetSupplementalProfileCache()->IsProfileSupported(type.profile);
-#elif BUILDFLAG(IS_ANDROID)
- // Technically android 5.0 mandates support for only HEVC main profile,
- // however some platforms (like chromecast) have had more profiles supported
- // so we'll see what happens if we just enable them all.
- return base::FeatureList::IsEnabled(kPlatformHEVCDecoderSupport);
-#else
return true;
-#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
#else
return false;
#endif // BUILDFLAG(ENABLE_PLATFORM_HEVC)
--
2.32.1 (Apple Git-133)