pub struct Frame {
pub timestamp: u64,
pub width: u32,
pub height: u32,
pub data: Vec<u8>,
}Expand description
One decoded picture, downloaded to client memory as tightly packed NV12.
Fields§
§timestamp: u64Timestamp of the access unit this picture was coded in, as handed to
Decoder::decode.
width: u32Visible width in pixels, i.e. after the SPS cropping rectangle.
height: u32Visible height in pixels.
data: Vec<u8>NV12 planes with no row padding: width * height luma bytes followed by
width * height / 2 interleaved chroma bytes.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Frame
impl Freeze for Frame
impl Move for Frame
impl RefUnwindSafe for Frame
impl Send for Framewhere
RawVecInner: Send,
impl Sync for Framewhere
RawVecInner: Sync,
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Framewhere
RawVecInner: UnwindSafe,
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