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 : EventArgsInheritance
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
sharedHandlenint-
DXGI shared handle (HANDLE) of the GPU texture that backs the current frame. Consumers open it on their own
ID3D11DeviceviaOpenSharedResource. May be Zero if the upload failed or the producer texture has been torn down. widthint-
Width of the texture in pixels.
heightint-
Height of the texture in pixels.
Properties
Height
Height of the texture, in pixels.
public int Height { get; }Property Value
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
Width
Width of the texture, in pixels.
public int Width { get; }