JxlDebugImageCallback

Type Alias JxlDebugImageCallback 

Source
pub type JxlDebugImageCallback = extern "C-unwind" fn(opaque: *mut c_void, label: *const c_char, xsize: usize, ysize: usize, color: *const JxlColorEncoding, pixels: *const u16);
Expand description

Function type for JxlEncoderSetDebugImageCallback.

The callback may be called simultaneously by different threads when using a threaded parallel runner, on different debug images.

ยงParameters

  • opaque: Optional user data, as given to JxlEncoderSetDebugImageCallback.
  • label: Label of debug image, can be used in filenames.
  • xsize: Width of debug image.
  • ysize: Height of debug image.
  • color: Color encoding of debug image.
  • pixels: Pixel data of debug image as big-endian 16-bit unsigned samples. The memory is not owned by the user, and is only valid during the time the callback is running.