Function libjxl_sys::JxlDecoderSizeHintBasicInfo[][src]

pub unsafe extern "C" fn JxlDecoderSizeHintBasicInfo(
    dec: *const JxlDecoder
) -> usize

Returns a hint indicating how many more bytes the decoder is expected to need to make JxlDecoderGetBasicInfo available after the next JxlDecoderProcessInput call. This is a suggested large enough value for the *avail_in parameter, but it is not guaranteed to be an upper bound nor a lower bound. Can be used before the first JxlDecoderProcessInput call, and is correct the first time in most cases. If not, JxlDecoderSizeHintBasicInfo can be called again to get an updated hint.

@param dec decoder object @return the size hint in bytes if the basic info is not yet fully decoded. @return 0 when the basic info is already available.