Class MQTTJPEGFrame
- Namespace
- VisioForge.Plugins.MQTT
- Assembly
- VisioForge.Plugins.MQTT.dll
Represents a JPEG-encoded video frame for MQTT transmission.
public class MQTTJPEGFrameInheritance
Inherited Members
Remarks
This class encapsulates a JPEG-compressed video frame along with its timestamp, optimized for efficient transmission over MQTT message broker networks.
Constructors
MQTTJPEGFrame(byte[], TimeSpan)
Initializes a new instance of the VisioForge.Plugins.MQTT.MQTTJPEGFrame class with raw JPEG data and timestamp.
public MQTTJPEGFrame(byte[] data, TimeSpan timestamp)Parameters
databyte[]-
The JPEG-encoded image data as a byte array.
timestampTimeSpan-
The timestamp indicating when the frame was captured.
MQTTJPEGFrame(DataFrame)
Initializes a new instance of the VisioForge.Plugins.MQTT.MQTTJPEGFrame class from a VisioForge.Core.Types.DataFrame.
public MQTTJPEGFrame(DataFrame data)Parameters
dataDataFrame-
The data frame containing the JPEG-encoded image data and timestamp.
Remarks
This constructor extracts the frame data and timestamp from a VisioForge DataFrame object.
Properties
Data
Gets the JPEG-encoded image data as a byte array.
public byte[] Data { get; }Property Value
- byte[]
Timestamp
Gets the timestamp indicating when the frame was captured.
public TimeSpan Timestamp { get; }