pub unsafe extern "C" fn JxlEncoderStoreJPEGMetadata(
    enc: *mut JxlEncoder,
    store_jpeg_metadata: c_int
) -> JxlEncoderStatus
Expand description

Configure the encoder to store JPEG reconstruction metadata in the JPEG XL container.

If this is set to true and a single JPEG frame is added, it will be possible to losslessly reconstruct the JPEG codestream.

This setting can only be set at the beginning, before encoding starts.

@param enc encoder object. @param store_jpeg_metadata true if the encoder should store JPEG metadata. @return JXL_ENC_SUCCESS if the operation was successful, JXL_ENC_ERROR otherwise.