Table of Contents

Class RAWVideoFrameEventArgs

Namespace
VisioForge.Core.Types
Assembly
VisioForge.Core.dll

Provides data for events that deliver raw video frames. This class encapsulates a VisioForge.Core.Types.RAWVideoFrame, allowing it to be passed as an argument in event handlers.

public class RAWVideoFrameEventArgs : EventArgs

Inheritance

Inherited Members

Remarks

This event argument is typically used in scenarios where an application needs to process raw video data directly, such as for custom video analysis, computer vision algorithms, rendering to custom surfaces, or real-time effects. The Frame property provides access to the raw video buffer and its associated metadata including dimensions, color space, and timing. When handling events of this type, be aware that the video data pointer may only be valid for the duration of the event handler. If you need to retain the video data, copy it to a managed buffer or convert it to a VideoFrame before the handler returns. Common use cases include motion detection, QR code scanning, face detection, augmented reality overlays, or feeding frames to machine learning models. Frame event handlers should execute quickly to avoid blocking the video pipeline and causing frame drops.

Constructors

RAWVideoFrameEventArgs(RAWVideoFrame)

Initializes a new instance of the VisioForge.Core.Types.RAWVideoFrameEventArgs class.

public RAWVideoFrameEventArgs(RAWVideoFrame frame)

Parameters

frame RAWVideoFrame

The VisioForge.Core.Types.RAWVideoFrame to be encapsulated by these event arguments.

Properties

Frame

Gets the VisioForge.Core.Types.RAWVideoFrame associated with this event. This frame contains the raw video data and its metadata.

public RAWVideoFrame Frame { get; }

Property Value

RAWVideoFrame