Class ImageScalePipe
An image scale pipe.
Inheritance
Implements
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class ImageScalePipe : VideoPipe, 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
ImageScalePipe(VideoFormat)
Initializes a new instance of the Image
Declaration
public ImageScalePipe(VideoFormat outputFormat)
Parameters
Type | Name | Description |
---|---|---|
Video |
outputFormat | The output format. |
ImageScalePipe(VideoFormat, VideoFormat)
Initializes a new instance of the Image
Declaration
public ImageScalePipe(VideoFormat inputFormat, VideoFormat outputFormat)
Parameters
Type | Name | Description |
---|---|---|
Video |
inputFormat | The input format. |
Video |
outputFormat | The output format. |
Properties
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
MaxOutputScale
Gets or sets the maximum allowed output scale. A value of -1 indicates unset (no maximum).
Declaration
public override double MaxOutputScale { get; protected set; }
Property Value
Type | Description |
---|---|
System. |
Overrides
MaxScale
Gets or sets the maximum output scale. A value of -1 indicates unset (no maximum).
Declaration
public virtual double MaxScale { get; set; }
Property Value
Type | Description |
---|---|
System. |
MaxSupportedScale
Gets the maximum supported scale. A value of -1 indicates unset (no maximum).
Declaration
public virtual double MaxSupportedScale { get; }
Property Value
Type | Description |
---|---|
System. |
MinOutputScale
Gets or sets the minimum allowed output scale. A value of -1 indicates unset (no minimum).
Declaration
public override double MinOutputScale { get; protected set; }
Property Value
Type | Description |
---|---|
System. |
Overrides
MinScale
Gets or sets the minimum output scale. A value of -1 indicates unset (no minimum).
Declaration
public virtual double MinScale { get; set; }
Property Value
Type | Description |
---|---|
System. |
MinSupportedScale
Gets the minimum supported scale. A value of -1 indicates unset (no minimum).
Declaration
public virtual double MinSupportedScale { get; }
Property Value
Type | Description |
---|---|
System. |
Scale
Gets or sets the current scale. A value of -1 indicates unset (pass-through).
Declaration
public virtual double Scale { get; protected set; }
Property Value
Type | Description |
---|---|
System. |
StaticOutputScale
Gets or sets whether Min
Declaration
public bool StaticOutputScale { get; set; }
Property Value
Type | Description |
---|---|
System. |
TargetOutputScale
Gets or sets the target output scale. A value of -1 indicates unset (no target).
Declaration
public override double TargetOutputScale { get; protected set; }
Property Value
Type | Description |
---|---|
System. |
Overrides
TargetScale
Gets or sets the target scale. A value of -1 indicates unset (no target).
Declaration
public virtual double TargetScale { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
Overrides
DoPreProcessFrame(VideoFrame, VideoBuffer)
Pre-processes a frame.
Declaration
protected override void DoPreProcessFrame(VideoFrame frame, VideoBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
Video |
frame | The frame. |
Video |
inputBuffer | The input buffer. |
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
ScaleChanged(Double, Double)
Indicates that the scale has changed.
Declaration
protected virtual void ScaleChanged(double oldScale, double newScale)
Parameters
Type | Name | Description |
---|---|---|
System. |
oldScale | The old scale. |
System. |
newScale | The new scale. |
ScaleChanging(Double, Double)
Indicates that the scale is about to change.
Declaration
protected virtual void ScaleChanging(double oldScale, double newScale)
Parameters
Type | Name | Description |
---|---|---|
System. |
oldScale | The old scale. |
System. |
newScale | The new scale. |