Enum gstreamer_audio::AudioFormat [−][src]
#[non_exhaustive] pub enum AudioFormat {}Show variants
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)
unknown or unset audio format
encoded audio format
8 bits in 8 bits, signed
8 bits in 8 bits, unsigned
16 bits in 16 bits, signed, little endian
16 bits in 16 bits, signed, big endian
16 bits in 16 bits, unsigned, little endian
16 bits in 16 bits, unsigned, big endian
24 bits in 32 bits, signed, little endian
24 bits in 32 bits, signed, big endian
24 bits in 32 bits, unsigned, little endian
24 bits in 32 bits, unsigned, big endian
32 bits in 32 bits, signed, little endian
32 bits in 32 bits, signed, big endian
32 bits in 32 bits, unsigned, little endian
32 bits in 32 bits, unsigned, big endian
24 bits in 24 bits, signed, little endian
24 bits in 24 bits, signed, big endian
24 bits in 24 bits, unsigned, little endian
24 bits in 24 bits, unsigned, big endian
20 bits in 24 bits, signed, little endian
20 bits in 24 bits, signed, big endian
20 bits in 24 bits, unsigned, little endian
20 bits in 24 bits, unsigned, big endian
18 bits in 24 bits, signed, little endian
18 bits in 24 bits, signed, big endian
18 bits in 24 bits, unsigned, little endian
18 bits in 24 bits, unsigned, big endian
32-bit floating point samples, little endian
32-bit floating point samples, big endian
64-bit floating point samples, little endian
64-bit floating point samples, big endian
Implementations
impl AudioFormat
[src]
impl AudioFormat
[src]pub fn from_string(format: &str) -> AudioFormat
[src]
impl AudioFormat
[src]
impl AudioFormat
[src]pub fn build_integer(
sign: bool,
endianness: AudioEndianness,
width: i32,
depth: i32
) -> Self
[src]
sign: bool,
endianness: AudioEndianness,
width: i32,
depth: i32
) -> Self
pub fn to_str<'a>(self) -> &'a str
[src]
pub fn iter_raw() -> AudioFormatIteratorⓘNotable traits for AudioFormatIterator
impl Iterator for AudioFormatIterator type Item = AudioFormat;
[src]
Notable traits for AudioFormatIterator
impl Iterator for AudioFormatIterator type Item = AudioFormat;
Trait Implementations
impl Clone for AudioFormat
[src]
impl Clone for AudioFormat
[src]fn clone(&self) -> AudioFormat
[src]
fn clone(&self) -> AudioFormat
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for AudioFormat
[src]
impl Debug for AudioFormat
[src]impl Display for AudioFormat
[src]
impl Display for AudioFormat
[src]impl From<AudioFormat> for AudioFormatInfo
[src]
impl From<AudioFormat> for AudioFormatInfo
[src]fn from(f: AudioFormat) -> Self
[src]
fn from(f: AudioFormat) -> Self
[src]Performs the conversion.
impl FromStr for AudioFormat
[src]
impl FromStr for AudioFormat
[src]impl<'a> FromValue<'a> for AudioFormat
[src]
impl<'a> FromValue<'a> for AudioFormat
[src]type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
unsafe fn from_value(value: &'a Value) -> Self
[src]
unsafe fn from_value(value: &'a Value) -> Self
[src]Get the contained value from a Value
. Read more
impl Hash for AudioFormat
[src]
impl Hash for AudioFormat
[src]impl Ord for AudioFormat
[src]
impl Ord for AudioFormat
[src]impl PartialEq<AudioFormat> for AudioFormat
[src]
impl PartialEq<AudioFormat> for AudioFormat
[src]fn eq(&self, other: &AudioFormat) -> bool
[src]
fn eq(&self, other: &AudioFormat) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &AudioFormat) -> bool
[src]
fn ne(&self, other: &AudioFormat) -> bool
[src]This method tests for !=
.
impl PartialOrd<AudioFormat> for AudioFormat
[src]
impl PartialOrd<AudioFormat> for AudioFormat
[src]fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StaticType for AudioFormat
[src]
impl StaticType for AudioFormat
[src]fn static_type() -> Type
[src]
fn static_type() -> Type
[src]Returns the type identifier of Self
.
impl ToValue for AudioFormat
[src]
impl ToValue for AudioFormat
[src]impl ValueType for AudioFormat
[src]
impl ValueType for AudioFormat
[src]impl Copy for AudioFormat
[src]
impl Eq 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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
pub fn to_send_value(&self) -> SendValue
[src]Returns a SendValue
clone of self
.