Show / Hide Table of Contents

Struct Quality

Represents quality from 1 (BEST) to FF_LAMBDA_MAX (WORST).

Implements
IEquatable<Quality>
IEquatable<int>
Inherited Members
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: FFmpeg.Utils
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
public Quality()
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

The best quality value.

Declaration
public const int BEST = 1
Field Value
Type Description
int
View Source

WORST

The worst quality value.

Declaration
public const int WORST = 32767
Field Value
Type Description
int

Methods

View Source

Equals(Quality)

Determines whether the specified Quality is equal to the current Quality.

Declaration
public bool Equals(Quality other)
Parameters
Type Name Description
Quality other

The Quality to compare with the current Quality.

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
Type Description
bool
Overrides
ValueType.Equals(object)
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
ValueType.GetHashCode()
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
ValueType.ToString()

Operators

View Source

operator ==(Quality, Quality)

Determines whether two Quality instances are equal.

Declaration
public static bool operator ==(Quality left, Quality right)
Parameters
Type Name Description
Quality left

The left Quality.

Quality right

The right Quality.

Returns
Type Description
bool

true if the instances are equal; otherwise, false.

View Source

implicit operator int(Quality)

Implicitly converts a Quality to an int.

Declaration
public static implicit operator int(Quality quality)
Parameters
Type Name Description
Quality quality

The Quality to convert.

Returns
Type Description
int
View Source

implicit operator Quality(int)

Implicitly converts an int to a Quality.

Declaration
public static implicit operator Quality(int quality)
Parameters
Type Name Description
int quality

The int to convert.

Returns
Type Description
Quality
View Source

operator !=(Quality, Quality)

Determines whether two Quality instances are not equal.

Declaration
public static bool operator !=(Quality left, Quality right)
Parameters
Type Name Description
Quality left

The left Quality.

Quality right

The right Quality.

Returns
Type Description
bool

true if the instances are not equal; otherwise, false.

Implements

IEquatable<T>
IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX