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

Returns a hint indicating how many more bytes the decoder is expected to need to make @ref JxlDecoderGetBasicInfo available after the next @ref JxlDecoderProcessInput call. This is a suggested large enough value for the amount of bytes to provide in the next @ref JxlDecoderSetInput call, but it is not guaranteed to be an upper bound nor a lower bound. This number does not include bytes that have already been released from the input. Can be used before the first @ref JxlDecoderProcessInput call, and is correct the first time in most cases. If not, @ref 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.