camera_get_screen_buffer()

Retrieve the screen buffer associated with a camera buffer

Synopsis:

#include <camera/camera_api.h>
camera_error_t camera_get_screen_buffer(camera_handle_t handle,
                                        camera_buffer_t *camera_buffer,
                                        screen_buffer_t *screen_buffer)

Arguments:

handle
The camera handle of the camera.
camera_buffer
The buffer of interest
screen_buffer
On success, it is set to the screen buffer

Library:

libcamapi

Description:

After having called camera_start_viewfinder() to start the viewfinder, call this function to retrieve the screen buffer associated with a given camera buffer. The screen buffer is useful to perform zero-copy of buffers using OpenGL.

Returns:

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