Enum rav1e::config::InvalidConfig[][src]

#[non_exhaustive]
pub enum InvalidConfig {
Show 18 variants InvalidWidth(usize), InvalidHeight(usize), InvalidAspectRatioNum(usize), InvalidAspectRatioDen(usize), InvalidRenderWidth(usize), InvalidRenderHeight(usize), InvalidRdoLookaheadFrames { actual: usize, max: usize, min: usize, }, InvalidMaxKeyFrameInterval { actual: u64, max: u64, }, InvalidTileCols(usize), InvalidTileRows(usize), InvalidFrameRateNum { actual: u64, max: u64, }, InvalidFrameRateDen { actual: u64, max: u64, }, InvalidReservoirFrameDelay(i32), InvalidSwitchFrameInterval(u64), InvalidOptionWithStillPicture(&'static str), TargetBitrateNeeded, RateControlConfigurationMismatch, ColorConfigurationMismatch,
}
Expand description

Enumeration of possible invalid configuration errors.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

InvalidWidth(usize)

Tuple Fields

0: usize

The width is invalid.

InvalidHeight(usize)

Tuple Fields

0: usize

The height is invalid.

InvalidAspectRatioNum(usize)

Tuple Fields

0: usize

Aspect ratio numerator is invalid.

InvalidAspectRatioDen(usize)

Tuple Fields

0: usize

Aspect ratio denominator is invalid.

InvalidRenderWidth(usize)

Tuple Fields

0: usize

The render width (width adjusted based on the aspect ratio) is invalid.

InvalidRenderHeight(usize)

Tuple Fields

0: usize

The render height (height adjusted based on the aspect ratio) is invalid.

InvalidRdoLookaheadFrames

Fields

actual: usize

The actual value.

max: usize

The maximal supported value.

min: usize

The minimal supported value.

RDO lookahead frame count is invalid.

InvalidMaxKeyFrameInterval

Fields

actual: u64

The actual value.

max: u64

The maximal supported value.

Maximal keyframe interval is invalid.

InvalidTileCols(usize)

Tuple Fields

0: usize

Tile columns is invalid.

InvalidTileRows(usize)

Tuple Fields

0: usize

Tile rows is invalid.

InvalidFrameRateNum

Fields

actual: u64

The actual value.

max: u64

The maximal supported value.

Framerate numerator is invalid.

InvalidFrameRateDen

Fields

actual: u64

The actual value.

max: u64

The maximal supported value.

Framerate denominator is invalid.

InvalidReservoirFrameDelay(i32)

Tuple Fields

0: i32

Reservoir frame delay is invalid.

InvalidSwitchFrameInterval(u64)

Tuple Fields

0: u64

Reservoir frame delay is invalid.

InvalidOptionWithStillPicture(&'static str)

Tuple Fields

0: &'static str

An option unsupported in still picture mode was enabled along with it.

TargetBitrateNeeded

The rate control needs a target bitrate in order to produce results

RateControlConfigurationMismatch

The configuration

ColorConfigurationMismatch

The color configuration mismatches AV1 constraints.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.