Class VideoCapturePara
Parameters of VideoCature 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
System.Object
VideoCapturePara
Implements
System.IEquatable<VideoCapturePara>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class VideoCapturePara : IEquatable<VideoCapturePara>
Constructors
| Improve this Doc View SourceVideoCapturePara()
Constructor, parameter of VideoCature for hardware acceleration
Declaration
public VideoCapturePara()
VideoCapturePara(VideoAccelerationType, Int32)
Constructor, parameter of VideoCature 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 VideoCature for hardware acceleration
Declaration
public int[] GetParameters()
Returns
Type | Description |
---|---|
System.Int32[] |
Implements
System.IEquatable<T>