Class OpenGLSink
An android OpenGL Sink.
Inheritance
Implements
Inherited Members
Namespace: FM.LiveSwitch.Android
Assembly: FM.LiveSwitch.Android.dll
Syntax
public class OpenGLSink : ViewSink<FrameLayout>, IVideoInput, IMediaInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement, IViewSink<FrameLayout>
Constructors
OpenGLSink(Context)
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(Context context)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
OpenGLSink(Context, IVideoOutput)
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(Context context, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
IVideoOutput | input | The input. |
OpenGLSink(Context, IVideoOutput[])
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(Context context, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
IVideoOutput[] | inputs | The inputs. |
OpenGLSink(Context, LayoutScale)
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(Context context, LayoutScale viewScale)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
LayoutScale | viewScale | The view scale. |
OpenGLSink(Context, LayoutScale, IVideoOutput)
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(Context context, LayoutScale viewScale, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
LayoutScale | viewScale | The view scale. |
IVideoOutput | input | The input. |
OpenGLSink(Context, LayoutScale, IVideoOutput[])
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(Context context, LayoutScale viewScale, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
LayoutScale | viewScale | The view scale. |
IVideoOutput[] | inputs | The inputs. |
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 input)
Parameters
Type | Name | Description |
---|---|---|
OpenGLView | view | The view. |
IVideoOutput | input | The input. |
OpenGLSink(OpenGLView, IVideoOutput[])
Initializes a new instance of the OpenGLSink class.
Declaration
public OpenGLSink(OpenGLView view, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
OpenGLView | view | The view. |
IVideoOutput[] | inputs | The inputs. |
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 FrameLayout View { get; }
Property Value
Type | Description |
---|---|
FrameLayout |
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
ViewScale
Gets or Sets the view scale.
Declaration
public override LayoutScale ViewScale { get; set; }
Property Value
Type | Description |
---|---|
LayoutScale |
Overrides
Methods
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. |
Overrides
RenderBuffer(VideoBuffer)
Renders a video buffer.
Declaration
protected override void RenderBuffer(VideoBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | buffer | The buffer. |