pub unsafe extern "C-unwind" fn JxlDecoderGetColorAsICCProfile(
dec: *const JxlDecoder,
target: JxlColorProfileTarget,
icc_profile: *mut u8,
size: usize,
) -> JxlDecoderStatusExpand 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 objecttarget: 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 intosize: size of theicc_profilebuffer in bytes
§Returns
JxlDecoderStatus::Success: if the profile was successfully returnedJxlDecoderStatus::NeedMoreInput: if not yet availableJxlDecoderStatus::Error: if the profile doesn’t exist or the output size is not large enough.