pub unsafe extern "C" fn JxlDecoderGetBoxSizeRaw(
    dec: *const JxlDecoder,
    size: *mut u64
) -> JxlDecoderStatus
Expand description

Returns the size of a box as it appears in the container file, after the @ref JXL_DEC_BOX event. For a non-compressed box, this is the size of the contents, excluding the 4 bytes indicating the box type. For a compressed “brob” box, this is the size of the compressed box contents plus the additional 4 byte indicating the underlying box type, but excluding the 4 bytes indicating “brob”. This function gives the size of the data that will be written in the output buffer when getting boxes in the default raw compressed mode. When @ref JxlDecoderSetDecompressBoxes is enabled, the return value of function does not change, and the decompressed size is not known before it has already been decompressed and output.

@param dec decoder object @param size raw size of the box in bytes @return @ref JXL_DEC_ERROR if no box size is available, @ref JXL_DEC_SUCCESS otherwise.