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 Open
Declaration
public OpenGLSink(Context context)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
OpenGLSink(Context, IVideoOutput)
Initializes a new instance of the Open
Declaration
public OpenGLSink(Context context, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
IVideo |
input | The input. |
OpenGLSink(Context, IVideoOutput[])
Initializes a new instance of the Open
Declaration
public OpenGLSink(Context context, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
IVideo |
inputs | The inputs. |
OpenGLSink(Context, LayoutScale)
Initializes a new instance of the Open
Declaration
public OpenGLSink(Context context, LayoutScale viewScale)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
Layout |
viewScale | The view scale. |
OpenGLSink(Context, LayoutScale, IVideoOutput)
Initializes a new instance of the Open
Declaration
public OpenGLSink(Context context, LayoutScale viewScale, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
Layout |
viewScale | The view scale. |
IVideo |
input | The input. |
OpenGLSink(Context, LayoutScale, IVideoOutput[])
Initializes a new instance of the Open
Declaration
public OpenGLSink(Context context, LayoutScale viewScale, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
Layout |
viewScale | The view scale. |
IVideo |
inputs | The inputs. |
OpenGLSink(OpenGLView)
Initializes a new instance of the Open
Declaration
public OpenGLSink(OpenGLView view)
Parameters
Type | Name | Description |
---|---|---|
Open |
view | The view. |
OpenGLSink(OpenGLView, IVideoOutput)
Initializes a new instance of the Open
Declaration
public OpenGLSink(OpenGLView view, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
Open |
view | The view. |
IVideo |
input | The input. |
OpenGLSink(OpenGLView, IVideoOutput[])
Initializes a new instance of the Open
Declaration
public OpenGLSink(OpenGLView view, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
Open |
view | The view. |
IVideo |
inputs | The inputs. |
Properties
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
View
Gets the view.
Declaration
public override FrameLayout View { get; }
Property Value
Type | Description |
---|---|
Frame |
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. |
Overrides
ViewScale
Gets or Sets the view scale.
Declaration
public override LayoutScale ViewScale { get; set; }
Property Value
Type | Description |
---|---|
Layout |
Overrides
Methods
DoProcessFrame(VideoFrame, VideoBuffer)
Processes a frame.
Declaration
protected override void DoProcessFrame(VideoFrame frame, VideoBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
Video |
frame | The frame. |
Video |
inputBuffer | The input buffer. |
Overrides
RenderBuffer(VideoBuffer)
Renders a video buffer.
Declaration
protected override void RenderBuffer(VideoBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
Video |
buffer | The buffer. |