Type Definition libjxl_sys::JxlParallelRunFunction[][src]

type JxlParallelRunFunction = Option<unsafe extern "C" fn(jpegxl_opaque: *mut c_void, value: u32, thread_id: usize)>;

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 @p value. Calls for different value may be executed from different threads in parallel.

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