pub unsafe extern "C-unwind" fn JxlEncoderSetFrameDistance(
options: *mut JxlEncoderFrameSettings,
distance: f32,
) -> JxlEncoderStatusExpand description
Sets the distance level for lossy compression: target max butteraugli
distance, lower = higher quality. Range: 0 .. 25.
0.0 = mathematically lossless (however, use JxlEncoderSetFrameLossless
instead to use true lossless, as setting distance to 0 alone is not the only
requirement). 1.0 = visually lossless. Recommended range: 0.5 .. 3.0. Default
value: 1.0.
§Parameters
frame_settings: set of options and metadata for this frame. Also includes reference to the encoder object.distance: the distance value to set.
§Returns
JxlEncoderStatus::Successif the operation was successful,JxlEncoderStatus::Errorotherwise.