pub unsafe extern "C-unwind" fn JxlDecoderSetParallelRunner(
dec: *mut JxlDecoder,
parallel_runner: JxlParallelRunner,
parallel_runner_opaque: *mut c_void,
) -> JxlDecoderStatusExpand description
Set the parallel runner for multithreading. May only be set before starting decoding.
§Parameters
dec: decoder objectparallel_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
JxlDecoderStatus::Successif the runner was set,JxlDecoderStatus::Errorotherwise (the previous runner remains set).