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
valueint
Fields
AVC
public static readonly int AVC
Field Value
CVID
public static readonly int CVID
Field Value
DIB
public static readonly int DIB
Field Value
DIV3
public static readonly int DIV3
Field Value
DIVX
public static readonly int DIVX
Field Value
DV25
public static readonly int DV25
Field Value
DV50
public static readonly int DV50
Field Value
DVC
public static readonly int DVC
Field Value
DVH1
public static readonly int DVH1
Field Value
DVHD
public static readonly int DVHD
Field Value
DVSD
public static readonly int DVSD
Field Value
DVSL
public static readonly int DVSL
Field Value
Default
public const int Default = -1
Field Value
H261
public static readonly int H261
Field Value
H263
public static readonly int H263
Field Value
H264
public static readonly int H264
Field Value
H265
public static readonly int H265
Field Value
HEVC
public static readonly int HEVC
Field Value
I420
public static readonly int I420
Field Value
IV32
public static readonly int IV32
Field Value
IV41
public static readonly int IV41
Field Value
IV50
public static readonly int IV50
Field Value
IYUB
public static readonly int IYUB
Field Value
IYUV
public static readonly int IYUV
Field Value
JPEG
public static readonly int JPEG
Field Value
M4S2
public static readonly int M4S2
Field Value
MJPG
public static readonly int MJPG
Field Value
MP42
public static readonly int MP42
Field Value
MP43
public static readonly int MP43
Field Value
MP4S
public static readonly int MP4S
Field Value
MP4V
public static readonly int MP4V
Field Value
MPG1
public static readonly int MPG1
Field Value
MPG2
public static readonly int MPG2
Field Value
MPG4
public static readonly int MPG4
Field Value
MSS1
public static readonly int MSS1
Field Value
MSS2
public static readonly int MSS2
Field Value
MSVC
public static readonly int MSVC
Field Value
PIM1
public static readonly int PIM1
Field Value
Prompt
public const int Prompt = -1
Field Value
Value
int value
public readonly int Value
Field Value
WMV1
public static readonly int WMV1
Field Value
WMV2
public static readonly int WMV2
Field Value
WMV3
public static readonly int WMV3
Field Value
WVC1
public static readonly int WVC1
Field Value
X264
public static readonly int X264
Field Value
XVID
public static readonly int XVID
Field Value
Methods
Equals(FourCC)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(FourCC other)
Parameters
otherFourCCAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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
Returns
FromInt32(int)
cast from int
public static FourCC FromInt32(int code)
Parameters
codeint
Returns
FromString(string)
Create from string (length == 4)
public static FourCC FromString(string code)
Parameters
codestring
Returns
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
Operators
operator ==(FourCC, FourCC)
public static bool operator ==(FourCC left, FourCC right)
Parameters
Returns
implicit operator int(FourCC)
implicit cast to int
public static implicit operator int(FourCC fourcc)
Parameters
fourccFourCC
Returns
implicit operator FourCC(int)
implicit cast from int
public static implicit operator FourCC(int code)
Parameters
codeint
Returns
operator !=(FourCC, FourCC)
public static bool operator !=(FourCC left, FourCC right)