Class MediaFoundationCaptureFormat
- Namespace
- VisioForge.Core.Types.VideoCapture
- Assembly
- VisioForge.Core.dll
One video size a Media Foundation camera provides, and the frame rates for that size.
public sealed class MediaFoundationCaptureFormatInheritance
Inherited Members
Remarks
VisioForge.Core.Types.VideoCapture.MediaFoundationCaptureFormat.Name is the string to assign to VisioForge.Core.Types.VideoCapture.VideoCaptureSource.Format
(for example 1280x960). Set VisioForge.Core.Types.VideoCapture.VideoCaptureSource.Format_UseBest to
false and VisioForge.Core.Types.VideoCapture.VideoCaptureSource.FrameRate to one of
VisioForge.Core.Types.VideoCapture.MediaFoundationCaptureFormat.FrameRates. The capture graph receives RGB24 at this size.
Constructors
MediaFoundationCaptureFormat(int, int, IList<VideoFrameRate>)
Initializes a new instance of the VisioForge.Core.Types.VideoCapture.MediaFoundationCaptureFormat class.
public MediaFoundationCaptureFormat(int width, int height, IList<VideoFrameRate> frameRates)Parameters
widthint-
The frame width in pixels.
heightint-
The frame height in pixels.
frameRatesIList<VideoFrameRate>-
The frame rates for this size. Copied. A rate with a zero numerator is omitted.
Properties
FrameRates
Gets the frame rates Media Foundation reported for this size.
public IReadOnlyList<VideoFrameRate> FrameRates { get; }Property Value
Height
Gets the frame height in pixels.
public int Height { get; }Property Value
Name
Gets the size string, widthxheight, for VisioForge.Core.Types.VideoCapture.VideoCaptureSource.Format.
public string Name { get; }Property Value
Width
Gets the frame width in pixels.
public int Width { get; }Property Value
Methods
ToString()
Returns the size string.
public override string ToString()Returns
- string
-
The value of VisioForge.Core.Types.VideoCapture.MediaFoundationCaptureFormat.Name.