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(¶llel_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§
- Parallel
Runner - JPEG XL Parallel Runner
Type Aliases§
- JxlParallel
RetCode - Return code used in the
JxlParallel*functions as return value. A value ofJXL_PARALLEL_RET_SUCCESSmeans success and any other value means error. The special valueJXL_PARALLEL_RET_RUNNER_ERRORcan be used by the runner to indicate any other error. - JxlParallel
RunFunction - Parallel run data processing callback. See
JxlParallelRunnerfor details. - JxlParallel
RunInit - Parallel run initialization callback. See
JxlParallelRunnerfor details.