Class ImageViewSink
An ImageView-based video sink.
Inheritance
System.Object
MediaSink<IVideoOutput, IVideoOutputCollection, IVideoInput, VideoSink, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
ViewSink<ImageView>
ImageViewSink
Implements
IViewSink<ImageView>
Inherited Members
Namespace: FM.LiveSwitch.Android
Assembly: FM.LiveSwitch.Android.dll
Syntax
public class ImageViewSink : ViewSink<ImageView>, IVideoInput, IMediaInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement, IViewSink<ImageView>
Constructors
ImageViewSink(Context)
Initializes a new instance of the ImageViewSink class.
Declaration
public ImageViewSink(Context context)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
ImageViewSink(Context, IVideoOutput)
Initializes a new instance of the ImageViewSink class.
Declaration
public ImageViewSink(Context context, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
IVideoOutput | input | The input. |
ImageViewSink(Context, IVideoOutput[])
Initializes a new instance of the ImageViewSink class.
Declaration
public ImageViewSink(Context context, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
IVideoOutput[] | inputs | The inputs. |
ImageViewSink(ImageView)
Initializes a new instance of the ImageViewSink class.
Declaration
public ImageViewSink(ImageView view)
Parameters
Type | Name | Description |
---|---|---|
ImageView | view | The view. |
ImageViewSink(ImageView, IVideoOutput)
Initializes a new instance of the ImageViewSink class.
Declaration
public ImageViewSink(ImageView view, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
ImageView | view | The view. |
IVideoOutput | input | The input. |
ImageViewSink(ImageView, IVideoOutput[])
Initializes a new instance of the ImageViewSink class.
Declaration
public ImageViewSink(ImageView view, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
ImageView | view | The view. |
IVideoOutput[] | inputs | The inputs. |
Properties
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
FM.LiveSwitch.MediaSink<FM.LiveSwitch.IVideoOutput, FM.LiveSwitch.IVideoOutputCollection, FM.LiveSwitch.IVideoInput, FM.LiveSwitch.VideoSink, FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat>.Label
View
Gets the view.
Declaration
public override ImageView View { get; }
Property Value
Type | Description |
---|---|
ImageView |
Overrides
FM.LiveSwitch.ViewSink<ImageView>.View
ViewMirror
Gets or Sets a value indicating whether the view is mirrored.
Declaration
public override bool ViewMirror { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
FM.LiveSwitch.ViewSink<ImageView>.ViewMirror
ViewScale
Gets or Sets the view scale.
Declaration
public override LayoutScale ViewScale { get; set; }
Property Value
Type | Description |
---|---|
LayoutScale |
Overrides
FM.LiveSwitch.ViewSink<ImageView>.ViewScale
Methods
DoProcessFrame(VideoFrame, VideoBuffer)
Processes a frame.
Declaration
protected override void DoProcessFrame(VideoFrame frame, VideoBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
VideoFrame | frame | The frame. |
VideoBuffer | inputBuffer | The input buffer. |
Overrides
FM.LiveSwitch.ViewSink<ImageView>.DoProcessFrame(FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer)
RenderBitmap(Bitmap)
Renders a bitmap.
Declaration
public void RenderBitmap(Bitmap bitmap)
Parameters
Type | Name | Description |
---|---|---|
Bitmap | bitmap | The bitmap. |
RenderBuffer(VideoBuffer)
Renders a video buffer.
Declaration
protected override void RenderBuffer(VideoBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | buffer | The buffer. |
Overrides
FM.LiveSwitch.ViewSink<ImageView>.RenderBuffer(FM.LiveSwitch.VideoBuffer)