-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,24 @@ | ||
From 68eaad948f07cf30c49f22e5d11aa24a10a07923 Mon Sep 17 00:00:00 2001 | ||
From 54a0d672c2ada9628b12a695ebfc215934180ab4 Mon Sep 17 00:00:00 2001 | ||
From: Sta Zhu <[email protected]> | ||
Date: Wed, 27 Apr 2022 15:21:11 +0800 | ||
Date: Sat, 14 May 2022 12:09:53 +0800 | ||
Subject: [PATCH] Video: Enable HEVC hardware decoding by default | ||
--- | ||
media/base/media_switches.cc | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
media/base/media_switches.cc | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc | ||
index 7cf785f96b3fb..26cd4db5735ae 100644 | ||
index 0c8b45e55dd23..11637073d4fdc 100644 | ||
--- a/media/base/media_switches.cc | ||
+++ b/media/base/media_switches.cc | ||
@@ -789,7 +789,7 @@ const base::Feature kUseAlternateVideoDecoderImplementation{ | ||
|
||
#if BUILDFLAG(ENABLE_PLATFORM_HEVC_DECODING) | ||
const base::Feature kVideoToolboxHEVCDecoding{ | ||
- "VideoToolboxHEVCDecoding", base::FEATURE_DISABLED_BY_DEFAULT}; | ||
+ "VideoToolboxHEVCDecoding", base::FEATURE_ENABLED_BY_DEFAULT}; | ||
#endif // BUILDFLAG(ENABLE_PLATFORM_HEVC_DECODING) | ||
|
||
// Enable binding multiple shared images to a single GpuMemoryBuffer for | ||
@@ -855,7 +855,7 @@ const base::Feature MEDIA_EXPORT kWasapiRawAudioCapture{ | ||
|
||
@@ -279,7 +279,7 @@ const base::Feature kPictureInPicture { | ||
BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)) | ||
// Enables HEVC hardware accelerated decoding. | ||
const base::Feature kD3D11HEVCDecoding{"D3D11HEVCDecoding", | ||
- base::FEATURE_DISABLED_BY_DEFAULT}; | ||
+ base::FEATURE_ENABLED_BY_DEFAULT}; | ||
const base::Feature kPlatformHEVCDecoderSupport{ | ||
- "PlatformHEVCDecoderSupport", base::FEATURE_DISABLED_BY_DEFAULT}; | ||
+ "PlatformHEVCDecoderSupport", base::FEATURE_ENABLED_BY_DEFAULT}; | ||
#endif // BUILDFLAG(ENABLE_PLATFORM_HEVC) && (IS_ANDROID || IS_WIN || IS_CROS | ||
// || IS_MAC || IS_LINUX) | ||
|
||
// Enable VP9 kSVC decoding with HW decoder for webrtc use case on Windows. | ||
const base::Feature kD3D11Vp9kSVCHWDecoding{"D3D11Vp9kSVCHWDecoding", | ||
-- | ||
2.32.0 (Apple Git-132) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
From 7e2522b7627c85168eb4c05d68a4e7edc61af336 Mon Sep 17 00:00:00 2001 | ||
From b35024f4b2ee639ba3116a7a24c2e3d3943d4277 Mon Sep 17 00:00:00 2001 | ||
From: Sta Zhu <[email protected]> | ||
Date: Thu, 5 May 2022 15:55:52 +0800 | ||
Date: Sat, 14 May 2022 12:07:34 +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 | 30 ------------------------------ | ||
1 file changed, 30 deletions(-) | ||
media/base/supported_types.cc | 31 ------------------------------- | ||
1 file changed, 31 deletions(-) | ||
|
||
diff --git a/media/base/supported_types.cc b/media/base/supported_types.cc | ||
index 3953324666dbe..75c439fdd3c6c 100644 | ||
index e6b9a1cd524ec..b0d667690ea4f 100644 | ||
--- a/media/base/supported_types.cc | ||
+++ b/media/base/supported_types.cc | ||
@@ -205,37 +205,7 @@ bool IsHevcProfileSupported(const VideoType& type) { | ||
@@ -203,38 +203,7 @@ bool IsAudioCodecProprietary(AudioCodec codec) { | ||
bool IsHevcProfileSupported(const VideoType& type) { | ||
if (!IsColorSpaceSupported(type.color_space)) | ||
return false; | ||
- | ||
-#if BUILDFLAG(ENABLE_PLATFORM_HEVC) | ||
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) | ||
- return GetSupplementalProfileCache()->IsProfileSupported(type.profile); | ||
-#elif BUILDFLAG(IS_MAC) | ||
- if (__builtin_available(macOS 11.0, *)) | ||
- return base::FeatureList::IsEnabled(kVideoToolboxHEVCDecoding) && | ||
- return base::FeatureList::IsEnabled(kPlatformHEVCDecoderSupport) && | ||
- (type.profile == HEVCPROFILE_MAIN || | ||
- type.profile == HEVCPROFILE_MAIN10 || | ||
- type.profile == HEVCPROFILE_MAIN_STILL_PICTURE || | ||
|
@@ -32,7 +33,7 @@ index 3953324666dbe..75c439fdd3c6c 100644 | |
- // 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(kMediaCodecHEVC); | ||
- return base::FeatureList::IsEnabled(kPlatformHEVCDecoderSupport); | ||
-#else | ||
return true; | ||
-#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) | ||
|