Show / Hide Table of Contents

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
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 Source

VideoCapturePara()

Constructor, parameter of VideoCapture for hardware acceleration

Declaration
public VideoCapturePara()
| Improve this Doc View Source

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 Source

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)

Declaration
public VideoAccelerationType AccelerationType { get; }
Property Value
Type Description
VideoAccelerationType
| Improve this Doc View Source

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 Source

GetParameters()

Get parameters of VideoCapture for hardware acceleration

Declaration
public int[] GetParameters()
Returns
Type Description
System.Int32[]

Implements

System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX