[][src]Function jpegxl_sys::JpegxlDecoderSubscribeEvents

pub unsafe extern "C" fn JpegxlDecoderSubscribeEvents(
    dec: *mut JpegxlDecoder,
    events_wanted: c_int
) -> JpegxlDecoderStatus

Select for which informative events (JPEGXL_DEC_BASIC_INFO, etc...) the decoder should return with a status. It is not required to subscribe to any events, data can still be requested from the decoder as soon as it available. By default, the decoder is subscribed to no events (events_wanted == 0), and the decoder will then only return when it cannot continue because it needs more input data or more output buffer. This function may only be be called before using JpegxlDecoderProcessInput

@param dec decoder object @param events_wanted bitfield of desired events. @return JPEGXL_DEC_SUCCESS if no error, JPEGXL_DEC_ERROR otherwise.