JxlImageOutRunCallback

Type Alias JxlImageOutRunCallback 

Source
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 the init callback.
  • 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 full xsize of the image, and will be at most equal to the num_pixels_per_thread that was passed to init.
  • pixels: pixel data as a horizontal stripe, in the format passed to JxlDecoderSetMultithreadedImageOutCallback. The data pointed to remains owned by the caller and is only guaranteed to outlive the current callback invocation.