Class Sink
A view sink that renders via Win2D (DirectX)
Inheritance
System.Object
MediaSink<IVideoOutput, IVideoOutputCollection, IVideoInput, VideoSink, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
ViewSink<Windows.UI.Xaml.FrameworkElement>
Sink
Implements
IViewSink<Windows.UI.Xaml.FrameworkElement>
Inherited Members
Namespace: FM.LiveSwitch.Uwp.Win2D
Assembly: FM.LiveSwitch.Uwp.Win2D.dll
Syntax
public class Sink : ViewSink<FrameworkElement>, IVideoInput, IMediaInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement, IViewSink<FrameworkElement>
Constructors
Sink()
Initializes a new instance of the Sink class.
Declaration
public Sink()
Sink(IVideoOutput)
Initializes a new instance of the Sink class.
Declaration
public Sink(IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput | input | The input. |
Sink(IVideoOutput[])
Initializes a new instance of the Sink class.
Declaration
public Sink(IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput[] | inputs | The inputs. |
Sink(CanvasControl)
Initializes a new instance of the Sink class.
Declaration
public Sink(CanvasControl canvas)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Graphics.Canvas.UI.Xaml.CanvasControl | canvas | The view. |
Sink(CanvasControl, IVideoOutput)
Initializes a new instance of the Sink class.
Declaration
public Sink(CanvasControl canvas, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Graphics.Canvas.UI.Xaml.CanvasControl | canvas | The canvas. |
IVideoOutput | input | The input. |
Sink(CanvasControl, IVideoOutput[])
Initializes a new instance of the Sink class.
Declaration
public Sink(CanvasControl canvas, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Graphics.Canvas.UI.Xaml.CanvasControl | canvas | The canvas. |
IVideoOutput[] | inputs | The inputs. |
Properties
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
FM.LiveSwitch.MediaSink<FM.LiveSwitch.IVideoOutput, FM.LiveSwitch.IVideoOutputCollection, FM.LiveSwitch.IVideoInput, FM.LiveSwitch.VideoSink, FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat>.Label
View
Gets the view.
Declaration
public override FrameworkElement View { get; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.FrameworkElement |
Overrides
FM.LiveSwitch.ViewSink<Windows.UI.Xaml.FrameworkElement>.View
ViewMirror
Gets or sets a value indicating whether the view is mirrored.
Declaration
public override bool ViewMirror { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
FM.LiveSwitch.ViewSink<Windows.UI.Xaml.FrameworkElement>.ViewMirror
ViewScale
Gets or sets the view scale.
Declaration
public override LayoutScale ViewScale { get; set; }
Property Value
Type | Description |
---|---|
LayoutScale |
Overrides
FM.LiveSwitch.ViewSink<Windows.UI.Xaml.FrameworkElement>.ViewScale
Methods
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
Overrides
FM.LiveSwitch.ViewSink<Windows.UI.Xaml.FrameworkElement>.DoDestroy()
RenderBuffer(VideoBuffer)
Renders the buffer.
Declaration
protected override void RenderBuffer(VideoBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | inputBuffer | The input buffer. |
Overrides
FM.LiveSwitch.ViewSink<Windows.UI.Xaml.FrameworkElement>.RenderBuffer(FM.LiveSwitch.VideoBuffer)