Class ViewSink<T>
A video view sink.
Inheritance
System.Object
MediaSink<IVideoOutput, IVideoOutputCollection, IVideoInput, VideoSink, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
ViewSink<T>
Implements
IViewSink<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public abstract class ViewSink<T> : VideoSink, IVideoInput, IMediaInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement, IViewSink<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
ViewSink()
Initializes a new instance of the ViewSink<T> class.
Declaration
public ViewSink()
ViewSink(IVideoOutput)
Initializes a new instance of the ViewSink<T> class.
Declaration
public ViewSink(IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput | input | The input. |
ViewSink(IVideoOutput[])
Initializes a new instance of the ViewSink<T> class.
Declaration
public ViewSink(IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput[] | inputs | The inputs. |
ViewSink(VideoFormat)
Initializes a new instance of the ViewSink<T> class.
Declaration
public ViewSink(VideoFormat inputFormat)
Parameters
Type | Name | Description |
---|---|---|
VideoFormat | inputFormat | The input format. |
Properties
IsRecording
Gets or sets a value indicating whether a recording icon should be displayed.
Declaration
public virtual bool IsRecording { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
View
Gets the view.
Declaration
public abstract T View { get; }
Property Value
Type | Description |
---|---|
T |
ViewMirror
Gets or sets a value indicating whether the view is mirrored.
Declaration
public abstract bool ViewMirror { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ViewScale
Gets or sets the view scale.
Declaration
public abstract LayoutScale ViewScale { get; set; }
Property Value
Type | Description |
---|---|
LayoutScale |
Methods
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
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>.DoDestroy()
DoProcessFrame(VideoFrame, VideoBuffer)
Processes a frame.
Declaration
protected override void DoProcessFrame(VideoFrame frame, VideoBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
VideoFrame | frame | The frame. |
VideoBuffer | inputBuffer | The input buffer. |
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>.DoProcessFrame(FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer)
RenderBuffer(VideoBuffer)
Renders the buffer.
Declaration
protected abstract void RenderBuffer(VideoBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | inputBuffer | The input buffer. |