Enum EncodedVideo
#[non_exhaustive]pub enum EncodedVideo {
AnnexB(Pin<Box<dyn Stream<Item = Bytes> + Send>>),
Avc1 {
config: Bytes,
frames: Pin<Box<dyn Stream<Item = Result<EncodedFrame, Error>> + Send>>,
},
}Expand description
Encoded video for LocalBroadcast::set_encoded_video.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AnnexB(Pin<Box<dyn Stream<Item = Bytes> + Send>>)
An H.264 Annex-B byte stream, which may split anywhere.
Access units are found by their start codes, and the stream’s own parameter sets describe it, so it should repeat them before every keyframe. The broadcast stamps each access unit when it arrives.
Avc1
H.264 access units in decode order, length-prefixed as an MP4 file stores them.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for EncodedVideo
impl !RefUnwindSafe for EncodedVideo
impl !Sync for EncodedVideo
impl !UnwindSafe for EncodedVideo
impl Send for EncodedVideo
impl Unpin for EncodedVideo
impl UnsafeUnpin for EncodedVideo
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