Return a buffer to the camera
Synopsis:
#include <camera/camera_api.h>
camera_error_t camera_return_buffer(camera_handle_t handle,
camera_buffer_t *buffer)
Arguments:
- handle
- The handle returned by a call to the camera_open() function.
- buffer
- A pointer to a buffer acquired by a call to one of the above get-buffer functions.
Library:
libcamapi
Description:
Use this function to return a buffer back to the camera after you are finished processing it. The
buffer value you provide must be one that was acquired from the camera using one of the following functions:
Note: Don't return a buffer that was delivered to a callback function, or was allocated through other means.
Returns:
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.