Table of Contents

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 MediaFoundationCaptureFormat

Inheritance

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

width int

The frame width in pixels.

height int

The frame height in pixels.

frameRates IList<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

IReadOnlyList<VideoFrameRate>

Height

Gets the frame height in pixels.

public int Height { get; }

Property Value

int

Name

Gets the size string, widthxheight, for VisioForge.Core.Types.VideoCapture.VideoCaptureSource.Format.

public string Name { get; }

Property Value

string

Width

Gets the frame width in pixels.

public int Width { get; }

Property Value

int

Methods

ToString()

Returns the size string.

public override string ToString()

Returns

string

The value of VisioForge.Core.Types.VideoCapture.MediaFoundationCaptureFormat.Name.