fm.liveswitch.java.ImageViewSink Class Reference

A JavaFX ImageView-based video view sink. More...

Public Member Functions

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...
 
 ImageViewSink ()
 Initializes a new instance of the ImageViewSink class. More...
 
 ImageViewSink (IVideoOutput input)
 Initializes a new instance of the ImageViewSink class. More...
 
 ImageViewSink (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...
 
void renderImage (Image image)
 Renders an image. 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 renderBuffer (VideoBuffer buffer)
 Renders a video buffer. 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

A JavaFX ImageView-based video view sink.

Constructor & Destructor Documentation

◆ ImageViewSink() [1/6]

fm.liveswitch.java.ImageViewSink.ImageViewSink ( )

Initializes a new instance of the ImageViewSink class.

◆ ImageViewSink() [2/6]

fm.liveswitch.java.ImageViewSink.ImageViewSink ( IVideoOutput  input)

Initializes a new instance of the ImageViewSink class.

Parameters
inputThe input.

◆ ImageViewSink() [3/6]

fm.liveswitch.java.ImageViewSink.ImageViewSink ( IVideoOutput[]  inputs)

Initializes a new instance of the ImageViewSink class.

Parameters
inputsThe inputs.

◆ ImageViewSink() [4/6]

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

Initializes a new instance of the ImageViewSink class.

Parameters
viewThe view.

◆ ImageViewSink() [5/6]

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

Initializes a new instance of the ImageViewSink class.

Parameters
viewThe view.
inputThe input.

◆ ImageViewSink() [6/6]

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

Initializes a new instance of the ImageViewSink class.

Parameters
viewThe view.
inputsThe inputs.

Member Function Documentation

◆ getLabel()

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

Gets a label that identifies this class.

◆ getView()

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

Gets the view.

◆ getViewMirror()

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

Gets a value indicating whether the view is mirrored.

◆ getViewScale()

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

Gets the view scale.

◆ renderBuffer()

void fm.liveswitch.java.ImageViewSink.renderBuffer ( VideoBuffer  buffer)
protected

Renders a video buffer.

Parameters
bufferThe buffer.

◆ renderImage()

void fm.liveswitch.java.ImageViewSink.renderImage ( Image  image)

Renders an image.

Parameters
imageThe image.

◆ setViewMirror()

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

Sets a value indicating whether the view is mirrored.

◆ setViewScale()

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

Sets the view scale.