Class VideoCapturePara
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
Inheritance
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class VideoCapturePara : IEquatable<VideoCapturePara>
Constructors
| Improve this Doc View SourceVideoCapturePara()
Constructor, parameter of VideoCapture for hardware acceleration
Declaration
public VideoCapturePara()
VideoCapturePara(VideoAccelerationType, Int32)
Constructor, parameter of VideoCapture for hardware acceleration
Declaration
public VideoCapturePara(VideoAccelerationType videoAcceleration, int deviceIndex)
Parameters
Type | Name | Description |
---|---|---|
VideoAccelerationType | videoAcceleration | Video Acceleration type |
System.Int32 | deviceIndex | Hardware device index |
Properties
| Improve this Doc View SourceAccelerationType
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)
Declaration
public VideoAccelerationType AccelerationType { get; }
Property Value
Type | Description |
---|---|
VideoAccelerationType |
HwDeviceIndex
Hardware device index (select GPU if multiple available). Device enumeration is acceleration type specific.
Declaration
public int HwDeviceIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceGetParameters()
Get parameters of VideoCapture for hardware acceleration
Declaration
public int[] GetParameters()
Returns
Type | Description |
---|---|
System.Int32[] |