capture_release_frame()
Graphics and Screen4.0 (8.x)Video Capture Developer's GuideAPIProgramming
Release a video frame buffer
Synopsis:
#include <vcapture/capture.h>
int capture_release_frame(capture_context_t context,
uint32_t idx)
Arguments:
- context
- The pointer to the video capture context.
- idx
- The index to the frame buffer to release.
Library:
libcaptureDescription:
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.
Returns:
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.
Page updated: