Class NullViewSink<T>
A video view sink that does nothing.
Inheritance
System.Object
MediaSink<IVideoOutput, IVideoOutputCollection, IVideoInput, VideoSink, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
ViewSink<T>
NullViewSink<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 class NullViewSink<T> : ViewSink<T>, 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
NullViewSink()
Initializes a new instance of the NullViewSink<T> class.
Declaration
public NullViewSink()
NullViewSink(VideoFormat)
Initializes a new instance of the NullViewSink<T> class.
Declaration
public NullViewSink(VideoFormat inputFormat)
Parameters
Type | Name | Description |
---|---|---|
VideoFormat | inputFormat | The input format. |
Properties
FrameCount
Gets the current frame count.
Declaration
public long FrameCount { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
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 T View { get; }
Property Value
Type | Description |
---|---|
T |
Overrides
FM.LiveSwitch.ViewSink<T>.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<T>.ViewMirror
ViewScale
Gets or sets the view scale.
Declaration
public override LayoutScale ViewScale { get; set; }
Property Value
Type | Description |
---|---|
LayoutScale |
Overrides
FM.LiveSwitch.ViewSink<T>.ViewScale
Methods
RenderBuffer(VideoBuffer)
Renders a video buffer.
Declaration
protected override void RenderBuffer(VideoBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | inputBuffer | The input buffer. |
Overrides
FM.LiveSwitch.ViewSink<T>.RenderBuffer(FM.LiveSwitch.VideoBuffer)
RenderedFrames(Int64)
Creates a future that resolves when the specified number of frames have been processed.
Declaration
public Future<object> RenderedFrames(long count)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | count |
Returns
Type | Description |
---|---|
Future<System.Object> |
UpdateMaxInputBitrate(Int32)
Sets the maximum allowed input bitrate, in kbps. A value of -1 indicates unset (no maximum).
Declaration
public void UpdateMaxInputBitrate(int maxInputBitrate)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxInputBitrate | The maximum allowed input bitrate, in kbps. |
UpdateMinInputBitrate(Int32)
Sets the minimum allowed input bitrate, in kbps. A value of -1 indicates unset (no minimum).
Declaration
public void UpdateMinInputBitrate(int minInputBitrate)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | minInputBitrate | The minimum allowed input bitrate, in kbps. |