#[repr(C)]pub struct moq_video_frame {
pub timestamp_us: u64,
pub width: u32,
pub height: u32,
pub data: *const u8,
pub data_size: usize,
}Expand description
One decoded video frame: packed I420 plus a presentation timestamp.
data is width * height * 3 / 2 bytes: the Y plane (width * height),
then U, then V (width/2 * height/2 each), no row padding. It’s BT.601
limited range. width and height are even. data is owned by the consume
slab and stays valid until the same id is released with
moq_consume_video_raw_frame_free.
Fields§
§timestamp_us: u64§width: u32§height: u32§data: *const u8§data_size: usizeAuto Trait Implementations§
impl !Send for moq_video_frame
impl !Sync for moq_video_frame
impl Freeze for moq_video_frame
impl RefUnwindSafe for moq_video_frame
impl Unpin for moq_video_frame
impl UnsafeUnpin for moq_video_frame
impl UnwindSafe for moq_video_frame
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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