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
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 Image
Declaration
public ImageViewSink(Context context)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
ImageViewSink(Context, IVideoOutput)
Initializes a new instance of the Image
Declaration
public ImageViewSink(Context context, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
IVideo |
input | The input. |
ImageViewSink(Context, IVideoOutput[])
Initializes a new instance of the Image
Declaration
public ImageViewSink(Context context, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The Android context. |
IVideo |
inputs | The inputs. |
ImageViewSink(ImageView)
Initializes a new instance of the Image
Declaration
public ImageViewSink(ImageView view)
Parameters
Type | Name | Description |
---|---|---|
Image |
view | The view. |
ImageViewSink(ImageView, IVideoOutput)
Initializes a new instance of the Image
Declaration
public ImageViewSink(ImageView view, IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
Image |
view | The view. |
IVideo |
input | The input. |
ImageViewSink(ImageView, IVideoOutput[])
Initializes a new instance of the Image
Declaration
public ImageViewSink(ImageView view, IVideoOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
Image |
view | The view. |
IVideo |
inputs | The inputs. |
Properties
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System. |
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 |
---|---|
Image |
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. |
Overrides
FM.LiveSwitch.ViewSink<ImageView>.ViewMirror
ViewScale
Gets or Sets the view scale.
Declaration
public override LayoutScale ViewScale { get; set; }
Property Value
Type | Description |
---|---|
Layout |
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 |
---|---|---|
Video |
frame | The frame. |
Video |
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 |
---|---|---|
Video |
buffer | The buffer. |
Overrides
FM.LiveSwitch.ViewSink<ImageView>.RenderBuffer(FM.LiveSwitch.VideoBuffer)