[−][src]Struct av_data::audiosample::Soniton
Parameters describing the representation of an audio sample
Fields
bits: u8Number of bits in each sample.
be: boolTrue if the sample data is in big endian layout, false if little endian.
packed: boolFor data which isn't a multiple of 8 bits this is true if there is no padding between samples, false if the data is padded.
planar: boolIf true data is stored in a planar layout with channels occurring in sequence i.e. C1 C1 C1... C2 C2 C2 . If false data is interleaved i.e. C1 C2 C1 C2.
float: boolTrue if the sample data is a floating point data type, false otherwise.
signed: boolTrue if the sample data is signed, false otherwise.
Methods
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
Creates a new representation of a sample with the provided parameters
pub fn get_audio_size(self, length: usize, alignment: usize) -> usize[src]
For a stream of the given length and alignment return the size of the buffer containing the data
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
impl Send for Soniton
impl Sync for Soniton
impl Unpin for Soniton
impl UnwindSafe for Soniton
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,
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.
fn to_owned(&self) -> T[src]
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.
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>,