Class ImageScaler
A libyuv-based image scaler.
Inheritance
System.Object
MediaPipe<IVideoOutput, IVideoOutputCollection, IVideoInput, IVideoInputCollection, VideoPipe, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
ImageScaler
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch.Yuv
Assembly: FM.LiveSwitch.Yuv.dll
Syntax
public class ImageScaler : ImageScalePipe, 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
ImageScaler(Double)
Initializes a new instance of the ImageScaler class.
Declaration
public ImageScaler(double scale)
Parameters
Type | Name | Description |
---|---|---|
System.Double | scale | The scale. |
ImageScaler(Double, IVideoOutput)
Initializes a new instance of the ImageScaler class.
Declaration
public ImageScaler(double scale, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
System.Double | scale | The scale. |
IVideoOutput | input | The input. |
ImageScaler(Double, IVideoOutput[])
Initializes a new instance of the ImageScaler class.
Declaration
public ImageScaler(double scale, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
System.Double | scale | The scale. |
IVideoOutput[] | inputs | The inputs. |
Properties
FilterMode
Gets or sets the filter mode.
Declaration
public int FilterMode { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
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 |
---|---|---|
VideoFrame | frame | The frame. |
VideoBuffer | inputBuffer | The input buffer. |