pub unsafe extern "C-unwind" fn JxlEncoderSetICCProfile(
enc: *mut JxlEncoder,
icc_profile: *const u8,
size: usize,
) -> JxlEncoderStatusExpand description
Sets the original color encoding of the image encoded by this encoder as an
ICC color profile. This is an alternative to JxlEncoderSetColorEncoding
and only one of these two must be used. This one sets the color encoding as
ICC binary data, while the other defines it as a JxlColorEncoding. Must
be called after JxlEncoderSetBasicInfo.
§Parameters
enc: encoder object.icc_profile: bytes of the original ICC profilesize: size of theicc_profilebuffer in bytes
§Returns
JxlEncoderStatus::Successif the operation was successful.JxlEncoderStatus::Errorotherwise.