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,
}

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

impl SamplingFactor[src]

pub fn from_factors(horizontal: u8, vertical: u8) -> Option<SamplingFactor>[src]

Get variant for supplied factors or None if not supported

Trait Implementations

impl Clone for SamplingFactor[src]

impl Copy for SamplingFactor[src]

impl Debug for SamplingFactor[src]

impl Eq for SamplingFactor[src]

impl PartialEq<SamplingFactor> for SamplingFactor[src]

impl StructuralEq for SamplingFactor[src]

impl StructuralPartialEq for SamplingFactor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.