#[repr(C)]pub struct moq_video_encoder_frame {
pub timestamp_us: u64,
pub data: *const u8,
pub data_size: usize,
}Expand description
One raw frame handed to moq_publish_video_raw_frame.
Pixel format and resolution are fixed by moq_video_encoder_input at
publish time, so a frame carries neither: data is exactly one picture in
that layout, borrowed for the duration of the call (the encoder copies before
returning). The decode side has its own moq_video_frame, which does carry
dimensions, since there they are what the stream turned out to be.
Fields§
§timestamp_us: u64Presentation timestamp, in microseconds.
data: *const u8§data_size: usizeAuto Trait Implementations§
impl !Send for moq_video_encoder_frame
impl !Sync for moq_video_encoder_frame
impl Freeze for moq_video_encoder_frame
impl RefUnwindSafe for moq_video_encoder_frame
impl Unpin for moq_video_encoder_frame
impl UnsafeUnpin for moq_video_encoder_frame
impl UnwindSafe for moq_video_encoder_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