Encoder.h
Go to the documentation of this file.
914 DB_EDGEVIS_SDK int32_t SendYardarmSensorEvent(const std::wstring& sensor_id, const std::wstring& friendly_name, bool holstered);
924 DB_EDGEVIS_SDK int32_t SendYardarmBatteryEvent(const std::wstring& sensor_id, const std::wstring& friendly_name, int8_t percent);
935 DB_EDGEVIS_SDK int32_t SendFaceDetectEvent(int input, std::wstring face_string, std::wstring metadata);
1031 DB_EDGEVIS_SDK bool SetSecureConnectEndpoints(std::vector<SecureConnectEndpointInfo> endpoints);
1055 DB_EDGEVIS_SDK void SetLoggingLevel(EdgeVisSDKCore::LoggingLevel level, const std::wstring& log_location);
DB_EDGEVIS_SDK void SetArchiveRecordingPath(const std::wstring &path)
Sets the path of the archive recordings.
DB_EDGEVIS_SDK void SetTimezone(std::wstring timezone)
Sets the timezone of the encoder.
DB_EDGEVIS_SDK std::wstring ClientVersion()
Returns the version of this SDK.
DB_EDGEVIS_SDK bool SetBandwidthConfig(const EdgeVisSDKCore::BandwidthConfig &config)
Set the bandwidth configuration for the encoder.
DB_EDGEVIS_SDK void SetPostRecordBufferDuration(int bufferDuration)
Sets the post-record buffer duration.
DB_EDGEVIS_SDK std::vector< EncoderProfile > GetProfiles() const
Get all the available profiles.
DB_EDGEVIS_SDK int8_t GetArchiveDiskUsage()
Gets disk space used as a percentage.
DB_EDGEVIS_SDK std::wstring GetEncoderName() const
Returns the current configured encoder name.
DB_EDGEVIS_SDK bool SetArchiveFileSize(int32_t file_size_mb)
Set the archive recording maximum file size.
DB_EDGEVIS_SDK MediaStreamState GetStreamState()
Returns the current streaming status of the encoder.
DB_EDGEVIS_SDK std::wstring GetServerName() const
Returns the name of the server the encoder is connected to.
DB_EDGEVIS_SDK bool SetKeepAlivePeriod(int32_t keep_alive_period)
Sets the current period that the encoder sends keep alive messages to the server. ...
DB_EDGEVIS_SDK AreaOfInterestConfig GetAreaOfInterestConfig(const int32_t input) const
Returns the area of interest configuration.
DB_EDGEVIS_SDK void ReportCPUTemperature(double temp)
Report the CPU temperature of the encoder to the server.
DB_EDGEVIS_SDK void SetOperatorInfo(const std::wstring &op)
Sets the operator of the encoder.
DB_EDGEVIS_SDK bool GetAudioEnabled()
Returns the global audio enabled setting.
DB_EDGEVIS_SDK void SetLocation(double lat, double lon, double accuracy, double altitude)
Sets the latitude and longitude location of the encoder.
An object containing the audio data to be encoded.
Definition: PCMAudio.h:28
DB_EDGEVIS_SDK EdgeVisSDKCore::BandwidthConfig GetBandwidthConfig() const
Get the bandwidth configuration for the encoder.
DB_EDGEVIS_SDK std::vector< SecureConnectEndpointInfo > GetSecureConnectEndpoints()
Gets list of secure connect endpoints.
DB_EDGEVIS_SDK int32_t SendYardarmSensorEvent(const std::wstring &sensor_id, const std::wstring &friendly_name, bool holstered)
Sends a Yardarm holster event to the server.
DB_EDGEVIS_SDK bool GetArchiveRecordingEnabled()
Returns the current archive enabled setting in the configuration.
DB_EDGEVIS_SDK void ReportCPUUsage(int32_t percent)
Report the CPU usage of the encoder to the server.
DB_EDGEVIS_SDK void ReportBatteryCharge(int32_t percent)
Report the battery level of the encoder to the server.
The interface listener for the encoder object.
Definition: IEncoderListener.h:38
DB_EDGEVIS_SDK void ResetDataUsageStats()
Resets the counts of bytes sent/received on this encoder.
An object containing the YCbCr frame to be encoded.
Definition: YCbCrFrame.h:26
DB_EDGEVIS_SDK void EncodePCMAudio(PCMAudio audio)
Audio sample to send to the encoder.
DB_EDGEVIS_SDK EncoderCapabilities QueryEncoderCapabilities() const
Return the EncoderCapabilites object which defines the capabilities of this encoder.
DB_EDGEVIS_SDK int32_t GetArchiveFileDuration()
Get the archive recording maximum duration.
DB_EDGEVIS_SDK void UnregisterRemoteConfigListener(IRemoteConfigListener *listener)
Unregistered for the IRemoteConfigListener.
DB_EDGEVIS_SDK long long GetTotalBytesSent()
Returns the current total number of bytes sent on this encoder.
DB_EDGEVIS_SDK int32_t GetKeepAlivePeriod()
Gets the current period that the encoder sends keep alive messages to the server. ...
DB_EDGEVIS_SDK void SetCameraProfiles(std::vector< CameraProfile > cameras)
Set the camera profiles.
DB_EDGEVIS_SDK void SetPreRecordBufferDuration(int bufferDuration)
Sets the pre-record buffer duration.
DB_EDGEVIS_SDK int32_t SendHighTemperatureEvent(double temp)
Sends a high temperature event to the server.
DB_EDGEVIS_SDK void RegisterListener(IEncoderListener *listener)
Register for the IEncoderListener.
DB_EDGEVIS_SDK bool SupportsStreamConfig() const
Checks whether the current connected server supports the StreamConfig API.
DB_EDGEVIS_SDK ServerLinkError GetServerError()
Returns the current error status of the server.
DB_EDGEVIS_SDK void SetSerialNumber(const std::wstring &serialNumber)
Application defined serial number.
DB_EDGEVIS_SDK void SetAddress(const std::wstring &address)
Sets the address of the initial server to connect to.
DB_EDGEVIS_SDK bool SetStreamConfig(const EdgeVisSDKCore::StreamConfig &stream_cfg)
Used to modify the stream config settings the encoder will use to encode the TVI stream.
DB_EDGEVIS_SDK void SetArchiveDiskQuota(int32_t quota)
Set the archive disk quota.
DB_EDGEVIS_SDK double GetPacketLossPercentage()
Returns percentage of packets lost in last 10 minutes.
DB_EDGEVIS_SDK std::wstring GetAddress() const
Get the configured server address.
DB_EDGEVIS_SDK void SetArchiveDiskFullAlarmThreshold(int32_t threshold)
Set the archive disk full alarm threshold.
DB_EDGEVIS_SDK bool IsArchiveRecordingLicenced()
Determine if archive recording is licenced for this encoder.
DB_EDGEVIS_SDK int GetRoundTripTime()
Returns round trip time.
DB_EDGEVIS_SDK ServerLinkState GetServerState()
Returns the current status of the server.
DB_EDGEVIS_SDK int32_t SendCameraConnectedEvent(int input)
Sends a camera connected event to the server.
DB_EDGEVIS_SDK std::wstring GetOperatorInfo()
Returns the operator info set on the encoder.
DB_EDGEVIS_SDK int32_t SendHighVoltageEvent(double voltage)
Sends a high Voltage event to the server.
The Encoder object is the main component of the EdgeVis Encoder SDK.
Definition: Encoder.h:75
DB_EDGEVIS_SDK long long GetTotalBytesReceived()
Returns the current total number of bytes received.
DB_EDGEVIS_SDK ArchivePlaybackManager GetArchivePlaybackManager()
Get the archive playback manager.
DB_EDGEVIS_SDK std::wstring GetTimezone()
Returns the timezone set on the encoder.
DB_EDGEVIS_SDK void SetCredentials(const std::wstring &name, const std::wstring &password)
Sets the Encoder name and Password to connect to the server as.
DB_EDGEVIS_SDK void SetLoggingLevel(EdgeVisSDKCore::LoggingLevel level, const std::wstring &log_location)
Used to enable or disable logging from the Encoder SDK.
DB_EDGEVIS_SDK void Stop()
Stops the encoder and disconnects it from the Server.
DB_EDGEVIS_SDK int32_t SendLowVoltageEvent(double voltage)
Sends a low Voltage event to the server.
DB_EDGEVIS_SDK int GetCurrentBandwidth()
Returns the current bandwidth.
DB_EDGEVIS_SDK int32_t SendBatteryEvent(int8_t percent)
Sends a low battery event to the server.
DB_EDGEVIS_SDK int32_t SendLowTemperatureEvent(double temp)
Sends a low temperature event to the server.
DB_EDGEVIS_SDK void Start()
Starts the encoder This will start the encoder and connect to the EdgeVis server. ...
DB_EDGEVIS_SDK int32_t GetArchiveDiskFullAlarmThreshold()
Get the archive disk full alarm threshold.
DB_EDGEVIS_SDK std::wstring GetCurrentProfile()
Get the name of the profile currently in use.
The EncoderProfile interface contains Encoder connection profile settings.
Definition: EncoderProfile.h:59
DB_EDGEVIS_SDK void SetEnhancedCodecModeEnabled(bool enable)
Sets the enhanced codec mode as enabled.
DB_EDGEVIS_SDK void SetAudioOnlyEnabled(bool enable)
Sets the audio only enabled setting.
DB_EDGEVIS_SDK int32_t GetArchiveFileSize()
Get the archive recording file size.
DB_EDGEVIS_SDK bool IsPostRecording() const
Determine if post-record is active.
DB_EDGEVIS_SDK bool SetSecureConnectEndpoints(std::vector< SecureConnectEndpointInfo > endpoints)
Sets list of secure connect endpoints.
DB_EDGEVIS_SDK std::vector< CameraProfile > GetCameraProfiles() const
Get the camera profiles.
DB_EDGEVIS_SDK int32_t SendFaceDetectEvent(int input, std::wstring face_string, std::wstring metadata)
Sends a face detect event to the server This can be used to indicate that an external contact closure...
DB_EDGEVIS_SDK void SetEncodeAspectRatio(EdgeVisSDKCore::AspectRatio aspectRatio)
Set the aspect ratio of the video frame being encoded.
DB_EDGEVIS_SDK void SetProfile(EncoderProfile profile)
Replace the EncoderProfile with updated settings.
The EdgeVis Encoder SDK namespace.
DB_EDGEVIS_SDK void UnregisterArchivePlaybackListener(IArchivePlaybackListener *listener)
Unregistered for the IArchivePlaybackListener.
DB_EDGEVIS_SDK double GetPacketsSentPerSecond()
Returns number of packets sent per second.
DB_EDGEVIS_SDK void UnregisterListener(IEncoderListener *listener)
Unregistered for the IEncoderListener.
DB_EDGEVIS_SDK int32_t GetArchiveDiskQuota()
Get the archive disk quota.
The interface for the archive playback, this will return callbacks for the archive service...
Definition: IArchivePlaybackListener.h:43
DB_EDGEVIS_SDK std::wstring GetPassword() const
Returns the current configured encoder password.
DB_EDGEVIS_SDK bool SetAreaOfInterestConfig(const AreaOfInterestConfig &aoi)
Sets the area of interest configuration.
DB_EDGEVIS_SDK void SetAudioEnabled(bool enable)
Sets the global audio enabled setting.
DB_EDGEVIS_SDK bool GetGPSEnabled()
Returns the GPS enabled setting.
DB_EDGEVIS_SDK bool EraseArchiveRecordings()
Erase all of the recordings from the encoder.
DB_EDGEVIS_SDK void EncodeYCbCrFrame(YCbCrFrame frame)
A video frame to send to the encoder.
DB_EDGEVIS_SDK int32_t SendCameraDisconnectedEvent(int input)
Sends a camera disconnected event to the server.
DB_EDGEVIS_SDK EdgeVisSDKCore::AspectRatio GetEncodeAspectRatio()
Returns the aspect ratio set on the Encoder.
DB_EDGEVIS_SDK void RegisterArchivePlaybackListener(IArchivePlaybackListener *listener)
Register for the IArchivePlaybackListener.
DB_EDGEVIS_SDK void SetGPSEnabled(bool enable)
Sets the GPS enabled setting.
DB_EDGEVIS_SDK int8_t GetVideoInput() const
The current video input the encoder is set to.
ServerLinkError
Defines the set of Server communication link errors.
Definition: ServerLinkState.h:31
DB_EDGEVIS_SDK void SetArchiveRecordMode(ArchiveRecordMode recordMode)
Sets the current archive recording mode in the configuration.
DB_EDGEVIS_SDK Encoder(const std::wstring &config_path, const std::wstring &product_name)
Constructor for the Encoder object.
DB_EDGEVIS_SDK std::wstring GetArchiveRecordingPath()
Returns the path of the archive recordings.
DB_EDGEVIS_SDK int32_t SendExternalTriggerEvent(int alarm_id)
Sends an external trigger event to the server.
DB_EDGEVIS_SDK std::wstring GetServerVersion() const
Returns the version of the server the encoder is connected to.
DB_EDGEVIS_SDK int32_t SendAlertEndEvent()
Sends an alert end event to the server.
DB_EDGEVIS_SDK bool IsExternalCameraLicenced()
Determine if external cameras are licenced for this encoder.
DB_EDGEVIS_SDK void RegisterRemoteConfigListener(IRemoteConfigListener *listener)
Register for the IRemoteConfigListener.
DB_EDGEVIS_SDK bool GetEnhancedCodecModeEnabled() const
Returns the current enhanced codec mode enabled setting in the configuration.
DB_EDGEVIS_SDK int32_t SendAlertStartEvent()
Sends an alert start event to the server.
DB_EDGEVIS_SDK void SetVideoInput(int8_t input)
Sets the current video input.
DB_EDGEVIS_SDK ArchiveRecordingState GetArchiveRecordingState()
Returns the current state of the encoder.
DB_EDGEVIS_SDK int GetPostRecordBufferDuration()
Returns the post-record buffer duration.
ServerLinkState
Defines the set of Server communication link states.
Definition: ServerLinkState.h:20
The interface listener for the encoder settings.
Definition: IRemoteConfigListener.h:44
DB_EDGEVIS_SDK bool GetAudioOnlyEnabled()
Returns the audio only enabled setting.
DB_EDGEVIS_SDK EdgeVisSDKCore::StreamConfig GetStreamConfig() const
Returns the stream config settings the encoder will use to encode the TVI stream. ...
DB_EDGEVIS_SDK ArchiveRecordMode GetArchiveRecordMode()
Returns the current archive recording mode in the configuration.
DB_EDGEVIS_SDK void SetArchiveRecordingEnabled(bool enable)
Sets the archive recording as enabled.
DB_EDGEVIS_SDK bool SetArchiveFileDuration(int32_t file_duration_minutes)
Set the archive recording maximum duration.
DB_EDGEVIS_SDK int GetPreRecordBufferDuration()
Returns the pre-record buffer duration.
DB_EDGEVIS_SDK void SetCurrentProfile(const std::wstring &profile_name)
Set the name of the profile to use.
DB_EDGEVIS_SDK int32_t SendYardarmBatteryEvent(const std::wstring &sensor_id, const std::wstring &friendly_name, int8_t percent)
Sends a low battery event for a Yardarm holster sensor to the server.
