[][src]Enum gstreamer_audio::AudioFormat

#[non_exhaustive]pub enum AudioFormat {
    Unknown,
    Encoded,
    S8,
    U8,
    S16le,
    S16be,
    U16le,
    U16be,
    S2432le,
    S2432be,
    U2432le,
    U2432be,
    S32le,
    S32be,
    U32le,
    U32be,
    S24le,
    S24be,
    U24le,
    U24be,
    S20le,
    S20be,
    U20le,
    U20be,
    S18le,
    S18be,
    U18le,
    U18be,
    F32le,
    F32be,
    F64le,
    F64be,
    // some variants omitted
}

Enum value describing the most common audio formats.

Variants (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.
Unknown

unknown or unset audio format

Encoded

encoded audio format

S8

8 bits in 8 bits, signed

U8

8 bits in 8 bits, unsigned

S16le

16 bits in 16 bits, signed, little endian

S16be

16 bits in 16 bits, signed, big endian

U16le

16 bits in 16 bits, unsigned, little endian

U16be

16 bits in 16 bits, unsigned, big endian

S2432le

24 bits in 32 bits, signed, little endian

S2432be

24 bits in 32 bits, signed, big endian

U2432le

24 bits in 32 bits, unsigned, little endian

U2432be

24 bits in 32 bits, unsigned, big endian

S32le

32 bits in 32 bits, signed, little endian

S32be

32 bits in 32 bits, signed, big endian

U32le

32 bits in 32 bits, unsigned, little endian

U32be

32 bits in 32 bits, unsigned, big endian

S24le

24 bits in 24 bits, signed, little endian

S24be

24 bits in 24 bits, signed, big endian

U24le

24 bits in 24 bits, unsigned, little endian

U24be

24 bits in 24 bits, unsigned, big endian

S20le

20 bits in 24 bits, signed, little endian

S20be

20 bits in 24 bits, signed, big endian

U20le

20 bits in 24 bits, unsigned, little endian

U20be

20 bits in 24 bits, unsigned, big endian

S18le

18 bits in 24 bits, signed, little endian

S18be

18 bits in 24 bits, signed, big endian

U18le

18 bits in 24 bits, unsigned, little endian

U18be

18 bits in 24 bits, unsigned, big endian

F32le

32-bit floating point samples, little endian

F32be

32-bit floating point samples, big endian

F64le

64-bit floating point samples, little endian

F64be

64-bit floating point samples, big endian

Implementations

impl AudioFormat[src]

pub fn build_integer(
    sign: bool,
    endianness: AudioEndianness,
    width: i32,
    depth: i32
) -> AudioFormat
[src]

pub fn to_str<'a>(self) -> &'a str[src]

pub fn iter_raw() -> AudioFormatIterator[src]

Trait Implementations

impl Clone for AudioFormat[src]

impl Copy for AudioFormat[src]

impl Debug for AudioFormat[src]

impl Display for AudioFormat[src]

impl Eq for AudioFormat[src]

impl From<AudioFormat> for AudioFormatInfo[src]

impl FromStr for AudioFormat[src]

type Err = BoolError

The associated error which can be returned from parsing.

impl<'a> FromValue<'a> for AudioFormat[src]

impl<'a> FromValueOptional<'a> for AudioFormat[src]

impl Hash for AudioFormat[src]

impl Ord for AudioFormat[src]

impl PartialEq<AudioFormat> for AudioFormat[src]

impl PartialOrd<AudioFormat> for AudioFormat[src]

impl SetValue for AudioFormat[src]

impl StaticType for AudioFormat[src]

impl StructuralEq for AudioFormat[src]

impl StructuralPartialEq for AudioFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for AudioFormat

impl Send for AudioFormat

impl Sync for AudioFormat

impl Unpin for AudioFormat

impl UnwindSafe for AudioFormat

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> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

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.