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

public FourCC(int value)

Parameters

value int

Fields

AVC

public static readonly int AVC

Field Value

int

CVID

public static readonly int CVID

Field Value

int

DIB

public static readonly int DIB

Field Value

int

DIV3

public static readonly int DIV3

Field Value

int

DIVX

public static readonly int DIVX

Field Value

int

DV25

public static readonly int DV25

Field Value

int

DV50

public static readonly int DV50

Field Value

int

DVC

public static readonly int DVC

Field Value

int

DVH1

public static readonly int DVH1

Field Value

int

DVHD

public static readonly int DVHD

Field Value

int

DVSD

public static readonly int DVSD

Field Value

int

DVSL

public static readonly int DVSL

Field Value

int

Default

public const int Default = -1

Field Value

int

H261

public static readonly int H261

Field Value

int

H263

public static readonly int H263

Field Value

int

H264

public static readonly int H264

Field Value

int

H265

public static readonly int H265

Field Value

int

HEVC

public static readonly int HEVC

Field Value

int

I420

public static readonly int I420

Field Value

int

IV32

public static readonly int IV32

Field Value

int

IV41

public static readonly int IV41

Field Value

int

IV50

public static readonly int IV50

Field Value

int

IYUB

public static readonly int IYUB

Field Value

int

IYUV

public static readonly int IYUV

Field Value

int

JPEG

public static readonly int JPEG

Field Value

int

M4S2

public static readonly int M4S2

Field Value

int

MJPG

public static readonly int MJPG

Field Value

int

MP42

public static readonly int MP42

Field Value

int

MP43

public static readonly int MP43

Field Value

int

MP4S

public static readonly int MP4S

Field Value

int

MP4V

public static readonly int MP4V

Field Value

int

MPG1

public static readonly int MPG1

Field Value

int

MPG2

public static readonly int MPG2

Field Value

int

MPG4

public static readonly int MPG4

Field Value

int

MSS1

public static readonly int MSS1

Field Value

int

MSS2

public static readonly int MSS2

Field Value

int

MSVC

public static readonly int MSVC

Field Value

int

PIM1

public static readonly int PIM1

Field Value

int

Prompt

public const int Prompt = -1

Field Value

int

Value

int value

public readonly int Value

Field Value

int

WMV1

public static readonly int WMV1

Field Value

int

WMV2

public static readonly int WMV2

Field Value

int

WMV3

public static readonly int WMV3

Field Value

int

WVC1

public static readonly int WVC1

Field Value

int

X264

public static readonly int X264

Field Value

int

XVID

public static readonly int XVID

Field Value

int

Methods

Equals(FourCC)

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

public bool Equals(FourCC other)

Parameters

other FourCC

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

FromFourChars(char, char, char, char)

Create from four characters

public static FourCC FromFourChars(char c1, char c2, char c3, char c4)

Parameters

c1 char
c2 char
c3 char
c4 char

Returns

FourCC

FromInt32(int)

cast from int

public static FourCC FromInt32(int code)

Parameters

code int

Returns

FourCC

FromString(string)

Create from string (length == 4)

public static FourCC FromString(string code)

Parameters

code string

Returns

FourCC

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToInt32()

cast to int

public int ToInt32()

Returns

int

Operators

operator ==(FourCC, FourCC)

public static bool operator ==(FourCC left, FourCC right)

Parameters

left FourCC
right FourCC

Returns

bool

implicit operator int(FourCC)

implicit cast to int

public static implicit operator int(FourCC fourcc)

Parameters

fourcc FourCC

Returns

int

implicit operator FourCC(int)

implicit cast from int

public static implicit operator FourCC(int code)

Parameters

code int

Returns

FourCC

operator !=(FourCC, FourCC)

public static bool operator !=(FourCC left, FourCC right)

Parameters

left FourCC
right FourCC

Returns

bool