Table of Contents

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 : EventArgs

Inheritance

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

data nint

The data.

dataSize int

Size of the data.

width int

The width.

height int

The height.

stride int

The stride.

format VideoFormatX

The format.

frameRate VideoFrameRate

The frame rate.

timestamp TimeSpan

The timestamp.

updateData bool

if set to true update 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

frame VideoFrameX

The frame.

updateData bool

if set to true update data.

VideoFrameXBufferEventArgs(VideoFrameX)

Initializes a new instance of the VisioForge.Core.Types.Events.VideoFrameXBufferEventArgs class.

public VideoFrameXBufferEventArgs(VideoFrameX frame)

Parameters

frame VideoFrameX

The frame.

Properties

Frame

Gets frame.

public VideoFrameX Frame { get; }

Property Value

VideoFrameX

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; }

Property Value

bool

See Also