[][src]Type Definition jpegxl_sys::JpegxlParallelRunFunction

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

Parallel run data processing callback. See JpegxlParallelRunner 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 JpegxlParallelRunner() 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 JpegxlParallelRunInit.