fm.liveswitch.android.OpenGLSink Class Reference

Public Member Functions

 OpenGLSink (Context context)
 Initializes a new instance of the OpenGLSink class. More...
 
 OpenGLSink (Context context, IVideoOutput input)
 Initializes a new instance of the OpenGLSink class. More...
 
 OpenGLSink (Context context, IVideoOutput[] inputs)
 Initializes a new instance of the OpenGLSink class. More...
 
 OpenGLSink (Context context, LayoutScale viewScale)
 Initializes a new instance of the OpenGLSink class. More...
 
 OpenGLSink (Context context, LayoutScale viewScale, IVideoOutput input)
 Initializes a new instance of the OpenGLSink class. More...
 
 OpenGLSink (Context context, LayoutScale viewScale, IVideoOutput[] inputs)
 Initializes a new instance of the OpenGLSink class. More...
 
 OpenGLSink (OpenGLView view)
 Initializes a new instance of the OpenGLSink class. More...
 
 OpenGLSink (OpenGLView view, IVideoOutput input)
 Initializes a new instance of the OpenGLSink class. More...
 
 OpenGLSink (OpenGLView view, IVideoOutput[] inputs)
 Initializes a new instance of the OpenGLSink class. More...
 
FrameLayout getView ()
 Gets the view. More...
 
LayoutScale getViewScale ()
 Gets the view scale. More...
 
void setViewScale (LayoutScale viewScale)
 Sets the view scale. More...
 
boolean getViewMirror ()
 Gets a value indicating whether the view is mirrored. More...
 
void setViewMirror (boolean viewMirror)
 Sets a value indicating whether the view is mirrored. More...
 
String getLabel ()
 Gets a label that identifies this class. More...
 
void renderBuffer (VideoBuffer buffer)
 Renders a video buffer. More...
 
- Public Member Functions inherited from fm.liveswitch.ViewSink< FrameLayout >
boolean getIsRecording ()
 Gets a value indicating whether a recording icon should be displayed. More...
 
abstract T getView ()
 Gets the view. More...
 
abstract boolean getViewMirror ()
 Gets a value indicating whether the view is mirrored. More...
 
abstract fm.liveswitch.LayoutScale getViewScale ()
 Gets the view scale. More...
 
void setIsRecording (boolean value)
 Sets a value indicating whether a recording icon should be displayed. More...
 
abstract void setViewMirror (boolean value)
 Sets a value indicating whether the view is mirrored. More...
 
abstract void setViewScale (fm.liveswitch.LayoutScale value)
 Sets the view scale. More...
 
 ViewSink ()
 Initializes a new instance of the fm.liveswitch.ViewSink class. More...
 
 ViewSink (fm.liveswitch.IVideoOutput input)
 Initializes a new instance of the fm.liveswitch.ViewSink class. More...
 
 ViewSink (fm.liveswitch.VideoFormat inputFormat)
 Initializes a new instance of the fm.liveswitch.ViewSink class. More...
 
 ViewSink (fm.liveswitch.IVideoOutput[] inputs)
 Initializes a new instance of the fm.liveswitch.ViewSink class. More...
 

Protected Member Functions

void doProcessFrame (VideoFrame frame, VideoBuffer inputBuffer)
 Processes a frame. More...
 
- Protected Member Functions inherited from fm.liveswitch.ViewSink< FrameLayout >
void doDestroy ()
 Destroys this instance. More...
 
void doProcessFrame (fm.liveswitch.VideoFrame frame, fm.liveswitch.VideoBuffer inputBuffer)
 Processes a frame. More...
 
abstract void renderBuffer (fm.liveswitch.VideoBuffer inputBuffer)
 Renders the buffer. More...
 

Constructor & Destructor Documentation

◆ OpenGLSink() [1/9]

fm.liveswitch.android.OpenGLSink.OpenGLSink ( Context  context)

Initializes a new instance of the OpenGLSink class.

Parameters
contextThe Android context.

◆ OpenGLSink() [2/9]

fm.liveswitch.android.OpenGLSink.OpenGLSink ( Context  context,
IVideoOutput  input 
)

Initializes a new instance of the OpenGLSink class.

Parameters
contextThe Android context.
inputThe input.

◆ OpenGLSink() [3/9]

fm.liveswitch.android.OpenGLSink.OpenGLSink ( Context  context,
IVideoOutput[]  inputs 
)

Initializes a new instance of the OpenGLSink class.

Parameters
contextThe Android context.
inputsThe inputs.

◆ OpenGLSink() [4/9]

fm.liveswitch.android.OpenGLSink.OpenGLSink ( Context  context,
LayoutScale  viewScale 
)

Initializes a new instance of the OpenGLSink class.

Parameters
contextThe Android context.
viewScaleThe view scale.

◆ OpenGLSink() [5/9]

fm.liveswitch.android.OpenGLSink.OpenGLSink ( Context  context,
LayoutScale  viewScale,
IVideoOutput  input 
)

Initializes a new instance of the OpenGLSink class.

Parameters
contextThe Android context.
viewScaleThe view scale.
inputThe input.

◆ OpenGLSink() [6/9]

fm.liveswitch.android.OpenGLSink.OpenGLSink ( Context  context,
LayoutScale  viewScale,
IVideoOutput[]  inputs 
)

Initializes a new instance of the OpenGLSink class.

Parameters
contextThe Android context.
viewScaleThe view scale.
inputsThe inputs.

◆ OpenGLSink() [7/9]

fm.liveswitch.android.OpenGLSink.OpenGLSink ( OpenGLView  view)

Initializes a new instance of the OpenGLSink class.

Parameters
viewThe view.

◆ OpenGLSink() [8/9]

fm.liveswitch.android.OpenGLSink.OpenGLSink ( OpenGLView  view,
IVideoOutput  input 
)

Initializes a new instance of the OpenGLSink class.

Parameters
viewThe view.
inputThe input.

◆ OpenGLSink() [9/9]

fm.liveswitch.android.OpenGLSink.OpenGLSink ( OpenGLView  view,
IVideoOutput[]  inputs 
)

Initializes a new instance of the OpenGLSink class.

Parameters
viewThe view.
inputsThe inputs.

Member Function Documentation

◆ doProcessFrame()

void fm.liveswitch.android.OpenGLSink.doProcessFrame ( VideoFrame  frame,
VideoBuffer  inputBuffer 
)
protected

Processes a frame.

Parameters
frameThe frame.
inputBufferThe input buffer.

◆ getLabel()

String fm.liveswitch.android.OpenGLSink.getLabel ( )

Gets a label that identifies this class.

◆ getView()

FrameLayout fm.liveswitch.android.OpenGLSink.getView ( )

Gets the view.

◆ getViewMirror()

boolean fm.liveswitch.android.OpenGLSink.getViewMirror ( )

Gets a value indicating whether the view is mirrored.

◆ getViewScale()

LayoutScale fm.liveswitch.android.OpenGLSink.getViewScale ( )

Gets the view scale.

◆ renderBuffer()

void fm.liveswitch.android.OpenGLSink.renderBuffer ( VideoBuffer  buffer)

Renders a video buffer.

Parameters
bufferThe buffer.

◆ setViewMirror()

void fm.liveswitch.android.OpenGLSink.setViewMirror ( boolean  viewMirror)

Sets a value indicating whether the view is mirrored.

◆ setViewScale()

void fm.liveswitch.android.OpenGLSink.setViewScale ( LayoutScale  viewScale)

Sets the view scale.