commit | 846b7af2175ae970e53b41cdf9556a285f5247af | [log] [tgz] |
---|---|---|
author | Christopher Cameron <ccameron@chromium.org> | Wed Mar 20 19:11:19 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Mar 20 19:11:19 2019 |
tree | 0d4a55c734ec5273bcfe18617c1b76f33fabd32d | |
parent | 25c840f4d5ac6bc45301e7a9fac0c3818a9a7344 [diff] |
Ensure content::CanvasCaptureHandler use YUV color space for YUV frames content::CanvasCaptureHandler specifies a gfx::ColorSpace to for the resulting media::VideoFrame based on the input SkImage's SkColorSpace. The input SkImage's SkColorSpace is an RGB space, but the actual data passed to the media::VideoFrame is a YUV space. Add a helper function, GetImageYUVColorSpace, to append the appropriate those of REC709 or REC601). For the moment, specify no color space. gfx: :ColorSpace::MatrixID and gfx::ColorSpace::RangeID (probably either Change-Id: Icc8dee1bf1041b085ebd7c6205b3134548598984 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1531236 Commit-Queue: ccameron <ccameron@chromium.org> Reviewed-by: Emircan Uysaler <emircan@chromium.org> Cr-Commit-Position: refs/heads/master@{#642588}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .