Function libjxl_sys::JxlEncoderUseContainer [−][src]
pub unsafe extern "C" fn JxlEncoderUseContainer(
enc: *mut JxlEncoder,
use_container: c_int
) -> JxlEncoderStatus
Configure the encoder to use the JPEG XL container format.
Using the JPEG XL container format allows to store metadata such as JPEG reconstruction (@ref JxlEncoderStoreJPEGMetadata) or other metadata like EXIF; but it adds a few bytes to the encoded file for container headers even if there is no extra metadata.
@param enc encoder object. @param use_container true if the encoder should output the JPEG XL container format. @return JXL_ENC_SUCCESS if the operation was successful, JXL_ENC_ERROR otherwise.