pub unsafe extern "C-unwind" fn JxlDecoderSubscribeEvents(
dec: *mut JxlDecoder,
events_wanted: c_int,
) -> JxlDecoderStatusExpand description
Select for which informative events, i.e. JxlDecoderStatus::BasicInfo, 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 is 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 called
before using JxlDecoderProcessInput.
§Parameters
dec: decoder objectevents_wanted: bitfield of desired events.
§Returns
JxlDecoderStatus::Successif no error,JxlDecoderStatus::Errorotherwise.