camera_return_buffer()

Return a buffer to the camera service.

Synopsis:

#include <camera/camera_api.h>
 
camera_error_t camera_return_buffer(camera_handle_t handle, camera_buffer_t *buffer)

Arguments:

Library:

libcamapi

Description:

Use this function to return a buffer back to the camera service. The buffer value you provide must be acquired from the camera service using one of the following functions:

  • camera_get_video_buffer()
  • camera_get_viewfinder_buffer()
  • camera_get_image_buffer()
  • camera_get_postview_buffer().
    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

    See also:

    CAMERA_OK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.

Returns:

CAMERA_OK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.