Function libjxl_sys::JxlDecoderSubscribeEvents[][src]

pub unsafe extern "C" fn JxlDecoderSubscribeEvents(
    dec: *mut JxlDecoder,
    events_wanted: c_int
) -> JxlDecoderStatus

Select for which informative events (JXL_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 JxlDecoderProcessInput

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