pub struct PooledVideoFrame { /* private fields */ }Expand description
Pooled CPU RGBA8 video frame buffer checked out from a bounded VideoFramePool.
Implementations§
Source§impl PooledVideoFrame
impl PooledVideoFrame
pub fn get_slot_id(&self) -> usize
pub fn get_mut_slot_id(&mut self) -> &mut usize
pub fn set_slot_id(&mut self, val: usize) -> &mut Self
pub fn get_width(&self) -> u32
pub fn get_mut_width(&mut self) -> &mut u32
pub fn set_width(&mut self, val: u32) -> &mut Self
pub fn get_height(&self) -> u32
pub fn get_mut_height(&mut self) -> &mut u32
pub fn set_height(&mut self, val: u32) -> &mut Self
pub fn get_pixels(&self) -> &Vec<u8> ⓘ
pub fn get_mut_pixels(&mut self) -> &mut Vec<u8> ⓘ
pub fn set_pixels(&mut self, val: Vec<u8>) -> &mut Self
Trait Implementations§
Source§impl Clone for PooledVideoFrame
impl Clone for PooledVideoFrame
Source§impl Debug for PooledVideoFrame
impl Debug for PooledVideoFrame
Source§impl Default for PooledVideoFrame
impl Default for PooledVideoFrame
impl Eq for PooledVideoFrame
Source§impl PartialEq for PooledVideoFrame
impl PartialEq for PooledVideoFrame
impl StructuralPartialEq for PooledVideoFrame
Auto Trait Implementations§
impl Forget for PooledVideoFrame
impl Freeze for PooledVideoFrame
impl Move for PooledVideoFrame
impl RefUnwindSafe for PooledVideoFrame
impl Send for PooledVideoFramewhere
RawVecInner: Send,
impl Sync for PooledVideoFramewhere
RawVecInner: Sync,
impl Unpin for PooledVideoFrame
impl UnsafeUnpin for PooledVideoFrame
impl UnwindSafe for PooledVideoFramewhere
RawVecInner: UnwindSafe,
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