JxlDecoderCreate

Function JxlDecoderCreate 

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

Creates an instance of JxlDecoder and initializes it.

memory_manager will be used for all the library dynamic allocations made from this instance. The parameter may be NULL, in which case the default allocator will be used. See crate::common::memory_manager for details.

§Parameters

  • memory_manager: custom allocator function. It may be NULL. The memory manager will be copied internally.

§Returns

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