Struct windows_capture::frame::FrameBuffer
source · pub struct FrameBuffer<'a> { /* private fields */ }Expand description
Frame Buffer Struct Used To Get Raw Pixel Data
Implementations§
source§impl<'a> FrameBuffer<'a>
impl<'a> FrameBuffer<'a>
sourcepub fn new(
raw_buffer: &'a mut [u8],
buffer: &'a mut Vec<u8>,
width: u32,
height: u32,
row_pitch: u32,
depth_pitch: u32,
color_format: ColorFormat
) -> Self
pub fn new( raw_buffer: &'a mut [u8], buffer: &'a mut Vec<u8>, width: u32, height: u32, row_pitch: u32, depth_pitch: u32, color_format: ColorFormat ) -> Self
Create A New Frame Buffer
sourcepub const fn depth_pitch(&self) -> u32
pub const fn depth_pitch(&self) -> u32
Get The Frame Buffer Depth Pitch
sourcepub const fn has_padding(&self) -> bool
pub const fn has_padding(&self) -> bool
Check If The Buffer Has Padding
sourcepub fn as_raw_buffer(&'a mut self) -> &'a mut [u8] ⓘ
pub fn as_raw_buffer(&'a mut self) -> &'a mut [u8] ⓘ
Get The Raw Pixel Data Might Have Padding
Auto Trait Implementations§
impl<'a> RefUnwindSafe for FrameBuffer<'a>
impl<'a> Send for FrameBuffer<'a>
impl<'a> Sync for FrameBuffer<'a>
impl<'a> Unpin for FrameBuffer<'a>
impl<'a> !UnwindSafe for FrameBuffer<'a>
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