ZL_Compressor_registerMIEncoder2

Function ZL_Compressor_registerMIEncoder2 

Source
pub unsafe extern "C" fn ZL_Compressor_registerMIEncoder2(
    compressor: *mut ZL_Compressor,
    desc: *const ZL_MIEncoderDesc,
) -> ZL_Result_ZL_NodeID
Expand description

Register a custom encoder that can be used to compress.

@note This is a new variant of @ref ZL_Compressor_registerMIEncoder that reports errors using OpenZL’s ZL_Report error system.

@warning Using a custom encoder requires the decoder to be registered before decompression.

@param desc The description of the encoder.

@returns The new node ID, or an error.