#[non_exhaustive]#[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_publish_media_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. Pass a NULL hint pointer to moq_publish_media_hint for none.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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
Source§fn clone(&self) -> moq_video_hint
fn clone(&self) -> moq_video_hint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for moq_video_hint
Source§impl Default for moq_video_hint
impl Default for moq_video_hint
Source§fn default() -> moq_video_hint
fn default() -> moq_video_hint
Returns the “default value” for a type. Read more
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