pub unsafe extern "C-unwind" fn JxlEncoderSetParallelRunner(
enc: *mut JxlEncoder,
parallel_runner: JxlParallelRunner,
parallel_runner_opaque: *mut c_void,
) -> JxlEncoderStatusExpand description
Set the parallel runner for multithreading. May only be set before starting encoding.
§Parameters
enc: Encoder object.parallel_runner: Function pointer to runner for multithreading. It may beNULLto use the default, single-threaded, runner. A multithreaded runner should be set to reach fast performance.parallel_runner_opaque: Opaque pointer forparallel_runner.
§Returns
JxlEncoderStatus::Successif the runner was set.JxlEncoderStatus::Errorotherwise (the previous runner remains set).