[−][src]Function jpegxl_sys::JxlEncoderOptionsSetDistance
pub unsafe extern "C" fn JxlEncoderOptionsSetDistance(
options: *mut JxlEncoderOptions,
distance: f32
) -> JxlEncoderStatus
Sets the distance level for lossy compression: target max butteraugli distance, lower = higher quality. Range: 0 .. 15. 0.0 = mathematically lossless (however, use JxlEncoderOptionsSetLossless to use true lossless). 1.0 = visually lossless. Recommended range: 0.5 .. 3.0. Default value: 1.0. If JxlEncoderOptionsSetLossless is used, this value is unused and implied to be 0.
@param options set of encoder options to update with the new mode @param distance the distance value to set