#[repr(C)]pub struct moq_video_hint {
pub coded_width: u32,
pub coded_height: u32,
pub has_coded: bool,
pub bitrate: u64,
pub has_bitrate: bool,
pub framerate: f64,
pub has_framerate: bool,
pub optimize_for_latency: bool,
pub has_optimize_for_latency: bool,
}Expand description
Optional catalog fields for moq_video_init::hint.
Zero the struct and set only the has_* flags you want. Hints fill gaps the
bitstream leaves (especially bitrate); a value the stream detects later wins
for dimensions.
Fields§
§coded_width: u32Encoded width in pixels when has_coded is true.
coded_height: u32Encoded height in pixels when has_coded is true.
has_coded: boolWhether coded_width and coded_height are present.
bitrate: u64Maximum bitrate in bits per second when has_bitrate is true.
has_bitrate: boolWhether bitrate is present.
framerate: f64Frame rate when has_framerate is true.
has_framerate: boolWhether framerate is present.
optimize_for_latency: boolLatency-optimized decode when has_optimize_for_latency is true.
has_optimize_for_latency: boolWhether optimize_for_latency is present.
Trait Implementations§
Source§impl Clone for moq_video_hint
impl Clone for moq_video_hint
impl Copy for moq_video_hint
Auto Trait Implementations§
impl Freeze for moq_video_hint
impl RefUnwindSafe for moq_video_hint
impl Send for moq_video_hint
impl Sync for moq_video_hint
impl Unpin for moq_video_hint
impl UnsafeUnpin for moq_video_hint
impl UnwindSafe for moq_video_hint
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