Table of Contents

Class VideoCaptureDeviceInfo

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

Video capture device information.

public class VideoCaptureDeviceInfo : IComparable

Inheritance

Implements

Inherited Members

Constructors

VideoCaptureDeviceInfo()

public VideoCaptureDeviceInfo()

VideoCaptureDeviceInfo(Device)

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

public VideoCaptureDeviceInfo(Device device)

Parameters

device Device

The device.

Properties

API

Gets the API.

public VideoCaptureDeviceAPI API { get; protected set; }

Property Value

VideoCaptureDeviceAPI

AudioFormats

Gets audio formats (if device have audio pin).

public List<string> AudioFormats { get; protected set; }

Property Value

List<string>

AudioOutput

Gets a value indicating whether audio output pin present on video capture device.

public bool AudioOutput { get; protected set; }

Property Value

bool

DevicePath

Gets device path.

public string DevicePath { get; set; }

Property Value

string

DisplayName

Gets device name including API.

public string DisplayName { get; }

Property Value

string

Facing

Gets the facing.

public VideoCaptureDeviceFacing Facing { get; protected set; }

Property Value

VideoCaptureDeviceFacing

InternalName

Gets the internal name.

public string InternalName { get; protected set; }

Property Value

string

Name

Gets device name.

public string Name { get; protected set; }

Property Value

string

Orientation

Gets the orientation.

public VideoCaptureDeviceOrientation Orientation { get; }

Property Value

VideoCaptureDeviceOrientation

VideoFormats

Gets video formats.

public List<VideoCaptureDeviceFormatInfo> VideoFormats { get; protected set; }

Property Value

List<VideoCaptureDeviceFormatInfo>

Methods

CalculateVideoRotation()

Calculates the video rotation.

public virtual int CalculateVideoRotation()

Returns

int

System.Int32.

CompareTo(object)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public int CompareTo(object obj)

Parameters

obj object

An object to compare with this instance.

Returns

int

A value that indicates the relative order of the objects being compared. The return value has these meanings:

Value Meaning
Less than zero This instance precedes obj in the sort order.
Zero This instance occurs in the same position in the sort order as obj.
Greater than zero This instance follows obj in the sort order.

GetHDOrAnyVideoFormatAndFrameRate(out VideoFrameRate)

Gets the HD (if available) or any video format and frame rate.

public VideoCaptureDeviceFormatInfo GetHDOrAnyVideoFormatAndFrameRate(out VideoFrameRate frameRate)

Parameters

frameRate VideoFrameRate

The frame rate.

Returns

VideoCaptureDeviceFormatInfo

VideoCaptureDeviceFormatInfo.

GetHDVideoFormatAndFrameRate(out VideoFrameRate)

Gets the HD video format and frame rate.

public VideoCaptureDeviceFormatInfo GetHDVideoFormatAndFrameRate(out VideoFrameRate frameRate)

Parameters

frameRate VideoFrameRate

The frame rate.

Returns

VideoCaptureDeviceFormatInfo

VideoCaptureDeviceFormatInfo.

GetVideoFormatAndFrameRate(int, int, out VideoFrameRate)

Gets the HD video format and frame rate.

public VideoCaptureDeviceFormatInfo GetVideoFormatAndFrameRate(int widthLimit, int heightLimit, out VideoFrameRate frameRate)

Parameters

widthLimit int

The max width.

heightLimit int

The max height.

frameRate VideoFrameRate

The frame rate.

Returns

VideoCaptureDeviceFormatInfo

VideoCaptureDeviceFormatInfo.

ToString()

Class as a string.

public override string ToString()

Returns

string

Returns String.