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:

libcamapi

Description:

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:
You use the following functions to retrieve the buffers: