pub unsafe extern "C-unwind" fn JxlICCProfileEncode(
memory_manager: *const JxlMemoryManager,
icc: *const u8,
icc_size: usize,
compressed_icc: *mut *mut u8,
compressed_icc_size: *mut usize,
) -> JxlBoolExpand description
Allocates a buffer using the memory manager, fills it with a compressed
representation of an ICC profile, returns the result through output_buffer
and indicates its size through output_size.
The result must be freed using the memory manager once it is not of any more use.
§Parameters
memory_manager: Pointer to aJxlMemoryManager.icc: Pointer to a buffer containing the uncompressed ICC profile.icc_size: Size of the buffer containing the ICC profile.compressed_icc: Will be set to a pointer to the buffer containing the result.compressed_icc_size: Will be set to the size of the buffer containing the result.
§Returns
Whether compressing the profile was successful.