69 CAMERA_EVENT_NONE = 0x0000,
70 CAMERA_EVENT_DISCONNECTED = 0x0001,
71 CAMERA_EVENT_EXPOSURE_END =
83 CAMERA_EVENT_ALL = 0xFFFF,
105 "Please use the following method instead: @ref "
106 "registerCameraEventCallback(Camera& camera, Event event, const "
107 "CameraEventCallback& callback).")]]
static ErrorStatus
109 unsigned int events);
117 std::function<void(
const EventData* eventData,
const void* extraPayload)>;
142 "Please use the following method instead: @ref "
143 "registerCameraEventCallback(Camera& camera, uint16_t event, const "
144 "CameraEventCallback& callback).")]]
static ErrorStatus
167 "Please use the following method instead: @ref "
168 "unregisterCameraEventCallback(Camera& camera, uint16_t event).")]]
static ErrorStatus
176 std::string eventName{};
177 uint16_t eventId{0x0000};
180 EventInfo(
const std::string& eventName, uint16_t eventId)
181 : eventName(eventName), eventId(eventId)
#define MMIND_API_EXPORT
Definition api_global.h:48
The camera event related. Use CameraEvent::getSupportedEvents to get supported events....
Definition CameraEvent.h:61
static ErrorStatus unregisterCameraEventCallback(Camera &camera, uint16_t event)
Cancels the registration of a callback function for the specified event and Camera object.
std::vector< PayloadMember > Payload
Definition CameraEvent.h:227
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 ...
std::function< void(const EventData *eventData, const void *extraPayload)> CameraEventCallback
callback function for a camera event.
Definition CameraEvent.h:117
Event
The defined camera event.
Definition CameraEvent.h:68
std::function< void(Event event, void *pUser)> EventCallback
Definition CameraEvent.h:86
static ErrorStatus getSupportedEvents(const Camera &camera, std::vector< EventInfo > &eventInfos)
Get supported events by the camera.
static ErrorStatus registerCameraEventCallback(Camera &camera, uint16_t event, const CameraEventCallback &callback)
Registers a callback function to be executed when the specified Event occurs on the specified Camera ...
static ErrorStatus registerCameraEventCallback(Camera &camera, EventCallback callback, void *pUser, unsigned int events)
Registers a camera event of interest.
static ErrorStatus unregisterCameraEventCallback(Camera &camera, Event event)
Cancels the registration of a callback function for the specified event and Camera object.
Operates the camera. Use Camera::connect to connect an available camera, and then call the correspond...
Definition Camera.h:55
Describes the event information.
Definition CameraEvent.h:175
EventInfo(const std::string &eventName, uint16_t eventId)
Definition CameraEvent.h:180
Definition CameraEvent.h:215
uint32_t uint32Value
Definition CameraEvent.h:216
int64_t int64Value
Definition CameraEvent.h:218
std::string stringValue
Definition CameraEvent.h:222
double doubleValue
Definition CameraEvent.h:220
int32_t int32Value
Definition CameraEvent.h:217
bool boolValue
Definition CameraEvent.h:221
float floatValue
Definition CameraEvent.h:219
Describes the data member of the event's payload.
Definition CameraEvent.h:202
Type
Definition CameraEvent.h:204
std::string name
Member name.
Definition CameraEvent.h:203
MemberValue value
Member value.
Definition CameraEvent.h:224
Type type
Member type.
Definition CameraEvent.h:213
Describes the types of errors.
Definition ErrorStatus.h:12
Represents data associated with a camera event.
Definition CameraEvent.h:47
int eventId
Event ID, defined in CameraEvent::Event.
Definition CameraEvent.h:48
int64_t timestamp
The timestamp of the event occurrence.
Definition CameraEvent.h:50
std::string eventName
Event name, supported by Cameras with firmware version >= 2.5.0.
Definition CameraEvent.h:49
int64_t frameId
The ID of the image frame where the event occurred.
Definition CameraEvent.h:51