JxlDecoderGetColorAsICCProfile

Function JxlDecoderGetColorAsICCProfile 

Source
pub unsafe extern "C-unwind" fn JxlDecoderGetColorAsICCProfile(
    dec: *const JxlDecoder,
    target: JxlColorProfileTarget,
    icc_profile: *mut u8,
    size: usize,
) -> JxlDecoderStatus
Expand description

Outputs ICC profile if available. The profile is only available if JxlDecoderGetICCProfileSize returns success. The output buffer must have at least as many bytes as given by JxlDecoderGetICCProfileSize.

§Parameters

  • dec: decoder object
  • target: whether to get the original color profile from the metadata or the color profile of the decoded pixels.
  • icc_profile: buffer to copy the ICC profile into
  • size: size of the icc_profile buffer in bytes

§Returns