fm.liveswitch.android.ImageViewSink Class Reference

An ImageView-based video sink. More...

Public Member Functions

 ImageViewSink (Context context)
 Initializes a new instance of the ImageViewSink class. More...
 
 ImageViewSink (Context context, IVideoOutput input)
 Initializes a new instance of the ImageViewSink class. More...
 
 ImageViewSink (Context context, IVideoOutput[] inputs)
 Initializes a new instance of the ImageViewSink class. More...
 
 ImageViewSink (ImageView view)
 Initializes a new instance of the ImageViewSink class. More...
 
 ImageViewSink (ImageView view, IVideoOutput input)
 Initializes a new instance of the ImageViewSink class. More...
 
 ImageViewSink (ImageView view, IVideoOutput[] inputs)
 Initializes a new instance of the ImageViewSink class. More...
 
ImageView 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...
 
void renderBitmap (final Bitmap bitmap)
 Renders a bitmap. More...
 
- Public Member Functions inherited from fm.liveswitch.ViewSink< ImageView >
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< ImageView >
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...
 

Detailed Description

An ImageView-based video sink.

Constructor & Destructor Documentation

◆ ImageViewSink() [1/6]

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

Initializes a new instance of the ImageViewSink class.

Parameters
contextThe Android context.

◆ ImageViewSink() [2/6]

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

Initializes a new instance of the ImageViewSink class.

Parameters
contextThe Android context.
inputThe input.

◆ ImageViewSink() [3/6]

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

Initializes a new instance of the ImageViewSink class.

Parameters
contextThe Android context.
inputsThe inputs.

◆ ImageViewSink() [4/6]

fm.liveswitch.android.ImageViewSink.ImageViewSink ( ImageView  view)

Initializes a new instance of the ImageViewSink class.

Parameters
viewThe view.

◆ ImageViewSink() [5/6]

fm.liveswitch.android.ImageViewSink.ImageViewSink ( ImageView  view,
IVideoOutput  input 
)

Initializes a new instance of the ImageViewSink class.

Parameters
viewThe view.
inputThe input.

◆ ImageViewSink() [6/6]

fm.liveswitch.android.ImageViewSink.ImageViewSink ( ImageView  view,
IVideoOutput[]  inputs 
)

Initializes a new instance of the ImageViewSink class.

Parameters
viewThe view.
inputsThe inputs.

Member Function Documentation

◆ doProcessFrame()

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

Processes a frame.

Parameters
frameThe frame.
inputBufferThe input buffer.

◆ getLabel()

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

Gets a label that identifies this class.

◆ getView()

ImageView fm.liveswitch.android.ImageViewSink.getView ( )

Gets the view.

◆ getViewMirror()

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

Gets a value indicating whether the view is mirrored.

◆ getViewScale()

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

Gets the view scale.

◆ renderBitmap()

void fm.liveswitch.android.ImageViewSink.renderBitmap ( final Bitmap  bitmap)

Renders a bitmap.

Parameters
bitmapThe bitmap.

◆ renderBuffer()

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

Renders a video buffer.

Parameters
bufferThe buffer.

◆ setViewMirror()

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

Sets a value indicating whether the view is mirrored.

◆ setViewScale()

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

Sets the view scale.