pub enum Sample {
None,
U8(Type),
I16(Type),
I32(Type),
I64(Type),
F32(Type),
F64(Type),
}Variants§
Implementations§
Source§impl Sample
impl Sample
pub fn name(&self) -> &'static str
pub fn packed(&self) -> Sample
pub fn planar(&self) -> Sample
pub fn is_planar(&self) -> bool
pub fn is_packed(&self) -> bool
pub fn bytes(&self) -> usize
pub fn buffer(&self, channels: u16, samples: usize, align: bool) -> Buffer
Trait Implementations§
impl Copy for Sample
impl Eq for Sample
Source§impl From<AVSampleFormat> for Sample
impl From<AVSampleFormat> for Sample
Source§fn from(value: AVSampleFormat) -> Sample
fn from(value: AVSampleFormat) -> Sample
Converts to this type from the input type.
impl StructuralPartialEq for Sample
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more