Class VideoCaptureDeviceInfo
- Namespace
- VisioForge.Core.Types.X.Sources
- Assembly
- VisioForge.Core.dll
Video capture device information.
public class VideoCaptureDeviceInfo : IComparableInheritance
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
deviceDevice-
The device.
Properties
API
Gets the API.
public VideoCaptureDeviceAPI API { get; protected set; }Property Value
AudioFormats
Gets audio formats (if device have audio pin).
public List<string> AudioFormats { get; protected set; }Property Value
AudioOutput
Gets a value indicating whether audio output pin present on video capture device.
public bool AudioOutput { get; protected set; }Property Value
DevicePath
Gets device path.
public string DevicePath { get; set; }Property Value
DisplayName
Gets device name including API.
public string DisplayName { get; }Property Value
Facing
Gets the facing.
public VideoCaptureDeviceFacing Facing { get; protected set; }Property Value
InternalName
Gets the internal name.
public string InternalName { get; protected set; }Property Value
Name
Gets device name.
public string Name { get; protected set; }Property Value
Orientation
Gets the orientation.
public VideoCaptureDeviceOrientation Orientation { get; }Property Value
VideoFormats
Gets video formats.
public List<VideoCaptureDeviceFormatInfo> VideoFormats { get; protected set; }Property Value
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
objobject-
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 objin the sort order.Zero This instance occurs in the same position in the sort order as obj.Greater than zero This instance follows objin 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
frameRateVideoFrameRate-
The frame rate.
Returns
- VideoCaptureDeviceFormatInfo
-
VideoCaptureDeviceFormatInfo.
GetHDVideoFormatAndFrameRate(out VideoFrameRate)
Gets the HD video format and frame rate.
public VideoCaptureDeviceFormatInfo GetHDVideoFormatAndFrameRate(out VideoFrameRate frameRate)Parameters
frameRateVideoFrameRate-
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
widthLimitint-
The max width.
heightLimitint-
The max height.
frameRateVideoFrameRate-
The frame rate.
Returns
- VideoCaptureDeviceFormatInfo
-
VideoCaptureDeviceFormatInfo.
ToString()
Class as a string.
public override string ToString()