pub unsafe extern "C-unwind" fn JxlDecoderSetMultithreadedImageOutCallback(
dec: *mut JxlDecoder,
format: *const JxlPixelFormat,
init_callback: JxlImageOutInitCallback,
run_callback: JxlImageOutRunCallback,
destroy_callback: JxlImageOutDestroyCallback,
init_opaque: *mut c_void,
) -> JxlDecoderStatusExpand description
Similar to JxlDecoderSetImageOutCallback except that the callback is
allowed an initialization phase during which it is informed of how many
threads will call it concurrently, and those calls are further informed of
which thread they are occurring in.
§Parameters
dec: decoder objectformat: format of the pixels. Object owned by user; its contents are copied internally.init_callback: initialization callback.run_callback: the callback function receiving partial scanlines of pixel data.destroy_callback: clean-up callback invoked after all calls torun_callback. May beNULLif no clean-up is necessary.init_opaque: optional user data passed toinit_callback, may beNULL(unlike the return value frominit_callbackwhich may only beNULLif initialization failed).
§Returns
JxlDecoderStatus::Successon success,JxlDecoderStatus::Erroron error, such asJxlDecoderSetImageOutBufferhaving already been called.