pub struct DecodedFrame {
pub index: u32,
pub width: u32,
pub height: u32,
pub pixelformat: u32,
pub stride: u32,
pub sizeimage: u32,
}Expand description
One decoded picture, ready for scanout.
Borrows nothing: the dmabuf stays owned by the Decoder, and the frame
names it by capture-buffer index. Display it, then give the buffer back
with Decoder::recycle once scanout has moved past it.
Fields§
§index: u32Which capture buffer holds the picture — the key for
Decoder::dmabuf and Decoder::recycle.
width: u32Picture width in pixels.
height: u32Picture height in pixels.
pixelformat: u32The V4L2 fourcc of the pixel data.
stride: u32Bytes per luma row.
sizeimage: u32Total bytes in the buffer.
Trait Implementations§
Source§impl Clone for DecodedFrame
impl Clone for DecodedFrame
Source§fn clone(&self) -> DecodedFrame
fn clone(&self) -> DecodedFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecodedFrame
Auto Trait Implementations§
impl Freeze for DecodedFrame
impl RefUnwindSafe for DecodedFrame
impl Send for DecodedFrame
impl Sync for DecodedFrame
impl Unpin for DecodedFrame
impl UnsafeUnpin for DecodedFrame
impl UnwindSafe for DecodedFrame
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