pub unsafe extern "C-unwind" fn JxlEncoderUseContainer(
enc: *mut JxlEncoder,
use_container: JxlBool,
) -> JxlEncoderStatusExpand description
Forces the encoder to use the box-based container format (BMFF) even when not necessary.
When using JxlEncoderUseBoxes, JxlEncoderStoreJPEGMetadata or
JxlEncoderSetCodestreamLevel with level 10, the encoder will automatically
also use the container format, it is not necessary to use
JxlEncoderUseContainer for those use cases.
By default this setting is disabled.
This setting can only be set at the beginning, before encoding starts.
§Parameters
enc: encoder object.use_container: true if the encoder should always output the JPEG XL container format, false to only output it when necessary.
§Returns
JxlEncoderStatus::Successif the operation was successful.JxlEncoderStatus::Errorotherwise.