Struct Quality
Represents quality from 1 (BEST) to FF_LAMBDA_MAX (WORST).
Assembly: FFmpeg.dll
Syntax
public readonly struct Quality : IEquatable<Quality>, IEquatable<int>
Constructors
View Source
Quality()
Initializes a new instance of the Quality struct with the default value of 1 (BEST).
Declaration
View Source
Quality(int)
Initializes a new instance of the Quality struct with the specified value.
Declaration
public Quality(int value)
Parameters
| Type |
Name |
Description |
| int |
value |
The quality value.
|
Fields
View Source
BEST
Declaration
public const int BEST = 1
Field Value
View Source
WORST
Declaration
public const int WORST = 32767
Field Value
Methods
View Source
Equals(Quality)
Determines whether the specified Quality is equal to the current Quality.
Declaration
public bool Equals(Quality other)
Parameters
Returns
| Type |
Description |
| bool |
true if the specified Quality is equal to the current Quality; otherwise, false.
|
View Source
Equals(int)
Determines whether the specified int is equal to the current Quality.
Declaration
public bool Equals(int other)
Parameters
| Type |
Name |
Description |
| int |
other |
The int to compare with the current Quality.
|
Returns
| Type |
Description |
| bool |
true if the specified int is equal to the current Quality; otherwise, false.
|
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(Quality, Quality)
Determines whether two Quality instances are equal.
Declaration
public static bool operator ==(Quality left, Quality right)
Parameters
Returns
| Type |
Description |
| bool |
true if the instances are equal; otherwise, false.
|
View Source
implicit operator int(Quality)
Declaration
public static implicit operator int(Quality quality)
Parameters
Returns
View Source
implicit operator Quality(int)
Declaration
public static implicit operator Quality(int quality)
Parameters
| Type |
Name |
Description |
| int |
quality |
The int to convert.
|
Returns
View Source
operator !=(Quality, Quality)
Determines whether two Quality instances are not equal.
Declaration
public static bool operator !=(Quality left, Quality right)
Parameters
Returns
| Type |
Description |
| bool |
true if the instances are not equal; otherwise, false.
|
Implements