69 CAMERA_EVENT_NONE = 0x0000,
70 CAMERA_EVENT_DISCONNECTED = 0x0001,
71 CAMERA_EVENT_EXPOSURE_END =
83 CAMERA_EVENT_ALL = 0xFFFF,
86 using EventCallback = std::function<void(Event event,
void* pUser)>;
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)
216 uint32_t uint32Value;
222 std::string stringValue;
227 using Payload = std::vector<PayloadMember>;
The camera event related. Use CameraEvent::getSupportedEvents to get supported events....
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 ...
std::function< void(const EventData *eventData, const void *extraPayload)> CameraEventCallback
callback function for a camera event.
static ErrorStatus unregisterCameraEventCallback(Camera &camera, uint16_t event)
Cancels the registration of a callback function for the specified event and Camera object.
static ErrorStatus unregisterCameraEventCallback(Camera &camera, Event event)
Cancels the registration of a callback function for the specified event and Camera object.
static ErrorStatus getSupportedEvents(const Camera &camera, std::vector< EventInfo > &eventInfos)
Get supported events by the camera.
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 event information.
Describes the data member of the event's payload.
MemberValue value
Member value.
std::string name
Member name.
Describes the types of errors.
Represents data associated with a camera event.
std::string eventName
Event name, supported by Cameras with firmware version >= 2.5.0.
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.