camera_enable_image_event()

Enable the final image data event.

Synopsis:

#include <camera/camera_api.h>
 
camera_error_t camera_enable_image_event(camera_handle_t handle, camera_eventmode_t eventmode, camera_eventkey_t *key, struct sigevent *event)

Arguments:

handle

The handle returned by a call to the camera_open() function.

eventmode

The event buffering mode.

key

A pointer to a camera_eventkey_t value. This argument is required for subsequent function calls to identify the proper event.

event

A pointer to a sigevent. The sigevent must be initialized by the caller. This is the sigevent that will be sent back to the user when the event occurs.

Library:

libcamapi

Description:

Use this function to enable the image event. The image event is sent when the final image data is available. Call this function when configuring the Camera API for event mode instead of callback mode.

Returns:

CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.

Last modified: 2013-12-21

comments powered by Disqus