Table of Contents

Class VideoCaptureDeviceSourceSettings

Namespace
VisioForge.Core.Types.X.Sources
Assembly
VisioForge.Core.dll

Video capture device source settings.

public class VideoCaptureDeviceSourceSettings : IVideoCaptureBaseVideoSourceSettings, IVideoMixerSource, IVideoSourceSettings, IMediaBlockSettings

Inheritance

Implements

Inherited Members

Constructors

VideoCaptureDeviceSourceSettings(VideoCaptureDeviceInfo, VideoCaptureDeviceFormat)

Initializes a new instance of the VisioForge.Core.Types.X.Sources.VideoCaptureDeviceSourceSettings class.

public VideoCaptureDeviceSourceSettings(VideoCaptureDeviceInfo device, VideoCaptureDeviceFormat format)

Parameters

device VideoCaptureDeviceInfo

The device.

format VideoCaptureDeviceFormat

The format.

VideoCaptureDeviceSourceSettings()

Initializes a new empty instance of the VisioForge.Core.Types.X.Sources.VideoCaptureDeviceSourceSettings class. The VisioForge.Core.Types.X.Sources.VideoCaptureDeviceSourceSettings.Device and VisioForge.Core.Types.X.Sources.VideoCaptureDeviceSourceSettings.Format properties must be set before use.

public VideoCaptureDeviceSourceSettings()

VideoCaptureDeviceSourceSettings(VideoCaptureDeviceInfo)

Initializes a new instance of the VisioForge.Core.Types.X.Sources.VideoCaptureDeviceSourceSettings class.

public VideoCaptureDeviceSourceSettings(VideoCaptureDeviceInfo device)

Parameters

device VideoCaptureDeviceInfo

The device.

Properties

CustomFlipRotate

Gets or sets the custom optional flip/rotate.

public VideoFlipRotateMethod CustomFlipRotate { get; set; }

Property Value

VideoFlipRotateMethod

Device

Gets or sets the device.

public VideoCaptureDeviceInfo Device { get; set; }

Property Value

VideoCaptureDeviceInfo

DisableH264Decoder

Gets or sets a value indicating whether to disable H264 decoder for cameras provided H264 output.

public bool DisableH264Decoder { get; set; }

Property Value

bool

Format

Gets or sets the format.

public VideoCaptureDeviceFormat Format { get; set; }

Property Value

VideoCaptureDeviceFormat

SmoothZoom

Gets or sets a value indicating whether smooth zoom is enabled.

public bool SmoothZoom { get; set; }

Property Value

bool

Methods

CreateBlock()

Creates the block.

public MediaBlock CreateBlock()

Returns

MediaBlock

MediaBlock.

FindByDevicePath(VideoCaptureDeviceInfo[], string)

Finds a video capture device by its device path and creates settings for it. Use this method to restore a saved camera profile by matching the device path.

public static VideoCaptureDeviceSourceSettings FindByDevicePath(VideoCaptureDeviceInfo[] devices, string devicePath)

Parameters

devices VideoCaptureDeviceInfo[]

The enumerated video capture devices.

devicePath string

The saved device path to search for.

Returns

VideoCaptureDeviceSourceSettings

A new VisioForge.Core.Types.X.Sources.VideoCaptureDeviceSourceSettings if a matching device is found; otherwise, null.

FindByDevicePath(VideoCaptureDeviceInfo[], string, VideoCaptureDeviceFormat)

Finds a video capture device by its device path and creates settings with the specified format. Use this method to restore a saved camera profile with a specific resolution and frame rate.

public static VideoCaptureDeviceSourceSettings FindByDevicePath(VideoCaptureDeviceInfo[] devices, string devicePath, VideoCaptureDeviceFormat format)

Parameters

devices VideoCaptureDeviceInfo[]

The enumerated video capture devices.

devicePath string

The saved device path to search for.

format VideoCaptureDeviceFormat

The saved video format (resolution, pixel format, frame rate).

Returns

VideoCaptureDeviceSourceSettings

A new VisioForge.Core.Types.X.Sources.VideoCaptureDeviceSourceSettings if a matching device is found; otherwise, null.

ToString()

Returns a String that represents this instance.

public override string ToString()

Returns

string

A String that represents this instance.