JxlParallelRunFunction

Type Alias JxlParallelRunFunction 

Source
pub type JxlParallelRunFunction = unsafe extern "C-unwind" fn(*mut c_void, u32, usize);
Expand description

Parallel run data processing callback. See JxlParallelRunner for details.

This function MUST be called once for every number in the range [start_range, end_range) (including start_range but not including end_range) passing this number as the value. Calls for different values may be executed from different threads in parallel.

ยงParameters

  • jpegxl_opaque: the jpegxl_opaque handle provided to JxlParallelRunner must be passed here.
  • value: the number in the range [start_range, end_range) of the call.
  • thread_id: the thread number where this function is being called from. This must be lower than the num_threads value passed to JxlParallelRunInit.