Table of Contents

Class VideoSurfaceFrameEventArgs

Namespace
VisioForge.Core.UI.WPF
Assembly
VisioForge.Core.dll

Per-frame payload for VisioForge.Core.UI.WPF.IVideoSurfaceProvider.FrameReady. Carries the DXGI shared handle and frame size; consumer code can open the handle on its own ID3D11Device to read or write the texture between Acquire/Release.

public sealed class VideoSurfaceFrameEventArgs : EventArgs

Inheritance

Inherited Members

Constructors

VideoSurfaceFrameEventArgs(nint, int, int)

Initializes a new instance of the VisioForge.Core.UI.WPF.VideoSurfaceFrameEventArgs class with the DXGI shared handle and dimensions of the just-uploaded frame.

public VideoSurfaceFrameEventArgs(nint sharedHandle, int width, int height)

Parameters

sharedHandle nint

DXGI shared handle (HANDLE) of the GPU texture that backs the current frame. Consumers open it on their own ID3D11Device via OpenSharedResource. May be Zero if the upload failed or the producer texture has been torn down.

width int

Width of the texture in pixels.

height int

Height of the texture in pixels.

Properties

Height

Height of the texture, in pixels.

public int Height { get; }

Property Value

int

SharedHandle

DXGI shared handle (HANDLE) that addresses the same GPU texture as VisioForge.Core.UI.WPF.IVideoSurfaceProvider.SharedTextureHandle. Open on a second device via ID3D11Device::OpenSharedResource.

public nint SharedHandle { get; }

Property Value

nint

Width

Width of the texture, in pixels.

public int Width { get; }

Property Value

int