Updated: October 28, 2024 |
Event-buffering modes
#include <camera/camera_api.h>
typedef enum { CAMERA_EVENTMODE_READONLY, CAMERA_EVENTMODE_READWRITE } camera_eventmode_t;
This is the same buffer access mode employed when a callback function is used. The inbuffer argument is read-only.
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.