pub unsafe extern "C" fn JxlDecoderSetDecompressBoxes(
    dec: *mut JxlDecoder,
    decompress: c_int
) -> JxlDecoderStatus
Expand description

Configures whether to get boxes in raw mode or in decompressed mode. In raw mode, boxes are output as their bytes appear in the container file, which may be decompressed, or compressed if their type is “brob”. In decompressed mode, “brob” boxes are decompressed with Brotli before outputting them. The size of the decompressed stream is not known before the decompression has already finished.

The default mode is raw. This setting can only be changed before decoding, or directly after a @ref JXL_DEC_BOX event, and is remembered until the decoder is reset or destroyed.

Enabling decompressed mode requires Brotli support from the library.

@param dec decoder object @param decompress JXL_TRUE to transparently decompress, JXL_FALSE to get boxes in raw mode. @return @ref JXL_DEC_ERROR if decompressed mode is set and Brotli is not available, @ref JXL_DEC_SUCCESS otherwise.