pub unsafe extern "C-unwind" fn JxlGainMapGetBundleSize(
map_bundle: *const JxlGainMapBundle,
bundle_size: *mut usize,
) -> JxlBoolExpand description
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.
§Parameters
map_bundle: A reference to theJxlGainMapBundlecontaining all necessary data to compute the size.bundle_size: A mutable reference to ausizewhere the size in bytes required to serialize the bundle will be stored.
§Returns
- A boolean indicating whether setting the size was successful.