camera_eventmode_t

Event buffering modes.

Synopsis:

#include <camera/camera_api.h>
 
 enum {
      CAMERA_EVENTMODE_READONLY   
      CAMERA_EVENTMODE_READWRITE   
};

Data:

CAMERA_EVENTMODE_READONLY
Read-only access to buffers was 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 was 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:

For use with the following functions:

  • camera_enable_image_event()
  • camera_enable_postview_event()
  • camera_enable_raw_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:

  • camera_get_image_buffers()
  • camera_get_postview_buffers()
  • camera_get_raw_buffers()
  • camera_get_video_buffers()
  • camera_get_viewfinder_buffers()

The event buffering mode dictates the behavior of the inbuffer and outbuffer arguments of the buffer retrieval functions.