Class VideoFrameBufferEventArgs
Frame bitmap event args class.
Inherited Members
Namespace: VisioForge.Core.Types.Events
Assembly: VisioForge.Core.dll
Syntax
public class VideoFrameBufferEventArgs : EventArgs
Constructors
VideoFrameBufferEventArgs(nint, int, int, int, int, RAWVideoColorSpace, VideoFrameRate, TimeSpan, ref bool, VideoStreamType)
Initializes a new instance of the VideoFrameBufferEventArgs class.
Declaration
public VideoFrameBufferEventArgs(nint data, int dataSize, int width, int height, int stride, RAWVideoColorSpace colorSpace, VideoFrameRate frameRate, TimeSpan timestamp, ref bool updateData, VideoStreamType sourceStream)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | data | Data. |
| int | dataSize | Data size. |
| int | width | Width. |
| int | height | Height. |
| int | stride | Stride. |
| RAWVideoColorSpace | colorSpace | Color space. |
| VideoFrameRate | frameRate | Frame rate. |
| TimeSpan | timestamp | Timestamp. |
| bool | updateData | Updated data flag. |
| VideoStreamType | sourceStream | Source stream. |
VideoFrameBufferEventArgs(ref RAWVideoFrame, VideoFrameRate, ref bool, VideoStreamType)
Initializes a new instance of the VideoFrameBufferEventArgs class.
Declaration
public VideoFrameBufferEventArgs(ref RAWVideoFrame frame, VideoFrameRate frameRate, ref bool updateData, VideoStreamType sourceStream = VideoStreamType.Main)
Parameters
| Type | Name | Description |
|---|---|---|
| RAWVideoFrame | frame | The frame. |
| VideoFrameRate | frameRate | The frame rate. |
| bool | updateData | if set to |
| VideoStreamType | sourceStream | The source stream. |
VideoFrameBufferEventArgs(VideoFrame, VideoFrameRate, ref bool, VideoStreamType)
Initializes a new instance of the VideoFrameBufferEventArgs class.
Declaration
public VideoFrameBufferEventArgs(VideoFrame frame, VideoFrameRate frameRate, ref bool updateData, VideoStreamType sourceStream = VideoStreamType.Main)
Parameters
| Type | Name | Description |
|---|---|---|
| VideoFrame | frame | The frame. |
| VideoFrameRate | frameRate | The frame rate. |
| bool | updateData | if set to |
| VideoStreamType | sourceStream | The source stream. |
Properties
FourCC
Gets or sets video FourCC (optional).
Declaration
public string FourCC { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Frame
Gets frame.
Declaration
public VideoFrame Frame { get; }
Property Value
| Type | Description |
|---|---|
| VideoFrame |
FrameArray
Gets frame as byte array. Can be null.
Declaration
public byte[] FrameArray { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
FrameRate
Gets frame rate.
Declaration
public VideoFrameRate FrameRate { get; }
Property Value
| Type | Description |
|---|---|
| VideoFrameRate |
SourceName
Gets or sets source name.
Declaration
public string SourceName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SourceStream
Gets or sets source stream.
Declaration
public VideoStreamType SourceStream { get; set; }
Property Value
| Type | Description |
|---|---|
| VideoStreamType |
UpdateData
Gets or sets a value indicating whether frame has been updates and changes must be saved.
Declaration
public bool UpdateData { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |