Class VideoFrame
A video frame.
Inheritance
System.Object
VideoFrame
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class VideoFrame : MediaFrame<VideoBuffer, VideoBufferCollection, VideoFormat, VideoFrame>
Constructors
VideoFrame()
Initializes a new instance of the VideoFrame class.
Declaration
public VideoFrame()
VideoFrame(VideoBuffer)
Initializes a new instance of the VideoFrame class.
Declaration
public VideoFrame(VideoBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | buffer | The buffer. |
VideoFrame(VideoBuffer[])
Initializes a new instance of the VideoFrame class.
Declaration
public VideoFrame(VideoBuffer[] buffers)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer[] | buffers | The buffers. |
Methods
Clone()
Clones this instance.
Declaration
public override VideoFrame Clone()
Returns
Type | Description |
---|---|
VideoFrame |
Overrides
FM.LiveSwitch.MediaFrame<FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat, FM.LiveSwitch.VideoFrame>.Clone()
CreateInstance()
Creates a new instance.
Declaration
public override VideoFrame CreateInstance()
Returns
Type | Description |
---|---|
VideoFrame |
Overrides
FM.LiveSwitch.MediaFrame<FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat, FM.LiveSwitch.VideoFrame>.CreateInstance()
CreateMediaBufferCollection()
Creates a media buffer collection.
Declaration
protected override VideoBufferCollection CreateMediaBufferCollection()
Returns
Type | Description |
---|---|
VideoBufferCollection |
Overrides
FM.LiveSwitch.MediaFrame<FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat, FM.LiveSwitch.VideoFrame>.CreateMediaBufferCollection()
GenerateFrame(Int32, Int32, String)
Generates a black video frame for the given width, height, and format.
Declaration
public static VideoFrame GenerateFrame(int width, int height, string formatName)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | The width. |
System.Int32 | height | The height. |
System.String | formatName | The format name. |
Returns
Type | Description |
---|---|
VideoFrame |
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |