fm.liveswitch.NullViewSink< T > Class Template Reference

A video view sink that does nothing. More...

Public Member Functions

long getFrameCount ()
 Gets the current frame count. More...
 
String getLabel ()
 Gets a label that identifies this class. More...
 
getView ()
 Gets the view. More...
 
boolean getViewMirror ()
 Gets a value indicating whether the view is mirrored. More...
 
fm.liveswitch.LayoutScale getViewScale ()
 Gets the view scale. More...
 
 NullViewSink ()
 Initializes a new instance of the fm.liveswitch.NullViewSink class. More...
 
 NullViewSink (fm.liveswitch.VideoFormat inputFormat)
 Initializes a new instance of the fm.liveswitch.NullViewSink class. More...
 
fm.liveswitch.Future< Object > renderedFrames (long count)
 Creates a future that resolves when the specified number of frames have been processed. More...
 
void setViewMirror (boolean value)
 Sets a value indicating whether the view is mirrored. More...
 
void setViewScale (fm.liveswitch.LayoutScale value)
 Sets the view scale. More...
 
void updateMaxInputBitrate (int maxInputBitrate)
 Sets the maximum allowed input bitrate, in kbps. More...
 
void updateMinInputBitrate (int minInputBitrate)
 Sets the minimum allowed input bitrate, in kbps. More...
 
- Public Member Functions inherited from fm.liveswitch.ViewSink< T >
boolean getIsRecording ()
 Gets a value indicating whether a recording icon should be displayed. More...
 
void setIsRecording (boolean value)
 Sets a value indicating whether a recording icon should be displayed. 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...
 
- Public Member Functions inherited from fm.liveswitch.VideoSink
void addOnProcessSizeChange (fm.liveswitch.IAction1< fm.liveswitch.Size > value)
 Adds a handler that is raised when a frame is about to be processed with a size that does not match the prior frame. More...
 
String getContent ()
 Gets the content descriptor. More...
 
fm.liveswitch.EncodingInfo getMaxInputEncoding ()
 Gets the maximum allowed input encoding. More...
 
double getMaxInputFrameRate ()
 Gets the maximum allowed input frame-rate, in fps. More...
 
int getMaxInputHeight ()
 Gets the maximum allowed input height. More...
 
double getMaxInputScale ()
 Gets the maximum allowed input scale. More...
 
fm.liveswitch.Size getMaxInputSize ()
 Gets the maximum allowed input size. More...
 
int getMaxInputWidth ()
 Gets the maximum allowed input width. More...
 
fm.liveswitch.EncodingInfo getMinInputEncoding ()
 Gets the minimum allowed input encoding. More...
 
double getMinInputFrameRate ()
 Gets the minimum allowed input frame-rate, in fps. More...
 
int getMinInputHeight ()
 Gets the minimum allowed input height. More...
 
double getMinInputScale ()
 Gets the minimum allowed input scale. More...
 
fm.liveswitch.Size getMinInputSize ()
 Gets the minimum allowed input size. More...
 
int getMinInputWidth ()
 Gets the minimum allowed input width. More...
 
boolean getOverConstrainedFrameRate ()
 Gets whether the sink frame-rate is over-constrained. More...
 
boolean getOverConstrainedHeight ()
 Gets whether the sink height is over-constrained. More...
 
boolean getOverConstrainedInput ()
 Gets whether the input is over-contrained. More...
 
boolean getOverConstrainedInputFrameRate ()
 Gets whether the minimum allowed input frame-rate exceeds the maximum allowed input frame-rate. More...
 
boolean getOverConstrainedInputHeight ()
 Gets whether the minimum allowed input height exceeds the maximum allowed input height. More...
 
boolean getOverConstrainedInputScale ()
 Gets whether the minimum allowed input scale exceeds the maximum allowed input scale. More...
 
boolean getOverConstrainedInputSize ()
 Gets whether the minimum allowed input size exceeds the maximum allowed input size. More...
 
boolean getOverConstrainedInputWidth ()
 Gets whether the minimum allowed input width exceeds the maximum allowed input width. More...
 
boolean getOverConstrainedScale ()
 Gets whether the sink scale is over-constrained. More...
 
boolean getOverConstrainedSize ()
 Gets whether the sink size is over-constrained. More...
 
boolean getOverConstrainedWidth ()
 Gets whether the sink width is over-constrained. More...
 
fm.liveswitch.VideoType getVideoType ()
 Gets the video type. More...
 
void removeOnProcessSizeChange (fm.liveswitch.IAction1< fm.liveswitch.Size > value)
 Removes a handler that is raised when a frame is about to be processed with a size that does not match the prior frame. More...
 
 VideoSink ()
 Initializes a new instance of the fm.liveswitch.VideoSink class. More...
 
 VideoSink (fm.liveswitch.VideoFormat inputFormat)
 Initializes a new instance of the fm.liveswitch.VideoSink class. More...
 
- Public Member Functions inherited from fm.liveswitch.MediaSinkBase
String getExternalId ()
 Gets the external identifier. More...
 
String getId ()
 Gets the identifier. More...
 
String getTag ()
 Gets optional data to associate with this instance. More...
 
void setExternalId (String value)
 Sets the external identifier. More...
 
void setTag (String value)
 Sets optional data to associate with this instance. More...
 
- Public Member Functions inherited from fm.liveswitch.Dynamic
java.util.HashMap< String, Object > getDynamicProperties ()
 Gets all dynamic properties on this instance. More...
 
Object getDynamicValue (String key)
 Gets a property value from the local cache. More...
 
void setDynamicValue (String key, Object value)
 Sets a property value in the local cache. More...
 
boolean unsetDynamicValue (String key)
 Removes a property value from the local cache. More...
 
- Public Member Functions inherited from fm.liveswitch.IElement
abstract String getExternalId ()
 Gets the external identifier. More...
 
abstract String getId ()
 Gets the identifier. More...
 
abstract String getPipelineJson ()
 Gets the pipeline JSON with this as the central point. More...
 
abstract void setExternalId (String value)
 Sets the external identifier. More...
 
- Public Member Functions inherited from fm.liveswitch.IMediaElement
abstract boolean destroy ()
 Destroys this instance. More...
 
abstract boolean getDeactivated ()
 Gets a value indicating whether this instance is deactivated. More...
 
abstract boolean getDisabled ()
 Gets a value indicating whether this instance is disabled. More...
 
abstract boolean getMuted ()
 Gets a value indicating whether this instance is muted. More...
 
abstract boolean getPaused ()
 Gets a value indicating whether this instance is paused. More...
 
abstract boolean getPersistent ()
 Gets a value indicating whether this instance is persistent. More...
 
abstract void setDeactivated (boolean value)
 Sets a value indicating whether this instance is deactivated. More...
 
abstract void setMuted (boolean value)
 Sets a value indicating whether this instance is muted. More...
 
- Public Member Functions inherited from fm.liveswitch.IViewSink< T >
abstract TView 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...
 
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...
 

Protected Member Functions

void renderBuffer (fm.liveswitch.VideoBuffer inputBuffer)
 Renders a video buffer. More...
 
- Protected Member Functions inherited from fm.liveswitch.ViewSink< T >
void doDestroy ()
 Destroys this instance. More...
 
void doProcessFrame (fm.liveswitch.VideoFrame frame, fm.liveswitch.VideoBuffer inputBuffer)
 Processes a frame. More...
 
- Protected Member Functions inherited from fm.liveswitch.VideoSink
fm.liveswitch.IVideoOutputCollection createOutputCollection (fm.liveswitch.IVideoInput input)
 Creates an output collection. More...
 
void doPreProcessFrame (fm.liveswitch.VideoFrame frame, fm.liveswitch.VideoBuffer inputBuffer)
 Pre-processes a frame. More...
 
void setMaxInputEncoding (fm.liveswitch.EncodingInfo value)
 Sets the maximum allowed input encoding. More...
 
void setMaxInputFrameRate (double value)
 Sets the maximum allowed input frame-rate, in fps. More...
 
