Expand description
Utility functions to manipulate jhgm (gain map) boxes.
Structs§
- JxlGain
MapBundle - Gain map bundle
Functions§
- JxlGain
MapGet ⚠Bundle Size - 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.
- JxlGain
MapRead ⚠Bundle - Deserializes a gain map bundle from a provided buffer and populates a
JxlGainMapBundlestructure with the data extracted. This function assumes the buffer contains a valid serialized gain map bundle. After successful execution, theJxlGainMapBundlestructure will reference three different sections within the buffer: - JxlGain
MapWrite ⚠Bundle - 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
JxlGainMapGetBundleSizeto get the size needed for the buffer.