Type Definition libjxl_sys::JxlImageOutRunCallback
source · [−]pub type JxlImageOutRunCallback = Option<unsafe 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 @ref JxlDecoderSetMultithreadedImageOutCallback.
@param run_opaque user data returned by the @c init callback.
@param thread_id number in [0, num_threads)
identifying the thread of the
current invocation of the callback.
@param x horizontal position of the first (leftmost) pixel of the pixel data.
@param y vertical position of the pixel data.
@param num_pixels number of pixels in the pixel data. May be less than the
full @c xsize of the image, and will be at most equal to the @c
num_pixels_per_thread that was passed to @c init.
@param pixels pixel data as a horizontal stripe, in the format passed to @ref
JxlDecoderSetMultithreadedImageOutCallback. The data pointed to
remains owned by the caller and is only guaranteed to outlive the current
callback invocation.