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 handle returned by a call to the camera_open() function.
- camera_buffer
- A pointer to the buffer of interest (see camera_buffer_t).
- screen_buffer
- A pointer to the returned Screen buffer (for details, see the screen_buffer_t reference in the Screen documentation).
Library:
libcamapiDescription:
After having called camera_start_viewfinder() to start the viewfinder, call camera_get_screen_buffer() 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.
Page updated:
