JxlDecoderSetDecompressBoxes

Function JxlDecoderSetDecompressBoxes 

Source
pub unsafe extern "C-unwind" fn JxlDecoderSetDecompressBoxes(
    dec: *mut JxlDecoder,
    decompress: JxlBool,
) -> 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 JxlDecoderStatus::Box event, and is remembered until the decoder is reset or destroyed.

Enabling decompressed mode requires Brotli support from the library.

§Parameters

§Returns