Add color management support to BMP decoder
Categories
(Core :: Graphics: ImageLib, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: aosmond, Assigned: aosmond)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
BMPs can include an ICC profile. The v5 header is described here:
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-bitmapv5header
Fields such as bV5CSType, bV5ProfileData, bV5ProfileSize, etc are all relevant. Currently we just assume BMPs are always sRGB. Presumably this is mostly relevant we were are pasting an image from the clipboard and/or reencoding it into a different format -- being able to get the ICC data would be very useful indeed.
Assignee | ||
Comment 1•5 years ago
|
||
This patch adds support for color management in BMPs added in
BITMAPV4HEADER and BITMAPV5HEADER. While display of BMPs is relatively
rare this comes in handy when interacting with the Windows clipboard.
Assignee | ||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Backed out changeset 388ac5609ceb (bug 1615394) for MinGW build bustage. CLOSED TREE
Log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=291410550&repo=autoland&lineNumber=73463
Push with failures:
https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&revision=388ac5609ceb8597edbce4a07073be160e6dd60e
Backout:
https://hg.mozilla.org/integration/autoland/rev/adda3cc684142559d46ca3c4f427a5bc270cb892
Assignee | ||
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
Description
•