Add fix for 8-bit H264 HDR content

8-bit H264 HDR content is not rendered correctly in Chrome on Windows.
This is a temporary fix that converts the 8-bit buffer to a 10-bit
buffer if the color space indicates that the buffer should be
rendered as HDR.

Bug: webrtc:10575
Change-Id: I106612ec489c6371fa774424a4cf07d9bad40fc3
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/134040
Commit-Queue: Johannes Kron <kron@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27766}
This commit is contained in:
Johannes Kron
2019-04-25 11:51:55 +02:00
committed by Commit Bot
parent 4b1afbe60a
commit 042559fb92
3 changed files with 57 additions and 37 deletions

View File

@ -281,6 +281,7 @@ rtc_static_library("webrtc_h264") {
":video_codec_interface",
":video_coding_utility",
"../../api/video:video_frame",
"../../api/video:video_frame_i010",
"../../api/video:video_frame_i420",
"../../api/video_codecs:video_codecs_api",
"../../media:rtc_h264_profile_id",
@ -288,6 +289,7 @@ rtc_static_library("webrtc_h264") {
"../../rtc_base",
"../../rtc_base:checks",
"../../rtc_base/system:rtc_export",
"../../system_wrappers:field_trial",
"../../system_wrappers:metrics",
"//third_party/abseil-cpp/absl/memory",
"//third_party/abseil-cpp/absl/strings",