WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
249446
color space of certain videos drawn to canvas does not match source video
https://bugs.webkit.org/show_bug.cgi?id=249446
Summary
color space of certain videos drawn to canvas does not match source video
Cameron McCormack (:heycam)
Reported
2022-12-15 21:15:41 PST
For historical reasons, CoreAnimation will adjust certain video color spaces when displaying the video. If we draw such a video to a canvas, in certain circumstances (if the size of the drawn image is small enough, and we have an accelerated canvas), it will be drawn with an unadjusted color space, resulting in pixel values that don't match the original video. There are pages that like to use canvas to compute a background color from a video to set on the surrounding page, and if we run into this issue, the color will be slightly off.
Attachments
Add attachment
proposed patch, testcase, etc.
Cameron McCormack (:heycam)
Comment 1
2022-12-15 21:16:12 PST
rdar://88804270
Cameron McCormack (:heycam)
Comment 2
2022-12-15 21:19:39 PST
Pull request:
https://github.com/WebKit/WebKit/pull/7731
EWS
Comment 3
2022-12-16 19:03:06 PST
Committed
258030@main
(07a9869a62aa): <
https://commits.webkit.org/258030@main
> Reviewed commits have been landed. Closing PR #7731 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug