pub struct RgbaFrame {
pub data: Vec<u8>,
pub width: u32,
pub height: u32,
pub pts: Duration,
}Expand description
A decoded video frame as contiguous RGBA bytes.
Produced by RgbaSink and stored behind an Arc<Mutex> so it can be
shared safely with a rendering thread.
Fields§
§data: Vec<u8>Row-major RGBA pixel data.
Total size: width * height * 4 bytes. Each pixel is 4 bytes
(R, G, B, A) with alpha always 255.
width: u32Frame width in pixels.
height: u32Frame height in pixels.
pts: DurationPresentation timestamp of the frame.
Auto Trait Implementations§
impl Freeze for RgbaFrame
impl RefUnwindSafe for RgbaFrame
impl Send for RgbaFrame
impl Sync for RgbaFrame
impl Unpin for RgbaFrame
impl UnsafeUnpin for RgbaFrame
impl UnwindSafe for RgbaFrame
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