pub unsafe extern "C-unwind" fn JxlDecoderSizeHintBasicInfo(
dec: *const JxlDecoder,
) -> usizeExpand description
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 amount of bytes to provide in the next 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 JxlDecoderProcessInput call, and is correct the first
time in most cases. If not, JxlDecoderSizeHintBasicInfo can be called
again to get an updated hint.
§Parameters
dec: decoder object
§Returns
- the size hint in bytes if the basic info is not yet fully decoded.
- 0 when the basic info is already available.