JxlICCProfileDecode

Function JxlICCProfileDecode 

Source
pub unsafe extern "C-unwind" fn JxlICCProfileDecode(
    memory_manager: *const JxlMemoryManager,
    compressed_icc: *const u8,
    compressed_icc_size: usize,
    icc: *mut *mut u8,
    icc_size: *mut usize,
) -> JxlBool
Expand description

Allocates a buffer using the memory manager, fills it with the decompressed version of the ICC profile in compressed_icc, returns the result through icc and indicates its size through icc_size.

The result must be freed using the memory manager once it is no longer needed.

§Parameters

  • memory_manager: Pointer to a JxlMemoryManager.
  • compressed_icc: Pointer to a buffer containing the compressed ICC profile.
  • compressed_icc_size: Size of the buffer containing the compressed ICC profile.
  • icc: Will be set to a pointer to the buffer containing the result.
  • icc_size: Will be set to the size of the buffer containing the result.

§Returns

Whether decompressing the profile was successful.