Class Texture2DSource
A Texture2D-based video source.
Inheritance
System.Object
MediaSource<IVideoOutput, IVideoInput, IVideoInputCollection, VideoSource, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
Texture2DSource
Implements
Inherited Members
Namespace: FM.LiveSwitch.Unity
Assembly: FM.LiveSwitch.Unity.dll
Syntax
public class Texture2DSource : Texture2DSourceBase, IVideoOutput, IMediaOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement
Constructors
Texture2DSource()
Initializes a new instance of the Texture2DSource class.
Declaration
public Texture2DSource()
Texture2DSource(VideoFormat)
Initializes a new instance of the Texture2DSource class.
Declaration
public Texture2DSource(VideoFormat outputFormat)
Parameters
Type | Name | Description |
---|---|---|
VideoFormat | outputFormat |
Texture2DSource(VideoFormat, Int32)
Initializes a new instance of the Texture2DSource class.
Declaration
public Texture2DSource(VideoFormat outputFormat, int targetFrameRate)
Parameters
Type | Name | Description |
---|---|---|
VideoFormat | outputFormat | |
System.Int32 | targetFrameRate |
Texture2DSource(Int32)
Initializes a new instance of the Texture2DSource class.
Declaration
public Texture2DSource(int targetFrameRate)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | targetFrameRate |
Texture2DSource(Texture2D)
Initializes a new instance of the Texture2DSource class.
Declaration
public Texture2DSource(Texture2D texture2D)
Parameters
Type | Name | Description |
---|---|---|
Texture2D | texture2D |
Texture2DSource(Texture2D, Int32)
Initializes a new instance of the Texture2DSource class.
Declaration
public Texture2DSource(Texture2D texture2D, int targetFrameRate)
Parameters
Type | Name | Description |
---|---|---|
Texture2D | texture2D | |
System.Int32 | targetFrameRate |
Properties
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IVideoOutput, FM.LiveSwitch.IVideoInput, FM.LiveSwitch.IVideoInputCollection, FM.LiveSwitch.VideoSource, FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat>.Label
Texture2D
Gets or sets the underlying Texture2D.
Declaration
public Texture2D Texture2D { get; set; }
Property Value
Type | Description |
---|---|
Texture2D |
Methods
GetTexture2D()
Gets the current Texture2D.
Declaration
protected override Texture2D GetTexture2D()
Returns
Type | Description |
---|---|
Texture2D |