camera_return_buffer()

Updated: April 19, 2023

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 written by a call to one of the camera_get_*() functions listed in the description.

Library:

libcamapi

Description:

Use this function to return a buffer to the camera after you are finished processing it. The buffer value you provide must be one 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.