Table of Contents

Struct FourCC

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

4-character code of codec used to compress the frames.

[SuppressMessage("Design", "CA1051: Do not declare visible instance fields")]
public readonly struct FourCC : IEquatable<FourCC>
Implements
Inherited Members

Constructors

FourCC(int)

Constructor

Fields

AVC
CVID
DIB
DIV3
DIVX
DV25
DV50
DVC
DVH1
DVHD
DVSD
DVSL
Default
H261
H263
H264
H265
HEVC
I420
IV32
IV41
IV50
IYUB
IYUV
JPEG
M4S2
MJPG
MP42
MP43
MP4S
MP4V
MPG1
MPG2
MPG4
MSS1
MSS2
MSVC
PIM1
Prompt
Value

int value

WMV1
WMV2
WMV3
WVC1
X264
XVID

Methods

Equals(FourCC)

Indicates whether the current object is equal to another object of the same type.

Equals(object?)

Indicates whether this instance and a specified object are equal.

FromFourChars(char, char, char, char)

Create from four characters

FromInt32(int)

cast from int

FromString(string)

Create from string (length == 4)

GetHashCode()

Returns the hash code for this instance.

ToInt32()

cast to int

Operators

operator ==(FourCC, FourCC)
implicit operator int(FourCC)

implicit cast to int

implicit operator FourCC(int)

implicit cast from int

operator !=(FourCC, FourCC)