pub type JxlImageOutRunCallback = extern "C" fn(run_opaque: *mut c_void, thread_id: usize, x: usize, y: usize, num_pixels: usize, pixels: *const c_void);Expand description
Worker callback for JxlDecoderSetMultithreadedImageOutCallback
ยงParameters
run_opaque: user data returned by theinitcallback.thread_id: number in[0, num_threads)identifying the thread of the current invocation of the callback.x: horizontal position of the first (leftmost) pixel of the pixel data.y: vertical position of the pixel data.num_pixels: number of pixels in the pixel data. May be less than the fullxsizeof the image, and will be at most equal to thenum_pixels_per_threadthat was passed toinit.pixels: pixel data as a horizontal stripe, in the format passed toJxlDecoderSetMultithreadedImageOutCallback. The data pointed to remains owned by the caller and is only guaranteed to outlive the current callback invocation.