[][src]Function minimp4_sys::MP4E_open

pub unsafe extern "C" fn MP4E_open(
    sequential_mode_flag: c_int,
    enable_fragmentation: c_int,
    token: *mut c_void,
    write_callback: Option<unsafe extern "C" fn(offset: i64, buffer: *const c_void, size: usize, token: *mut c_void) -> c_int>
) -> *mut MP4E_mux_t

Allocates and initialize mp4 multiplexor Given file handler is transparent to the MP4 library, and used only as argument for given fwrite_callback() function. By appropriate definition of callback function application may use any other file output API (for example C++ streams, or Win32 file functions)

return multiplexor handle on success; NULL on failure