capture_release_frame()

Release a video frame buffer.

Synopsis:

#include <vcapture/capture.h>
 
int capture_release_frame( capture_context_t context,
    uint32_t idx )

Arguments:

context
Pointer to the video capture context.
idx
The index to the frame buffer to release.

Library:

libcapture

Description:

The function capture_release_frame() 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
Success.
-1
An error occurred (errno is set).

Errors:

EINVAL
Invalid index (idx) argument.