Class LVCVideoInput
Live Video Compositor video input. Implements the LVCInput.
Implements
Inherited Members
Namespace: VisioForge.Core.LiveVideoCompositor
Assembly: VisioForge.Core.dll
Syntax
public class LVCVideoInput : LVCInput, IDisposable
Constructors
LVCVideoInput(string, LiveVideoCompositor, MediaBlock, VideoFrameInfoX, Rect, bool, MediaBlock)
Initializes a new instance of the LVCVideoInput class.
Declaration
public LVCVideoInput(string name, LiveVideoCompositor compositor, MediaBlock mainBlock, VideoFrameInfoX info, Rect rect, bool autostart, MediaBlock processingBlock = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name. |
LiveVideoCompositor | compositor | The compositor. |
MediaBlock | mainBlock | The main block. |
VideoFrameInfoX | info | The video frame info (width, height and frame rate are required). |
Rect | rect | The rectangle. |
bool | autostart | if set to |
MediaBlock | processingBlock | The processing block (optional). |
LVCVideoInput(string, MediaBlock, VideoFrameInfoX, Rect, bool, MediaBlock)
Initializes a new instance of the LVCVideoInput class.
Declaration
public LVCVideoInput(string name, MediaBlock mainBlock, VideoFrameInfoX info, Rect rect, bool autostart, MediaBlock processingBlock = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name. |
MediaBlock | mainBlock | The main block. |
VideoFrameInfoX | info | The video frame info (width, height and frame rate are required). |
Rect | rect | The rectangle. |
bool | autostart | if set to |
MediaBlock | processingBlock | The processing block (optional). |
Properties
Rectangle
Gets or sets the rectangle. This property is ignored if the playback is started. Use the Input_VideoStream_Update method to update the rectangle during the playback.
Declaration
public Rect Rectangle { get; set; }
Property Value
Type | Description |
---|---|
Rect | The rectangle. |
Methods
Build(int, string, int, string)
Builds.
Declaration
public override void Build(int id, string uniqueName, int id2 = -1, string uniqueName2 = null)
Parameters
Type | Name | Description |
---|---|---|
int | id | The identifier. |
string | uniqueName | Unique name. |
int | id2 | The identifier 2. |
string | uniqueName2 | Unique name 2. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | _mediaType - null. |