-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1703402 - Clamp RGB components after YUV conversion for SWGL blen…
…ding. r=jrmuizel This expands on an earlier fix from bug 1698009. It turns out we can occasionally find YUV values which can still produce negative RGB values if only Y is clamped. The final solution to this is just to clamp the output RGB values rather than input YUV values. Since this is only used when we fall off the SWGL fast-paths (which properly handle this clamping already), the performance impact of the extra clamping should be negligible. Differential Revision: https://phabricator.services.mozilla.com/D111032 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/577145ad8319474cb2d34f4048364df1efe5e804
- Loading branch information
Showing
3 changed files
with
36 additions
and
6 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