Class ImageConverter
A libyuv-based image converter.
Inheritance
System.Object
MediaPipe<IVideoOutput, IVideoOutputCollection, IVideoInput, IVideoInputCollection, VideoPipe, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
ImageConverter
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 ImageConverter : 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
ImageConverter(IVideoOutput, VideoFormat)
Initializes a new instance of the ImageConverter class.
Declaration
public ImageConverter(IVideoOutput input, VideoFormat outputFormat)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput | input | The input. |
VideoFormat | outputFormat | The output format. |
ImageConverter(IVideoOutput[], VideoFormat)
Initializes a new instance of the ImageConverter class.
Declaration
public ImageConverter(IVideoOutput[] inputs, VideoFormat outputFormat)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput[] | inputs | The inputs. |
VideoFormat | outputFormat | The output format. |
ImageConverter(VideoFormat)
Initializes a new instance of the ImageConverter class.
Declaration
public ImageConverter(VideoFormat outputFormat)
Parameters
Type | Name | Description |
---|---|---|
VideoFormat | outputFormat | The output format. |
ImageConverter(VideoFormat, VideoFormat)
Initializes a new instance of the ImageConverter class.
Declaration
public ImageConverter(VideoFormat inputFormat, VideoFormat outputFormat)
Parameters
Type | Name | Description |
---|---|---|
VideoFormat | inputFormat | The input format. |
VideoFormat | outputFormat | The output format. |
Properties
Alignment
Gets or sets the alignment.
Declaration
public int Alignment { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
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. |