pub struct FrameData { /* private fields */ }
Expand description
Wrapper around the data buffers of AVFrame that handles bottom-to-top line iteration
Implementations§
Source§impl FrameData
impl FrameData
Sourcepub const fn linesize(&self) -> i32
pub const fn linesize(&self) -> i32
Returns the linesize of the underlying data, in bytes. Negative if iteration order is bottom-to-top. Reference
Sourcepub fn get(&self, index: usize) -> Option<&u8>
pub fn get(&self, index: usize) -> Option<&u8>
Returns a reference to the byte at a given index
Sourcepub fn get_mut(&mut self, index: usize) -> Option<&mut u8>
pub fn get_mut(&mut self, index: usize) -> Option<&mut u8>
Returns a mutable reference to the byte at a given index
Sourcepub const fn get_row(&self, index: usize) -> Option<&[u8]>
pub const fn get_row(&self, index: usize) -> Option<&[u8]>
Returns a slice of row index
, respecting bottom-to-top iteration order
Sourcepub const fn get_row_mut(&mut self, index: usize) -> Option<&mut [u8]>
pub const fn get_row_mut(&mut self, index: usize) -> Option<&mut [u8]>
Returns a mutable slice of row index
, respecting bottom-to-top iteration order
Trait Implementations§
impl StructuralPartialEq for FrameData
Auto Trait Implementations§
impl Freeze for FrameData
impl RefUnwindSafe for FrameData
impl !Send for FrameData
impl !Sync for FrameData
impl Unpin for FrameData
impl UnwindSafe for FrameData
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