Class VideoCapturePara
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Parameters of VideoCapture for hardware acceleration Please check the link below for current HW acceleration types support matrix https://github.com/opencv/opencv/wiki/Video-IO-hardware-acceleration
[Serializable]
public record VideoCapturePara : IEquatable<VideoCapturePara>
- Inheritance
-
VideoCapturePara
- Implements
- Inherited Members
Constructors
VideoCapturePara()
Constructor, parameter of VideoCapture for hardware acceleration
public VideoCapturePara()
VideoCapturePara(VideoAccelerationType, int)
Constructor, parameter of VideoCapture for hardware acceleration
public VideoCapturePara(VideoAccelerationType videoAcceleration, int deviceIndex)
Parameters
videoAccelerationVideoAccelerationTypeVideo Acceleration type
deviceIndexintHardware device index
Properties
AccelerationType
Used as value in #CAP_PROP_HW_ACCELERATION and #VIDEOWRITER_PROP_HW_ACCELERATION note In case of FFmpeg backend, it translated to enum AVHWDeviceType (https://github.com/FFmpeg/FFmpeg/blob/master/libavutil/hwcontext.h)
public VideoAccelerationType AccelerationType { get; }
Property Value
HwDeviceIndex
Hardware device index (select GPU if multiple available). Device enumeration is acceleration type specific.
public int HwDeviceIndex { get; }
Property Value
Methods
GetParameters()
Get parameters of VideoCapture for hardware acceleration
public int[] GetParameters()
Returns
- int[]