Class MediaFoundationCaptureDevice
- Namespace
- VisioForge.Core.Types.VideoCapture
- Assembly
- VisioForge.Core.dll
A camera that Media Foundation can open, and the video sizes it actually provides.
public sealed class MediaFoundationCaptureDeviceInheritance
Inherited Members
Remarks
Obtain instances from VideoCaptureCore.Video_MediaFoundationCaptureDevices.
This is not a VisioForge.Core.Types.VideoCapture.VideoCaptureDeviceInfo: there is no crossbar, audio pin,
tuner, or DirectShow format list. Pass the instance to
VisioForge.Core.Types.VideoCapture.VideoCaptureSource.#ctor(VisioForge.Core.Types.VideoCapture.MediaFoundationCaptureDevice).
Each format is a size the camera's own Media Foundation source reports, with the frame rates reported for that size. The capture graph receives RGB24 at the chosen size. A size that appears only in the DirectShow device list is not included.
Constructors
MediaFoundationCaptureDevice(string, string, IList<MediaFoundationCaptureFormat>)
Initializes a new instance of the VisioForge.Core.Types.VideoCapture.MediaFoundationCaptureDevice class.
public MediaFoundationCaptureDevice(string name, string devicePath, IList<MediaFoundationCaptureFormat> formats)Parameters
namestring-
The camera name reported by Media Foundation.
devicePathstring-
The camera's Media Foundation symbolic link.
formatsIList<MediaFoundationCaptureFormat>-
The sizes the camera provides. Copied.
Properties
DevicePath
Gets the Media Foundation symbolic link for this camera.
public string DevicePath { get; }Property Value
Remarks
VisioForge.Core.Types.VideoCapture.VideoCaptureSource.#ctor(VisioForge.Core.Types.VideoCapture.MediaFoundationCaptureDevice) copies this into VisioForge.Core.Types.VideoCapture.VideoCaptureSource.Path so two cameras with the same name stay distinct.
Formats
Gets the sizes this camera provides, in the order Media Foundation reported them.
public IReadOnlyList<MediaFoundationCaptureFormat> Formats { get; }Property Value
Name
Gets the camera name reported by Media Foundation.
public string Name { get; }Property Value
Methods
ToString()
Returns the camera name.
public override string ToString()Returns
- string
-
The value of VisioForge.Core.Types.VideoCapture.MediaFoundationCaptureDevice.Name.