JxlEncoderSetColorEncoding

Function JxlEncoderSetColorEncoding 

Source
pub unsafe extern "C-unwind" fn JxlEncoderSetColorEncoding(
    enc: *mut JxlEncoder,
    color: *const JxlColorEncoding,
) -> JxlEncoderStatus
Expand description

Sets the original color encoding of the image encoded by this encoder. This is an alternative to JxlEncoderSetICCProfile and only one of these two must be used. This one sets the color encoding as a JxlColorEncoding, while the other sets it as ICC binary data. Must be called after JxlEncoderSetBasicInfo.

§Parameters

  • enc: encoder object.
  • color: color encoding. Object owned by the caller and its contents are copied internally.

§Returns