Class FrameRateController
A frame-rate controller.
Inheritance
System.Object
MediaPipe <IVideoOutput , IVideoOutputCollection , IVideoInput , IVideoInputCollection , VideoPipe , VideoFrame , VideoBuffer , VideoBufferCollection , VideoFormat >
FrameRateController
Implements
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class FrameRateController : FrameRatePipe, IVideoInput, IMediaInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoOutput, IMediaOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement
Constructors
FrameRateController(VideoFormat)
Initializes a new instance of the Frame
Declaration
public FrameRateController(VideoFormat format)
Parameters
Type | Name | Description |
---|---|---|
Video |
format |
Properties
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
Methods
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
Overrides
DoProcessFrame(VideoFrame, VideoBuffer)
Processes a frame.
Declaration
protected override void DoProcessFrame(VideoFrame frame, VideoBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
Video |
frame | The frame. |
Video |
inputBuffer | The input buffer. |
Overrides
FrameRateChanged(Double, Double)
Indicates that the frame-rate has changed.
Declaration
protected override void FrameRateChanged(double oldFrameRate, double newFrameRate)
Parameters
Type | Name | Description |
---|---|---|
System. |
oldFrameRate | The old frame-rate. |
System. |
newFrameRate | The new frame-rate. |