JxlEncoderCreate

Function JxlEncoderCreate 

Source
pub unsafe extern "C-unwind" fn JxlEncoderCreate(
    memory_manager: *const JxlMemoryManager,
) -> *mut JxlEncoder
Expand description

Creates an instance of JxlEncoder and initializes it.

§Parameters

  • memory_manager: Custom allocator function. It may be NULL. The memory manager will be copied internally. If NULL, the default allocator will be used. See crate::common::memory_manager for details.

§Returns

  • NULL if the instance cannot be allocated or initialized.
  • Pointer to initialized JxlEncoder otherwise.