void setMaxInputScale (double value)
 Sets the maximum allowed input scale. More...
 
void setMaxInputSize (fm.liveswitch.Size value)
 Sets the maximum allowed input size. More...
 
void setMinInputEncoding (fm.liveswitch.EncodingInfo value)
 Sets the minimum allowed input encoding. More...
 
void setMinInputFrameRate (double value)
 Sets the minimum allowed input frame-rate, in fps. More...
 
void setMinInputScale (double value)
 Sets the minimum allowed input scale. More...
 
void setMinInputSize (fm.liveswitch.Size value)
 Sets the minimum allowed input size. More...
 
void setVideoType (fm.liveswitch.VideoType value)
 Sets the video type. More...
 
- Protected Member Functions inherited from fm.liveswitch.MediaSinkBase
 MediaSinkBase ()
 
- Protected Member Functions inherited from fm.liveswitch.Dynamic
 Dynamic ()
 
- Protected Member Functions inherited from fm.liveswitch.Serializable
boolean getIsDirty ()
 Gets a value indicating whether this instance is dirty. More...
 
 Serializable ()
 Initializes a new instance of the fm.liveswitch.Serializable class. More...
 
void setIsDirty (boolean value)
 Sets a value indicating whether this instance is dirty. More...
 

Detailed Description

A video view sink that does nothing.

Constructor & Destructor Documentation

◆ NullViewSink() [1/2]

Initializes a new instance of the fm.liveswitch.NullViewSink class.

◆ NullViewSink() [2/2]

Initializes a new instance of the fm.liveswitch.NullViewSink class.

Parameters
inputFormatThe input format.

Member Function Documentation

◆ getFrameCount()

long fm.liveswitch.NullViewSink< T >.getFrameCount ( )

Gets the current frame count.

◆ getLabel()

String fm.liveswitch.NullViewSink< T >.getLabel ( )

Gets a label that identifies this class.

Implements fm.liveswitch.IMediaElement.

◆ getView()

T fm.liveswitch.NullViewSink< T >.getView ( )

Gets the view.

Reimplemented from fm.liveswitch.ViewSink< T >.

◆ getViewMirror()

boolean fm.liveswitch.NullViewSink< T >.getViewMirror ( )

Gets a value indicating whether the view is mirrored.

Reimplemented from fm.liveswitch.ViewSink< T >.

◆ getViewScale()

Gets the view scale.

Reimplemented from fm.liveswitch.ViewSink< T >.

◆ renderBuffer()

void fm.liveswitch.NullViewSink< T >.renderBuffer ( fm.liveswitch.VideoBuffer  inputBuffer)
protected

Renders a video buffer.

Parameters
inputBufferThe input buffer.

Reimplemented from fm.liveswitch.ViewSink< T >.

◆ renderedFrames()

fm.liveswitch.Future<Object> fm.liveswitch.NullViewSink< T >.renderedFrames ( long  count)

Creates a future that resolves when the specified number of frames have been processed.

Parameters
count

◆ setViewMirror()

void fm.liveswitch.NullViewSink< T >.setViewMirror ( boolean  value)

Sets a value indicating whether the view is mirrored.

Reimplemented from fm.liveswitch.ViewSink< T >.

◆ setViewScale()

void fm.liveswitch.NullViewSink< T >.setViewScale ( fm.liveswitch.LayoutScale  value)

Sets the view scale.

Reimplemented from fm.liveswitch.ViewSink< T >.

◆ updateMaxInputBitrate()

void fm.liveswitch.NullViewSink< T >.updateMaxInputBitrate ( int  maxInputBitrate)

Sets the maximum allowed input bitrate, in kbps.

A value of -1 indicates unset (no maximum).

Parameters
maxInputBitrateThe maximum allowed input bitrate, in kbps.

◆ updateMinInputBitrate()

void fm.liveswitch.NullViewSink< T >.updateMinInputBitrate ( int  minInputBitrate)

Sets the minimum allowed input bitrate, in kbps.

A value of -1 indicates unset (no minimum).

Parameters
minInputBitrateThe minimum allowed input bitrate, in kbps.