camera_eventmode_t
Event buffering modes.
Synopsis:
#include <camera/camera_api.h>
typedef enum {
CAMERA_EVENTMODE_READONLY
CAMERA_EVENTMODE_READWRITE
} camera_eventmode_t;
Data:
- CAMERA_EVENTMODE_READONLY
- Read-only access to buffers is requested.
-
This is the same buffer access mode employed when a callback function is used. The inbuffer argument is read-only.
- CAMERA_EVENTMODE_READWRITE
- Read-write access to buffers is requested.
-
Using this mode allows you to modify buffers prior to delivery to callback functions or read-only event consumers. The inbuffer and outbuffer arguments refer to the same image data in physical memory however, outbuffer is modifiable, while inbuffer remains read-only.
Library:
libcamapiDescription:
The event buffering mode dictates the behavior of the inbuffer and outbuffer arguments of the buffer retrieval functions. The enumerated values are for use with the following functions:
- camera_enable_image_event()
- camera_enable_postview_event()
- camera_enable_status_event()
- camera_enable_shutter_event()
- camera_enable_video_event()
- camera_enable_viewfinder_event()
You use the following functions to retrieve the buffers: