pub struct CaptureFrame {
pub width: u32,
pub height: u32,
pub logical_width: u32,
pub logical_height: u32,
pub rgba: Rc<[u8]>,
}Expand description
A captured frame, as a view keeps it.
Fields§
§width: u32The width in pixels.
height: u32The height in pixels.
logical_width: u32The source’s whole width in logical pixels, which a
crop is given in. A frame scaled down for
a small view keeps its source’s. An output’s is its logical size;
a window’s is its pixels divided by the largest output scale, which
is wrong for a window on a smaller-scale output when scales are
mixed.
logical_height: u32The source’s whole height in logical pixels, as for
logical_width.
rgba: Rc<[u8]>Premultiplied RGBA, row by row: width * height * 4 bytes. Shared,
so a renderer can tell a new frame from the one it already scaled.
Trait Implementations§
Source§impl Clone for CaptureFrame
impl Clone for CaptureFrame
Source§impl Debug for CaptureFrame
impl Debug for CaptureFrame
impl Eq for CaptureFrame
Source§impl PartialEq for CaptureFrame
impl PartialEq for CaptureFrame
impl StructuralPartialEq for CaptureFrame
Auto Trait Implementations§
impl !Send for CaptureFrame
impl !Sync for CaptureFrame
impl Forget for CaptureFrame
impl Freeze for CaptureFrame
impl Move for CaptureFrame
impl RefUnwindSafe for CaptureFrame
impl Unpin for CaptureFrame
impl UnsafeUnpin for CaptureFrame
impl UnwindSafe for CaptureFrame
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