Function libjxl_sys::JxlEncoderSetICCProfile[][src]

pub unsafe extern "C" fn JxlEncoderSetICCProfile(
    enc: *mut JxlEncoder,
    icc_profile: *const u8,
    size: usize
) -> JxlEncoderStatus

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 @ref JxlColorEncoding.

@param enc encoder object. @param icc_profile bytes of the original ICC profile @param size size of the icc_profile buffer in bytes @return JXL_ENC_SUCCESS if the operation was successful, JXL_ENC_ERROR or JXL_ENC_NOT_SUPPORTED otherwise