Class VideoWriterPara
Parameters of VideoWriter 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
VideoWriterPara
Implements
System.IEquatable<VideoWriterPara>
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 VideoWriterPara : IEquatable<VideoWriterPara>
Constructors
| Improve this Doc View SourceVideoWriterPara()
Constructor, parameter of VideoWriter for hardware acceleration
Declaration
public VideoWriterPara()
VideoWriterPara(VideoAccelerationType, Int32)
Constructor, parameter of VideoWriter for hardware acceleration
Declaration
public VideoWriterPara(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 VideoWriter for hardware acceleration
Declaration
public int[] GetParameters()
Returns
Type | Description |
---|---|
System.Int32[] |
Implements
System.IEquatable<T>