pub unsafe extern "C-unwind" fn JxlEncoderSetUpsamplingMode(
enc: *mut JxlEncoder,
factor: i64,
mode: i64,
) -> JxlEncoderStatusExpand description
Sets the upsampling method the decoder will use in case there are frames
with JxlEncoderFrameSettingsSetOption set. This is useful in combination
with the JxlEncoderFrameSettingsSetOption option, to control
the type of upsampling that will be used.
§Parameters
enc: encoder object.factor: upsampling factor to configure (1, 2, 4 or 8; for 1 this function has no effect at all)mode: upsampling mode to use for this upsampling:-1: default (good for photographic images, no signaling overhead)0: nearest neighbor (good for pixel art)1: ‘pixel dots’ (same as NN for 2x, diamond-shaped ‘pixel dots’ for 4x/8x)
§Returns
JxlEncoderStatus::Successif the operation was successful,JxlEncoderStatus::Errorotherwise