Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 378eed42de91e6c07c43a646828899f7e817b66d
https://github.com/WebKit/WebKit/commit/378eed42de91e6c07c43a646828899f7e817b66d
Author: Said Abou-Hallawa <[email protected]>
Date: 2026-05-06 (Wed, 06 May 2026)
Changed paths:
M Source/WebCore/Configurations/AllowedSPI.toml
M Source/WebCore/PAL/pal/spi/cg/ImageIOSPI.h
M Source/WebCore/platform/cocoa/CoreVideoSoftLink.h
M Source/WebCore/platform/graphics/GainMap.h
M Source/WebCore/platform/graphics/ImageDecoder.h
M Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp
M Source/WebCore/platform/graphics/cg/ImageDecoderCG.h
M Source/WebCore/platform/graphics/cocoa/ShareableGainMap.cpp
M Source/WebCore/platform/graphics/cocoa/ShareableGainMap.h
M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
Log Message:
-----------
[HDR] Retrieve the frame gain-map from the CGImageSource when it is avaliable
https://bugs.webkit.org/show_bug.cgi?id=313602
rdar://175806142
Reviewed by Simon Fraser.
Gain-map images come in two flavors: ISOGainMap and HDRGainMap. We are going to
retrieve any of them for the given frame. In addition to the gain-map image, we
are going to get the gain-map metadata and the alternate colorSpace.
This data will enable accelerated applying the gain-map to produce an HDR image
in GPUProcess.
* Source/WebCore/Configurations/AllowedSPI.toml:
* Source/WebCore/PAL/pal/spi/cg/ImageIOSPI.h:
* Source/WebCore/platform/cocoa/CoreVideoSoftLink.h:
(WTF::CFTypeTrait<CVPixelBufferRef>::typeID):
* Source/WebCore/platform/graphics/GainMap.h:
* Source/WebCore/platform/graphics/ImageDecoder.h:
(WebCore::ImageDecoder::frameGainMapAtIndex):
* Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp:
(WebCore::ImageDecoderCG::frameGainMapAtIndex):
* Source/WebCore/platform/graphics/cg/ImageDecoderCG.h:
* Source/WebCore/platform/graphics/cocoa/ShareableGainMap.cpp:
(WebCore::ShareableGainMap::create):
(WebCore::ShareableGainMap::ShareableGainMap):
(WebCore::ShareableGainMap::applyGainMapToBaseImage const):
* Source/WebCore/platform/graphics/cocoa/ShareableGainMap.h:
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
Canonical link: https://commits.webkit.org/312736@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications