Class Sink<TView>
An abstract Direct2D-based view sink.
Inheritance
Implements
Inherited Members
Namespace: FM.LiveSwitch.SharpDX
Assembly: FM.LiveSwitch.SharpDX.dll
Syntax
public abstract class Sink<TView> : ViewSink<TView>, IVideoInput, IMediaInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement, IViewSink<TView> where TView : class
Type Parameters
Name | Description |
---|---|
TView |
Constructors
Sink()
Initializes a new instance of the Sink<TView> class.
Declaration
public Sink()
Sink(TView)
Initializes a new instance of the Sink<TView> class.
Declaration
public Sink(TView view)
Parameters
Type | Name | Description |
---|---|---|
TView | view | The view. |
Sink(TView, IVideoOutput)
Initializes a new instance of the Sink<TView> class.
Declaration
public Sink(TView view, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
TView | view | The view. |
IVideoOutput | input | The input. |
Sink(TView, IVideoOutput[])
Initializes a new instance of the Sink<TView> class.
Declaration
public Sink(TView view, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
TView | view | The view. |
IVideoOutput[] | inputs | The inputs. |
Sink(IVideoOutput)
Initializes a new instance of the Sink<TView> class.
Declaration
public Sink(IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput | input | The input. |
Sink(IVideoOutput[])
Initializes a new instance of the Sink<TView> class.
Declaration
public Sink(IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
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
View
Gets the view.
Declaration
public override TView View { get; }
Property Value
Type | Description |
---|---|
TView |
Overrides
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
ViewScale
Gets or sets the view scale.
Declaration
public override LayoutScale ViewScale { get; set; }
Property Value
Type | Description |
---|---|
LayoutScale |
Overrides
Methods
CreateView()
Creates a view. Used if a view is not given as a constructor argument or if the view is null.
Declaration
protected abstract TView CreateView()
Returns
Type | Description |
---|---|
TView |
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
Overrides
GetViewHandle(TView)
Gets a view handle.
Declaration
protected abstract IntPtr GetViewHandle(TView view)
Parameters
Type | Name | Description |
---|---|---|
TView | view | The view. |
Returns
Type | Description |
---|---|
System.IntPtr |
GetViewHeight(TView)
Gets the height of a view.
Declaration
protected abstract double GetViewHeight(TView view)
Parameters
Type | Name | Description |
---|---|---|
TView | view | The view. |
Returns
Type | Description |
---|---|
System.Double |
GetViewWidth(TView)
Gets the width of a view.
Declaration
protected abstract double GetViewWidth(TView view)
Parameters
Type | Name | Description |
---|---|---|
TView | view | The view. |
Returns
Type | Description |
---|---|
System.Double |
RenderBuffer(VideoBuffer)
Renders a video buffer.
Declaration
protected override void RenderBuffer(VideoBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | buffer | The buffer. |