#[non_exhaustive]pub struct EncodedVideo {
pub rid: String,
pub codec: VideoCodec,
pub data: Bytes,
pub keyframe: bool,
pub capture_us: u64,
pub temporal_id: u8,
pub layer_sync: bool,
pub width: u32,
pub height: u32,
}Expand description
Video publishing: the engine’s frame API (Call::publish_video) and its types.
Video publishing: the engine’s frame API (Call::publish_video) and its types.
Video publishing: the engine’s frame API (Call::publish_video) and its types.
One encoded plaintext frame of one layer (the engine encrypts it).
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.rid: StringThe layer.
codec: VideoCodecThe codec.
data: BytesVP8: one frame; H.264: one access unit (normalised by the engine).
keyframe: boolA keyframe.
capture_us: u64The capture time, µs (the same for every layer of one capture).
temporal_id: u8VP8: the temporal layer (0 = base).
layer_sync: boolVP8: RFC 7741’s Y bit.
width: u32Coded width.
height: u32Coded height.
Implementations§
Source§impl EncodedVideo
impl EncodedVideo
Sourcepub fn new(
rid: &str,
codec: VideoCodec,
data: Bytes,
keyframe: bool,
capture_us: u64,
width: u32,
height: u32,
) -> EncodedVideo
pub fn new( rid: &str, codec: VideoCodec, data: Bytes, keyframe: bool, capture_us: u64, width: u32, height: u32, ) -> EncodedVideo
A frame of layer rid on the base temporal layer.
Sourcepub fn with_layer(self, temporal_id: u8, layer_sync: bool) -> EncodedVideo
pub fn with_layer(self, temporal_id: u8, layer_sync: bool) -> EncodedVideo
With its temporal layer (VP8).
Trait Implementations§
Source§impl Clone for EncodedVideo
impl Clone for EncodedVideo
Source§impl Debug for EncodedVideo
impl Debug for EncodedVideo
impl Eq for EncodedVideo
Source§impl PartialEq for EncodedVideo
impl PartialEq for EncodedVideo
impl StructuralPartialEq for EncodedVideo
Auto Trait Implementations§
impl !Freeze for EncodedVideo
impl Forget for EncodedVideo
impl Move for EncodedVideo
impl RefUnwindSafe for EncodedVideo
impl Send for EncodedVideo
impl Sync for EncodedVideo
impl Unpin for EncodedVideo
impl UnsafeUnpin for EncodedVideo
impl UnwindSafe for EncodedVideo
Blanket Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more