pub unsafe extern "C-unwind" fn JxlEncoderSetExtraChannelDistance(
frame_settings: *mut JxlEncoderFrameSettings,
index: usize,
distance: f32,
) -> JxlEncoderStatusExpand description
Sets the distance level for lossy compression of extra channels.
The distance is as in JxlEncoderSetFrameDistance (lower = higher
quality). If not set, or if set to the special value -1, the distance that
was set with JxlEncoderSetFrameDistance will be used.
§Parameters
frame_settings: set of options and metadata for this frame. Also includes reference to the encoder object.index: index of the extra channel to set a distance value for.distance: the distance value to set.
§Returns
JxlEncoderStatus::Successif the operation was successful,JxlEncoderStatus::Errorotherwise.