pub type VSFrameDoneCallback = unsafe extern "system-unwind" fn(userData: *mut c_void, f: *const VSFrame, n: c_int, node: *mut VSNode, errorMsg: *const c_char);
Expand description
Function of the client application called by the core when a requested frame is ready,
after a call to getFrameAsync()
.
If multiple frames were requested, they can be returned in any order. Client applications must take care of reordering them.
This function is only ever called from one thread at a time.
getFrameAsync()
may be called from this function to
request more frames.
ยงArguments
-
userData
- Pointer to private data from the client application, as passed previously togetFrameAsync()
. -
f
- Contains a reference to the generated frame, orNULL
in case of failure. The ownership of the frame is transferred to the caller. -
n
- The frame number. -
node
- Node the frame belongs to. -
errorMsg
- String that usually contains an error message if the frame generation failed.NULL
if there is no error.