pub struct Frame {
pub width: u32,
pub height: u32,
pub bgra: Vec<u8>,
}Expand description
One decoded camera frame, tightly-packed BGRA8 (width * height * 4 bytes) —
gpui’s native texture order, so the preview uploads it without a channel
swap. The snapshot path swaps to RGBA when it writes the PNG.
Fields§
§width: u32§height: u32§bgra: Vec<u8>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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