pub struct VideoFrame(pub Frame);
Tuple Fields§
§0: Frame
Implementations§
Source§impl VideoFrame
impl VideoFrame
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn sample_aspect_ratio(&self) -> AVRational
pub fn set_sample_aspect_ratio(&mut self, sample_aspect_ratio: AVRational)
pub fn set_width(&mut self, width: usize)
pub fn set_height(&mut self, height: usize)
pub fn is_keyframe(&self) -> bool
pub fn pict_type(&self) -> AVPictureType
pub fn set_pict_type(&mut self, pict_type: AVPictureType)
pub fn data(&self, index: usize) -> Option<&[u8]>
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 VideoFrame
impl Clone for VideoFrame
Source§fn clone(&self) -> VideoFrame
fn clone(&self) -> VideoFrame
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 VideoFrame
impl Debug for VideoFrame
Source§impl Deref for VideoFrame
impl Deref for VideoFrame
Auto Trait Implementations§
impl Freeze for VideoFrame
impl RefUnwindSafe for VideoFrame
impl Send for VideoFrame
impl Sync for VideoFrame
impl Unpin for VideoFrame
impl UnwindSafe for VideoFrame
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