forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CDP: Make colors in Page.screencast API accurate
When capturing frames using the Page.screencast CDP API, the colors are a little off. It's hard to see with the naked eye, but using a color picker, you can see a difference between colors in those frames and colors in similar images taken with, e.g., the snip tool on windows. The reason for this is that the DevTools Video Consumer used by CDP does not specify any pixel format or color space when creating its underlying FrameSinkVideoConsumer, and therefore the default values are used: PIXEL_FORMAT_I420, COLOR_SPACE_HD_REC709 With this fix, we make it possible for the Page.screencast API to specify the ARGB pixel format and REC709 color space, and this seems to produce images with accurate colors. Bug: 1141314 Change-Id: If06f5419c1feaebb3134a5d422769d8123f5518b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2593354 Commit-Queue: Patrick Brosset <patrick.brosset@microsoft.com> Reviewed-by: Dale Curtis <dalecurtis@chromium.org> Reviewed-by: Andrey Kosyakov <caseq@chromium.org> Cr-Commit-Position: refs/heads/master@{#838137}
- Loading branch information
1 parent
9a36638
commit 123ef88
Showing
4 changed files
with
36 additions
and
3 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
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