Add a SurfaceFilter for color space conversion
Categories
(Core :: Graphics: ImageLib, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: seth, Assigned: aosmond)
References
Details
(Whiteboard: gfx-noted)
Attachments
(4 files, 5 obsolete files)
Reporter | ||
Updated•9 years ago
|
Updated•8 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
We actually do color management on the native sized image. It would be good if we write such a filter, and place it to the end of the filter chain, so that we color manage fewer pixels. I've put together patches which does this, as well as brings nsJPEGDecoder into the surface pipe fold. Theoretically this brings us closer to color managing everything on non-mobile, if it really does lower the decode time. I still need to assess the performance delta (especially since we have seen regressions with SurfacePipe before with the GIF decoder). My current work probably does regress grayscale JPEGs (surface pipe works with BGRAm not grayscale), but I'm not convinced I should care about them too much relative to ones with color.
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Comment 6•6 years ago
|
||
GIF images should not apply CMS transforms if disabled by caller via
SurfaceFlags::NO_COLORSPACE_CONVERSION. WebP images should reject any
non-RGB ICC profiles, not just grayscale profiles.
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Whoops, I inverted nsPNGDecoder's mPipeUseTransform.
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=470fe9fae2045a368e5ae217c1095fbe164de90f
Assignee | ||
Comment 9•6 years ago
|
||
I made some small changes to part 4 to use the color management filter even for interlaced PNG images. This seems to fix most/all of the failing reftests -- the interlacing filter is a somewhat complicated filter, so it would be best to color manage afterwards.
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=06a5fc5bf49032345539d846f31292f0b3181895
Assignee | ||
Comment 10•6 years ago
|
||
Assignee | ||
Comment 11•6 years ago
|
||
Assignee | ||
Comment 12•6 years ago
|
||
Assignee | ||
Comment 13•6 years ago
|
||
GIF images should not apply CMS transforms if disabled by caller via
SurfaceFlags::NO_COLORSPACE_CONVERSION. WebP images should reject any
non-RGB ICC profiles, not just grayscale profiles.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 14•6 years ago
|
||
prelanding try since it has been a while: https://treeherder.mozilla.org/#/jobs?repo=try&revision=dfae2c0d43bb59e1a87f261f86f0a5954c54720c
Comment 15•6 years ago
|
||
Comment 16•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/524f61bca438
https://hg.mozilla.org/mozilla-central/rev/3a7b422645b7
https://hg.mozilla.org/mozilla-central/rev/85eb83a6f313
https://hg.mozilla.org/mozilla-central/rev/aed0c5da0ce0
Description
•