JxlGainMapGetBundleSize

Function JxlGainMapGetBundleSize 

Source
pub unsafe extern "C-unwind" fn JxlGainMapGetBundleSize(
    map_bundle: *const JxlGainMapBundle,
    bundle_size: *mut usize,
) -> JxlBool
Expand 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 the JxlGainMapBundle containing all necessary data to compute the size.
  • bundle_size: A mutable reference to a usize where the size in bytes required to serialize the bundle will be stored.

§Returns

  • A boolean indicating whether setting the size was successful.