pub unsafe extern "C-unwind" fn JxlGainMapWriteBundle(
map_bundle: *const JxlGainMapBundle,
output_buffer: *mut u8,
output_buffer_size: usize,
bytes_written: *mut usize,
) -> JxlBoolExpand description
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.
§Parameters
map_bundle: A pointer to theJxlGainMapBundleto serialize.output_buffer: A pointer to the buffer where the serialized data will be written.output_buffer_size: The size of the output buffer in bytes. Must be large enough to hold the entire serialized data.bytes_written: A mutable reference to ausizewhere the number of bytes written to the output buffer will be stored.
§Returns
- A boolean indicating whether writing the bundle was successful.