pub struct CaptureImage {
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
}Expand description
A captured frame: tight (row-unpadded) Rgba8UnormSrgb pixels, row-major
top-to-bottom. rgba.len() == width * height * 4.
Fields§
§width: u32Image width in pixels.
height: u32Image height in pixels.
rgba: Vec<u8>width * height * 4 bytes, RGBA8, no row padding.
Trait Implementations§
Source§impl Clone for CaptureImage
impl Clone for CaptureImage
Source§fn clone(&self) -> CaptureImage
fn clone(&self) -> CaptureImage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CaptureImage
impl RefUnwindSafe for CaptureImage
impl Send for CaptureImage
impl Sync for CaptureImage
impl Unpin for CaptureImage
impl UnsafeUnpin for CaptureImage
impl UnwindSafe for CaptureImage
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