Class VideoFrameXBufferEventArgs
- Namespace
- VisioForge.Core.Types.Events
- Assembly
- VisioForge.Core.dll
Video frame buffer event args (for X engines). Implements the EventArgs.
public class VideoFrameXBufferEventArgs : EventArgsInheritance
Inherited Members
Constructors
VideoFrameXBufferEventArgs(nint, int, int, int, int, VideoFormatX, VideoFrameRate, TimeSpan, ref bool)
Initializes a new instance of the VisioForge.Core.Types.Events.VideoFrameXBufferEventArgs class.
public VideoFrameXBufferEventArgs(nint data, int dataSize, int width, int height, int stride, VideoFormatX format, VideoFrameRate frameRate, TimeSpan timestamp, ref bool updateData)Parameters
datanint-
The data.
dataSizeint-
Size of the data.
widthint-
The width.
heightint-
The height.
strideint-
The stride.
formatVideoFormatX-
The format.
frameRateVideoFrameRate-
The frame rate.
timestampTimeSpan-
The timestamp.
updateDatabool-
if set to
trueupdate data.
VideoFrameXBufferEventArgs(VideoFrameX, ref bool)
Initializes a new instance of the VisioForge.Core.Types.Events.VideoFrameXBufferEventArgs class.
public VideoFrameXBufferEventArgs(VideoFrameX frame, ref bool updateData)Parameters
frameVideoFrameX-
The frame.
updateDatabool-
if set to
trueupdate data.
VideoFrameXBufferEventArgs(VideoFrameX)
Initializes a new instance of the VisioForge.Core.Types.Events.VideoFrameXBufferEventArgs class.
public VideoFrameXBufferEventArgs(VideoFrameX frame)Parameters
frameVideoFrameX-
The frame.
Properties
Frame
Gets frame.
public VideoFrameX Frame { get; }Property Value
Remarks
The frame wraps the pipeline's buffer and is valid only while the handler runs: do not keep it or its VisioForge.Core.Types.X.VideoFrameX.Data pointer after the handler returns, and do not call VisioForge.Core.Types.X.VideoFrameX.Free on it. To keep the frame, store VisioForge.Core.Types.X.VideoFrameX.Clone and release that copy with VisioForge.Core.Types.X.VideoFrameX.Free.
UpdateData
Gets or sets a value indicating whether the handler modified the frame. The SDK does not read it; to modify frames,
set AllowFrameModification on the VideoSampleGrabberBlock or on a CustomVideoSampleGrabberEffect.
In VideoCaptureCoreX and MediaPlayerCoreX, OnVideoFrameBuffer handlers may modify the frame with no setting.
public bool UpdateData { get; set; }