Click or drag to resize
Accord.NET (logo)

VideoCaptureDeviceDesiredAverageTimePerFrame Property

The desired average display time of the video frames, in 100-nanosecond units. There is no guarantee that the device will actually respect this setting, however some devices will not work unless this property is set. See remarks for details.

Namespace:  Accord.Video.DirectShow
Assembly:  Accord.Video.DirectShow (in Accord.Video.DirectShow.dll) Version: 3.8.0
Syntax
public int DesiredAverageTimePerFrame { get; set; }
Request Example View Source

Property Value

Type: Int32
Remarks

This property controls the initialization of the AvgTimePerFrame member of the DirectShow's VideoInfoHeader structure. In normal situations this property does not need to be set, but some combinations of hardware and DirectShow filters might require this property to be set to 0 to achieve a good frame rate. If this property is set to -1, the AvgTimePerFrame member will not be initialized at all.

The default value for this property is 0 (AvgTimePerFrame will be initialized with 0).

See Also