#[repr(C)]pub struct moq_video_encoder_input {
pub format: u32,
pub width: u32,
pub height: u32,
pub framerate: u32,
}Expand description
Raw frame layout the caller hands to moq_publish_video_raw_frame, plus
the resolution and rate the encoder is opened at. Every published frame must
match width x height; scale before publishing if your source moves.
Fields§
§format: u32moq_video_pixel_format discriminant.
width: u32Encoded width in pixels. Must be even (I420 chroma is subsampled 2x2).
height: u32Encoded height in pixels. Must be even.
framerate: u32Nominal frames per second, used for the codec time base and the default bitrate and keyframe interval. Must be non-zero.
Auto Trait Implementations§
impl Freeze for moq_video_encoder_input
impl RefUnwindSafe for moq_video_encoder_input
impl Send for moq_video_encoder_input
impl Sync for moq_video_encoder_input
impl Unpin for moq_video_encoder_input
impl UnsafeUnpin for moq_video_encoder_input
impl UnwindSafe for moq_video_encoder_input
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