[][src]Struct ffmpeg_next::util::frame::audio::Audio

pub struct Audio(_);

Implementations

impl Audio[src]

pub unsafe fn wrap(ptr: *mut AVFrame) -> Self[src]

pub unsafe fn alloc(
    &mut self,
    format: Sample,
    samples: usize,
    layout: ChannelLayout
)
[src]

impl Audio[src]

pub fn empty() -> Self[src]

pub fn new(format: Sample, samples: usize, layout: ChannelLayout) -> Self[src]

pub fn format(&self) -> Sample[src]

pub fn set_format(&mut self, value: Sample)[src]

pub fn channel_layout(&self) -> ChannelLayout[src]

pub fn set_channel_layout(&mut self, value: ChannelLayout)[src]

pub fn channels(&self) -> u16[src]

pub fn set_channels(&mut self, value: u16)[src]

pub fn rate(&self) -> u32[src]

pub fn set_rate(&mut self, value: u32)[src]

pub fn samples(&self) -> usize[src]

pub fn set_samples(&mut self, value: usize)[src]

pub fn is_planar(&self) -> bool[src]

pub fn is_packed(&self) -> bool[src]

pub fn planes(&self) -> usize[src]

pub fn plane<T: Sample>(&self, index: usize) -> &[T][src]

pub fn plane_mut<T: Sample>(&mut self, index: usize) -> &mut [T][src]

pub fn data(&self, index: usize) -> &[u8][src]

pub fn data_mut(&mut self, index: usize) -> &mut [u8][src]

impl Audio[src]

pub fn resampler(
    &self,
    format: Sample,
    channel_layout: ChannelLayout,
    rate: u32
) -> Result<Context, Error>
[src]

Methods from Deref<Target = Frame>

pub unsafe fn as_ptr(&self) -> *const AVFrame[src]

pub unsafe fn as_mut_ptr(&mut self) -> *mut AVFrame[src]

pub unsafe fn is_empty(&self) -> bool[src]

pub fn is_key(&self) -> bool[src]

pub fn is_corrupt(&self) -> bool[src]

pub fn packet(&self) -> Packet[src]

pub fn pts(&self) -> Option<i64>[src]

pub fn set_pts(&mut self, value: Option<i64>)[src]

pub fn timestamp(&self) -> Option<i64>[src]

pub fn quality(&self) -> usize[src]

pub fn flags(&self) -> Flags[src]

pub fn metadata(&self) -> DictionaryRef<'_>[src]

pub fn set_metadata(&mut self, value: Dictionary<'_>)[src]

pub fn side_data(&self, kind: Type) -> Option<SideData<'_>>[src]

pub fn new_side_data(&mut self, kind: Type, size: usize) -> Option<SideData<'_>>[src]

pub fn remove_side_data(&mut self, kind: Type)[src]

Trait Implementations

impl Clone for Audio[src]

impl Debug for Audio[src]

impl Deref for Audio[src]

type Target = Frame

The resulting type after dereferencing.

impl DerefMut for Audio[src]

impl Eq for Audio[src]

impl From<Frame> for Audio[src]

impl PartialEq<Audio> for Audio[src]

impl StructuralEq for Audio[src]

impl StructuralPartialEq for Audio[src]

Auto Trait Implementations

impl RefUnwindSafe for Audio

impl Send for Audio

impl Sync for Audio

impl Unpin for Audio

impl UnwindSafe for Audio

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, 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.