pub struct AudioFrame(pub Frame);
Tuple Fields§
§0: Frame
Implementations§
Source§impl AudioFrame
impl AudioFrame
pub fn nb_samples(&self) -> i32
pub fn set_nb_samples(&mut self, nb_samples: usize)
pub fn sample_rate(&self) -> i32
pub fn set_sample_rate(&mut self, sample_rate: usize)
pub fn channel_layout(&self) -> u64
pub fn set_channel_layout(&mut self, channel_layout: u64)
Methods from Deref<Target = Frame>§
pub fn as_ptr(&self) -> *const AVFrame
pub fn as_mut_ptr(&mut self) -> *mut AVFrame
pub fn pts(&self) -> Option<i64>
pub fn set_pts(&mut self, pts: Option<i64>)
pub fn duration(&self) -> Option<i64>
pub fn set_duration(&mut self, duration: Option<i64>)
pub fn best_effort_timestamp(&self) -> Option<i64>
pub fn dts(&self) -> Option<i64>
pub fn set_dts(&mut self, dts: Option<i64>)
pub fn time_base(&self) -> AVRational
pub fn set_time_base(&mut self, time_base: AVRational)
pub fn format(&self) -> i32
pub fn set_format(&mut self, format: i32)
pub fn is_audio(&self) -> bool
pub fn is_video(&self) -> bool
pub fn linesize(&self, index: usize) -> Option<i32>
Trait Implementations§
Source§impl Clone for AudioFrame
impl Clone for AudioFrame
Source§fn clone(&self) -> AudioFrame
fn clone(&self) -> AudioFrame
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AudioFrame
impl Debug for AudioFrame
Source§impl Deref for AudioFrame
impl Deref for AudioFrame
Auto Trait Implementations§
impl Freeze for AudioFrame
impl RefUnwindSafe for AudioFrame
impl Send for AudioFrame
impl Sync for AudioFrame
impl Unpin for AudioFrame
impl UnwindSafe for AudioFrame
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