Get a free video capture buffer when bringing in video from an external source, and call the video capture function.
#include <vcapture/capture.h>
int capture_get_free_buffer( capture_context_t
context, uint64_t
timeout, (uint_32_t
flags | CAPTURE_FLAG_FREE_BUFFER )
The function capture_get_free_buffer() returns the index to a free buffer. After calling this function, the client application should call capture_put_buffer() to place the capture buffer in the video capture stream, then use another thread to call capture_get_frame() to return a processed frame (for example, the frame is scaled or deinterlaced).