pub struct Frame(/* private fields */);
Implementations§
Source§impl Frame
impl Frame
pub fn new() -> Result<Self, FfmpegError>
pub fn as_ptr(&self) -> *const AVFrame
pub fn as_mut_ptr(&mut self) -> *mut AVFrame
pub fn video(self) -> VideoFrame
pub fn audio(self) -> AudioFrame
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§
impl Send for Frame
Safety: Frame
is safe to send between threads.
impl Sync for Frame
Safety: Frame
is safe to share between threads.
Auto Trait Implementations§
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