Class VideoCaptureDeviceSourceSettings
- Namespace
- VisioForge.Core.Types.X.Sources
- Assembly
- VisioForge.Core.dll
Video capture device source settings.
public class VideoCaptureDeviceSourceSettings : IVideoCaptureBaseVideoSourceSettings, IVideoMixerSource, IVideoSourceSettings, IMediaBlockSettingsInheritance
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
deviceVideoCaptureDeviceInfo-
The device.
formatVideoCaptureDeviceFormat-
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
deviceVideoCaptureDeviceInfo-
The device.
Properties
CustomFlipRotate
Gets or sets the custom optional flip/rotate.
public VideoFlipRotateMethod CustomFlipRotate { get; set; }Property Value
Device
Gets or sets the device.
public VideoCaptureDeviceInfo Device { get; set; }Property Value
DisableH264Decoder
Gets or sets a value indicating whether to disable H264 decoder for cameras provided H264 output.
public bool DisableH264Decoder { get; set; }Property Value
Format
Gets or sets the format.
public VideoCaptureDeviceFormat Format { get; set; }Property Value
SmoothZoom
Gets or sets a value indicating whether smooth zoom is enabled.
public bool SmoothZoom { get; set; }Property Value
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
devicesVideoCaptureDeviceInfo[]-
The enumerated video capture devices.
devicePathstring-
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
devicesVideoCaptureDeviceInfo[]-
The enumerated video capture devices.
devicePathstring-
The saved device path to search for.
formatVideoCaptureDeviceFormat-
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()