65 CAMERA_EVENT_NONE = 0x0000,
66 CAMERA_EVENT_DISCONNECTED = 0x0001,
67 CAMERA_EVENT_EXPOSURE_END =
78 CAMERA_EVENT_ALL = 0xFFFF,
81 using EventCallback = std::function<void(Event event,
void* pUser)>;
99 [[deprecated(
"Please use the following method instead: @ref "
100 "registerCameraEventCallback(Camera& camera, Event event, const "
101 "CameraEventCallback& callback).")]]
103 unsigned int events);
111 std::function<void(
const EventData* eventData,
const void* extraPayload)>;
The camera event related. Use CameraEvent::registerCameraEventCallback to register an event of intere...
static ErrorStatus unregisterCameraEventCallback(Camera &camera, Event event)
Cancels the registration of a callback function for the specified event and Camera object.
std::function< void(const EventData *eventData, const void *extraPayload)> CameraEventCallback
callback function for a camera event.
static ErrorStatus registerCameraEventCallback(Camera &camera, Event event, const CameraEventCallback &callback)
Registers a callback function to be executed when the specified Event occurs on the specified Camera ...
Event
The defined camera event.
static ErrorStatus registerCameraEventCallback(Camera &camera, EventCallback callback, void *pUser, unsigned int events)
Registers a camera event of interest.
Operates the camera. Use Camera::connect to connect an available camera, and then call the correspond...
Describes the types of errors.
Represents data associated with a camera event.
int eventId
Event ID, defined in CameraEvent::Event.
int64_t frameId
The ID of the image frame where the event occurred.
int64_t timestamp
The timestamp of the event occurrence.