Module parallel

Module parallel 

Source
Expand description

Parallel runner interface

§Example

#[cfg(feature = "image")]
use jpegxl_rs::{decoder_builder, parallel::threads_runner::ThreadsRunner};
// Use the default C++ Threads pool runner:
let mut parallel_runner = ThreadsRunner::default();
let mut decoder = decoder_builder().parallel_runner(&parallel_runner).build()?;

Modules§

resizable_runner
Wrapper for resizable thread pool implementation with C++ standard library
threads_runner
Wrapper for default thread pool implementation with C++ standard library

Traits§

ParallelRunner
JPEG XL Parallel Runner

Type Aliases§

JxlParallelRetCode
Return code used in the JxlParallel* functions as return value. A value of JXL_PARALLEL_RET_SUCCESS means success and any other value means error. The special value JXL_PARALLEL_RET_RUNNER_ERROR can be used by the runner to indicate any other error.
JxlParallelRunFunction
Parallel run data processing callback. See JxlParallelRunner for details.
JxlParallelRunInit
Parallel run initialization callback. See JxlParallelRunner for details.