ipcamerasettings.h
136 IPCamStatus setCamExclusive(const int expireTimeSeconds = 5, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
153 IPCamStatus setRegionOfInterest(const RegionOfInterest regionOfInterest, const uint32_t roiIndex, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
163 IPCamStatus getRegionOfInterest(RegionOfInterest ®ionOfInterest, const uint32_t roiIndex, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
171 IPCamStatus getRegionsOfInterest(std::vector<uint32_t> &roiIndices, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
179 IPCamStatus eraseRegionOfInterest(const uint32_t roiIndex, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
187 IPCamStatus subscribeROIVideo(const uint32_t roiIndex = 0, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
196 IPCamStatus subscribeROIVideo(VideoContent &videoContent, const uint32_t roiIndex = 0, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
204 IPCamStatus unsubscribeROIVideo(const uint32_t roiIndex, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
213 IPCamStatus setBrightnessControl(const SignedControl sControl, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
221 IPCamStatus getBrightnessControl(SignedControl &sControl, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
230 IPCamStatus setSaturationControl(const UnsignedControl uControl, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
238 IPCamStatus getSaturationControl(UnsignedControl &uControl, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
247 IPCamStatus setGammaControl(const UnsignedControl uControl, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
256 IPCamStatus getGammaControl(UnsignedControl &uControl, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
265 IPCamStatus setHeaterControl(const UnsignedControl uControl, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
273 IPCamStatus getHeaterControl(UnsignedControl &uControl, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
281 IPCamStatus setCamRegister(const ImagerRegister imagerRegister, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
291 IPCamStatus setCamRegister(const uint16_t regAddress, const uint16_t regValue, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
300 IPCamStatus setCamRegisters(const std::vector<ImagerRegister> &imagerRegisters, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
309 IPCamStatus getCamRegister(const uint16_t regAddress, uint16_t ®Value, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
318 IPCamStatus getCamRegisters(const std::vector<uint16_t> &addressList, std::vector<ImagerRegister> &imagerRegisters, const int maxWaitTimeMs = MAX_WAIT_TIME_MS);
337 IPCamStatus sendMessageWithResponse(const unsigned char * data, const size_t messageLength, unsigned char * responseData, size_t &responseLength, const int maxWaitTimeMs = MAX_WAIT_TIME_MS) const;
The sIPv4Option struct Describes the IPv4EndpointOption.
Definition: camtypes.h:502
IPCamStatus unsubscribeROIVideo(const uint32_t roiIndex, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Ends the transmission of a video stream for the requested ROI index.
IPCamStatus getBrightnessControl(SignedControl &sControl, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempts to populate the Brigthness Control data struct with data from the camera.
IPCamStatus subscribeROIVideo(const uint32_t roiIndex=0, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Starts the transmission of a video stream for the requested ROI index.
static std::string stringifyIPCamStatus(const IPCamStatus camStatus)
Returns the IPCamStatus enum as a std::string, useful for debugging.
IPCamStatus getCamRegisters(const std::vector< uint16_t > &addressList, std::vector< ImagerRegister > &imagerRegisters, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
getCamRegisters Attempts to read a list of imager registers
IPCamStatus setRegionOfInterest(const RegionOfInterest regionOfInterest, const uint32_t roiIndex, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attehmps to set the parameters for the region of interest addressed by index.
IPCamStatus setGammaControl(const UnsignedControl uControl, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempts to set the control for the gamma correction of the camera.
IPCamStatus setCamRegisters(const std::vector< ImagerRegister > &imagerRegisters, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempts to write (atomic access) the content of a register block of the camera imager.
Defines the region of interest. The ROIs (regions of interest) are used to acquire data from the came...
Definition: camtypes.h:452
IPCamStatus closeServiceDiscoverySocket()
Closes the Service Discovery socket.
IPCamStatus getGammaControl(UnsignedControl &uControl, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempts to populate the Gamma Control data struct with data from the camera.
IPCamStatus sendMessageWithResponse(const unsigned char *data, const size_t messageLength, unsigned char *responseData, size_t &responseLength, const int maxWaitTimeMs=MAX_WAIT_TIME_MS) const
Sends a custom message to the camera and reads the response.
IPCamStatus eraseCamExclusive(const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempts to remove the exclusive control look for the requesting client.
Definition: camtypes.h:26
IPCamStatus getCamStatus(CamStatus &camStatus, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempts to fill a struct with the status of the IP Camera.
IPCamStatus setCamRegister(const ImagerRegister imagerRegister, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempts to writes the content of a register of the camera’s imager addressed by physical register a...
IPCamStatus getHeaterControl(UnsignedControl &uControl, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempts to populate the Heater Control data struct with data from the camera.
IPCamStatus setBrightnessControl(const SignedControl sControl, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempts to set the control for the brightness circuits of the camera.
IPCamStatus getRegionsOfInterest(std::vector< uint32_t > &roiIndices, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Gets the indices for all the regions of interest.
IPCamStatus getSaturationControl(UnsignedControl &uControl, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempts to populate the Saturation Control data struct with data from the camera.
IPCamStatus setCamExclusive(const int expireTimeSeconds=5, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempts to assign the control of the camera exclusively to the requesting client.
Definition of an address/value pair of imager register.
Definition: camtypes.h:218
IPCamStatus getCamRegister(const uint16_t regAddress, uint16_t ®Value, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Reads the content of a register block of the camera imager.
The IPCameraSettings class This class is the inteface between the IP Camera and the user...
Definition: ipcamerasettings.h:44
IPCamStatus eraseRegionOfInterest(const uint32_t roiIndex, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempt to erases all parameters for the requested region of interest.
~IPCameraSettings()
Deletes the API class and frees all allocated memory.
IPCamStatus
Returncodes and error messages. Can be sent from either the camera or the API.
Definition: camtypes.h:67
uint16_t getClientID() const
Returns the client ID number.
IPCamStatus getDatasheet(Datasheet &datasheet, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempts to fill a struct with the datasheet of the camera.
IPCamStatus setHeaterControl(const UnsignedControl uControl, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempts to set the controls for the heater of the camera.
IPCamStatus getRegionOfInterest(RegionOfInterest ®ionOfInterest, const uint32_t roiIndex, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Gets the parameters for the region of interest addressed by index.
IPCamStatus openServiceDiscovery(std::vector< std::string > multicastGroups, int portNumber)
Opens a socket to look for Service Discovery messages.
IPCamStatus open()
Opens a UDP-socket with the address and port number previously supplied.
IPCamStatus serviceDiscoveryGetIPv4(IPv4Option &option)
Reads the socket for a Service Discovery - Offer Service message with the IPv4 endpoint option...
IPCamStatus setSaturationControl(const UnsignedControl uControl, const int maxWaitTimeMs=MAX_WAIT_TIME_MS)
Attempts to set the control for the saturation circuits of the camera.
IPCamStatus sendMessageNoResponse(const unsigned char *data, const size_t messageLength) const
Sends a custom message, without expecting a response from the camera.
uint16_t getSessionID() const
Returns the session ID number.
Defines the format of a video content notification package.
Definition: camtypes.h:239