Enable the viewfinder event.
camera_error_t camera_enable_viewfinder_event(camera_handle_t handle, camera_eventmode_t eventmode, camera_eventkey_t *key, struct sigevent *event)
The handle returned by a call to the camera_open() function.
The event buffering mode.
A pointer to a camera_eventkey_t value. This argument is required for subsequent function calls to identify the proper event.
A pointer to a sigevent. The sigevent must be initialized by the caller. This sigevent will be sent back to the user when the event occurs.
Use this function to enable the viewfinder event, which is signalled when a raw viewfinder buffer is available. The viewfinder is rendered to a screen window by the camera service. It is not required to provide display code unless custom output is required using some other mechanism. Call this function when configuring the Camera API to use event mode instead of callback mode.
Last modified: 2013-12-21