pub struct Vp8DecodedFrame {
pub width: u32,
pub height: u32,
pub y: Vec<u8>,
pub u: Vec<u8>,
pub v: Vec<u8>,
}Expand description
Fully-decoded, loop-filtered VP8 key-frame in I420 layout.
y/u/v are the visible-cropped planes — the §9.1 width / height
from the key-frame header, rounded for chroma sub-sampling
(uv_width = (width + 1) / 2, uv_height = (height + 1) / 2). Decode
pads internally to whole macroblocks; the §15 loop filter runs against
that padded buffer, then this output is cropped to the visible area.
Fields§
§width: u32Visible width in luma pixels (the §9.1 key-frame width).
height: u32Visible height in luma pixels (the §9.1 key-frame height).
y: Vec<u8>Luma plane — width * height bytes, row-major (stride == width).
u: Vec<u8>U chroma plane — ((width+1)/2) * ((height+1)/2) bytes.
v: Vec<u8>V chroma plane — same dimensions as u.
Implementations§
Trait Implementations§
Source§impl Clone for Vp8DecodedFrame
impl Clone for Vp8DecodedFrame
Source§impl Debug for Vp8DecodedFrame
impl Debug for Vp8DecodedFrame
Source§impl Default for Vp8DecodedFrame
impl Default for Vp8DecodedFrame
impl Eq for Vp8DecodedFrame
Source§impl From<Vp8DecodedFrame> for VideoFrame
impl From<Vp8DecodedFrame> for VideoFrame
Source§fn from(f: Vp8DecodedFrame) -> Self
fn from(f: Vp8DecodedFrame) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Vp8DecodedFrame
impl PartialEq for Vp8DecodedFrame
impl StructuralPartialEq for Vp8DecodedFrame
Auto Trait Implementations§
impl Forget for Vp8DecodedFrame
impl Freeze for Vp8DecodedFrame
impl Move for Vp8DecodedFrame
impl RefUnwindSafe for Vp8DecodedFrame
impl Send for Vp8DecodedFramewhere
RawVecInner: Send,
impl Sync for Vp8DecodedFramewhere
RawVecInner: Sync,
impl Unpin for Vp8DecodedFrame
impl UnsafeUnpin for Vp8DecodedFrame
impl UnwindSafe for Vp8DecodedFramewhere
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