[−][src]Struct av_data::audiosample::Soniton
Audio format definition.
Fields
bits: u8Bits per sample.
be: boolTells if audio format is big-endian.
packed: boolAudio samples are packed (e.g. 20-bit audio samples) and not padded.
planar: boolAudio data is stored in planar format (channels in sequence i.e. C1 C1 C1... C2 C2 C2) instead of interleaving samples (i.e. C1 C2 C1 C2) for different channels.
float: boolAudio data is in floating point format.
signed: boolAudio data is signed (usually only 8-bit audio is unsigned).
Implementations
impl Soniton[src]
pub fn new(
bits: u8,
be: bool,
packed: bool,
planar: bool,
float: bool,
signed: bool
) -> Self[src]
bits: u8,
be: bool,
packed: bool,
planar: bool,
float: bool,
signed: bool
) -> Self
Constructs a new audio format definition.
pub fn get_audio_size(self, length: usize, alignment: usize) -> usize[src]
Returns the amount of bytes needed to store the audio of requested length (in samples).
Trait Implementations
impl Clone for Soniton[src]
impl Copy for Soniton[src]
impl Debug for Soniton[src]
impl Display for Soniton[src]
impl PartialEq<Soniton> for Soniton[src]
impl StructuralPartialEq for Soniton[src]
Auto Trait Implementations
impl RefUnwindSafe for Soniton[src]
impl Send for Soniton[src]
impl Sync for Soniton[src]
impl Unpin for Soniton[src]
impl UnwindSafe for Soniton[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,