Struct windows_capture::frame::Frame
source · pub struct Frame<'a> { /* private fields */ }Expand description
Frame Struct Used To Get The Frame Buffer
Implementations§
source§impl<'a> Frame<'a>
impl<'a> Frame<'a>
sourcepub fn new(
d3d_device: &'a ID3D11Device,
frame_surface: ID3D11Texture2D,
context: &'a ID3D11DeviceContext,
buffer: &'a mut Vec<u8>,
width: u32,
height: u32,
color_format: ColorFormat
) -> Self
pub fn new( d3d_device: &'a ID3D11Device, frame_surface: ID3D11Texture2D, context: &'a ID3D11DeviceContext, buffer: &'a mut Vec<u8>, width: u32, height: u32, color_format: ColorFormat ) -> Self
Craete A New Frame
sourcepub fn buffer(
&mut self
) -> Result<FrameBuffer<'_>, Box<dyn Error + Send + Sync>>
pub fn buffer( &mut self ) -> Result<FrameBuffer<'_>, Box<dyn Error + Send + Sync>>
Get The Frame Buffer
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> !UnwindSafe for Frame<'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