#[repr(C)]pub struct moq_video_init {
pub format: u32,
pub init: *const u8,
pub init_len: usize,
pub label: *const c_char,
pub label_len: usize,
pub hint: moq_video_hint,
}Expand description
Configuration for moq_publish_video.
Zero the struct, then set format and whatever else the codec needs. init
may stay NULL for a format that resolves in band.
Fields§
§format: u32The video codec, a moq_video_format value.
init: *const u8Codec init bytes (an avcC, an hvcC), or NULL for a format that resolves from the stream itself.
init_len: usizeLength of init in bytes.
label: *const c_charHuman-readable rendition name for track pickers, or NULL if not used.
label_len: usizeLength of label in bytes.
hint: moq_video_hintCatalog fields the bitstream cannot reveal itself. Zeroed means none.
Auto Trait Implementations§
impl !Send for moq_video_init
impl !Sync for moq_video_init
impl Freeze for moq_video_init
impl RefUnwindSafe for moq_video_init
impl Unpin for moq_video_init
impl UnsafeUnpin for moq_video_init
impl UnwindSafe for moq_video_init
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