Bug 291431
Summary: | [HDR] Implement reliable way to detect an image hasHDRContent() or not | ||
---|---|---|---|
Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> |
Component: | Images | Assignee: | Said Abou-Hallawa <sabouhallawa> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | sabouhallawa, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=291765 | ||
Bug Depends on: | |||
Bug Blocks: | 282299 |
Said Abou-Hallawa
Relying on the headroom of the ImageSource does not seem to be reliable. Besides Gain mapped images are not decoded as HDR images from the beginning. Instead they are decoded as SDR images until decoding as HDR is requested. Detecting whether an image has a gain map data has to rely on the AuxiliaryData of "{FileContents}" dictionary of the ImageSource.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/149071262>
Said Abou-Hallawa
Pull request: https://github.com/WebKit/WebKit/pull/43958
Said Abou-Hallawa
WebKit fails to detect that the images have HDR contents in https://www.wide-gamut.com/test/image-hdr.
Bug 291765 was filed to track the gain map separately. Let's use this bug for detecting the HDR-ness of the non gain-map images.
EWS
Committed 294390@main (f798905acff7): <https://commits.webkit.org/294390@main>
Reviewed commits have been landed. Closing PR #43958 and removing active labels.