Release a video frame buffer
#include <vcapture/capture.h>
int capture_release_frame(capture_context_t context, uint32_t idx)
This function releases the frame specified in its idx argument and returns it to the capture queue. Your application should call this function after it has displayed a captured frame to ensure that the buffer locked by capture_get_frame() is made available for reuse.
0 if successful; or -1 if an error occurred (errno is set; refer to errno.h for more details). The return value and the value that's observed for errno may vary as they are dependent on the implementation by the library that handles your hardware.