Enum jpeg_encoder::SamplingFactor[][src]

#[repr(u8)]
pub enum SamplingFactor {
Show variants F_1_1, F_2_1, F_1_2, F_2_2, F_4_1, F_4_2, F_1_4, F_2_4, R_4_4_4, R_4_4_0, R_4_4_1, R_4_2_2, R_4_2_0, R_4_2_1, R_4_1_1, R_4_1_0,
}
Expand description

Sampling factors for chroma subsampling

Warning

Sampling factor of 4 are not supported by all decoders or applications

Variants

F_1_1
F_2_1
F_1_2
F_2_2
F_4_1
F_4_2
F_1_4
F_2_4
R_4_4_4

Alias for F_1_1

R_4_4_0

Alias for F_1_2

R_4_4_1

Alias for F_1_4

R_4_2_2

Alias for F_2_1

R_4_2_0

Alias for F_2_2

R_4_2_1

Alias for F_2_4

R_4_1_1

Alias for F_4_1

R_4_1_0

Alias for F_4_2

Implementations

Get variant for supplied factors or None if not supported

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

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 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)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.