Module gain_map

Module gain_map 

Source
Expand description

Utility functions to manipulate jhgm (gain map) boxes.

Structs§

JxlGainMapBundle
Gain map bundle

Functions§

JxlGainMapGetBundleSize
Calculates the total size required to serialize the gain map bundle into a binary buffer. This function accounts for all the necessary space to serialize fields such as gain map metadata, color encoding, compressed ICC profile data, and the gain map itself.
JxlGainMapReadBundle
Deserializes a gain map bundle from a provided buffer and populates a JxlGainMapBundle structure with the data extracted. This function assumes the buffer contains a valid serialized gain map bundle. After successful execution, the JxlGainMapBundle structure will reference three different sections within the buffer:
JxlGainMapWriteBundle
Serializes the gain map bundle into a preallocated buffer. The function ensures that all parts of the bundle such as metadata, color encoding, compressed ICC profile, and the gain map are correctly encoded into the buffer. First call JxlGainMapGetBundleSize to get the size needed for the buffer.