CoreImage

Generated on 9/2/2024

1 search

The session titled "Use HDR for dynamic image experiences in your app" from WWDC 2024 discusses various aspects of working with HDR images using CoreImage. It covers topics such as reading, editing, displaying, and saving HDR images. The session introduces new APIs and strategies for handling adaptive HDR files, including the use of gain maps and content headroom properties.

Key points include:

  • Reading HDR Images: The session explains how to load HDR images using the expand HDR option to support the Apple gain map image format. This allows images to be loaded as either SDR or HDR for maximum fidelity.

  • Editing Strategies: Different strategies for editing HDR images are discussed, such as using the tonemap headroom filter and applying gain maps to combine SDR and HDR images.

  • Displaying HDR Images: The session provides guidance on displaying HDR images using CoreImage and Metal, including automatic tone mapping in UI frameworks like SwiftUI and UIKit.

  • Saving HDR Images: Recommendations for saving HDR images are provided, including using ten-bit HEIF files with a PQ color space for HDR images and adaptive HDR files for compatibility.

For more detailed information on displaying HDR images, you can refer to the chapter on Display tone mapping (26:48) in the session.