Class OpenGLSink
An iOS OpenGL sink.
Inheritance
Implements
Inherited Members
Namespace: FM.LiveSwitch.Cocoa
Assembly: FM.LiveSwitch.Cocoa.dll
Syntax
public class OpenGLSink : ViewSink<OpenGLView>, IVideoInput, IMediaInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement, IViewSink<OpenGLView>
Constructors
OpenGLSink()
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink()
OpenGLSink(OpenGLView)
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(OpenGLView view)
Parameters
Type | Name | Description |
---|---|---|
OpenGLView | view | The view. |
OpenGLSink(OpenGLView, IVideoOutput)
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(OpenGLView view, IVideoOutput source)
Parameters
Type | Name | Description |
---|---|---|
OpenGLView | view | The view. |
IVideoOutput | source |
OpenGLSink(OpenGLView, IVideoOutput[])
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(OpenGLView view, IVideoOutput[] sources)
Parameters
Type | Name | Description |
---|---|---|
OpenGLView | view | The view. |
IVideoOutput[] | sources |
OpenGLSink(IVideoOutput)
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput | input | The input. |
OpenGLSink(IVideoOutput[])
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput[] | inputs | The inputs. |
OpenGLSink(LayoutScale)
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(LayoutScale scale)
Parameters
Type | Name | Description |
---|---|---|
LayoutScale | scale | The scale. |
OpenGLSink(LayoutScale, IVideoOutput)
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(LayoutScale scale, IVideoOutput source)
Parameters
Type | Name | Description |
---|---|---|
LayoutScale | scale | The scale. |
IVideoOutput | source |
OpenGLSink(LayoutScale, IVideoOutput[])
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(LayoutScale scale, IVideoOutput[] sources)
Parameters
Type | Name | Description |
---|---|---|
LayoutScale | scale | The scale. |
IVideoOutput[] | sources |
Properties
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
View
Gets the view.
Declaration
public override OpenGLView View { get; }
Property Value
Type | Description |
---|---|
OpenGLView |
Overrides
ViewMirror
Gets or sets a value indicating whether the view is mirrored.
Declaration
public override bool ViewMirror { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Exceptions
Type | Condition |
---|---|
System.Exception | View mirroring is not currently supported. |
ViewScale
Gets or sets the view scale.
Declaration
public override LayoutScale ViewScale { get; set; }
Property Value
Type | Description |
---|---|
LayoutScale |
Overrides
Exceptions
Type | Condition |
---|---|
System.Exception | View scale cannot be changed. |
Methods
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
Overrides
RenderBuffer(VideoBuffer)
Renders the buffer.
Declaration
protected override void RenderBuffer(VideoBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | inputBuffer | The input buffer. |