JxlImageOutInitCallback

Type Alias JxlImageOutInitCallback 

Source
pub type JxlImageOutInitCallback = extern "C" fn(init_opaque: *mut c_void, num_threads: usize, num_pixels_per_thread: usize) -> *mut c_void;
Expand description

Initialization callback for JxlDecoderSetMultithreadedImageOutCallback.

§Parameters

  • init_opaque: optional user data, as given to JxlDecoderSetMultithreadedImageOutCallback.
  • num_threads: maximum number of threads that will call the run callback concurrently.
  • num_pixels_per_thread: maximum number of pixels that will be passed in one call to run.

§Returns

  • a pointer to data that will be passed to the run callback, or NULL if initialization failed.