Updated: October 28, 2024 |
Retrieve the Screen buffer associated with a camera buffer
#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)
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.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.