JxlEncoderSetICCProfile

Function JxlEncoderSetICCProfile 

Source
pub unsafe extern "C-unwind" fn JxlEncoderSetICCProfile(
    enc: *mut JxlEncoder,
    icc_profile: *const u8,
    size: usize,
) -> JxlEncoderStatus
Expand 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 profile
  • size: size of the icc_profile buffer in bytes

§Returns