#[non_exhaustive]pub struct EncodedStreamFrame {
pub bytes: Vec<u8>,
pub kind: FrameKind,
pub frame_index: u64,
}Expand description
One frame emitted by Vp8InterStreamEncoder::encode_frame.
Bundles the raw VP8 elementary-stream bytes with the K-vs-P classification and the running frame index, so the caller can sink the bytes into a container while logging or asserting the scheduling pattern.
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.bytes: Vec<u8>Raw VP8 elementary-stream bytes for this frame (one packet =
one frame). Suitable for IVF muxing or for
crate::state::Vp8DecoderState::decode_frame.
kind: FrameKindWhether the encoder coded this frame as a key frame or as a ZERO_MV P-frame.
frame_index: u640-based frame index inside this stream — equal to the encoder’s
frame_count() at the moment this frame was emitted minus one.
Implementations§
Source§impl EncodedStreamFrame
impl EncodedStreamFrame
Source§impl EncodedStreamFrame
impl EncodedStreamFrame
Sourcepub fn is_keyframe(&self) -> bool
pub fn is_keyframe(&self) -> bool
Convenience: true iff this frame was coded as a key frame.
Trait Implementations§
Source§impl Clone for EncodedStreamFrame
impl Clone for EncodedStreamFrame
Auto Trait Implementations§
impl Forget for EncodedStreamFrame
impl Freeze for EncodedStreamFrame
impl Move for EncodedStreamFrame
impl RefUnwindSafe for EncodedStreamFrame
impl Send for EncodedStreamFramewhere
RawVecInner: Send,
impl Sync for EncodedStreamFramewhere
RawVecInner: Sync,
impl Unpin for EncodedStreamFrame
impl UnsafeUnpin for EncodedStreamFrame
impl UnwindSafe for EncodedStreamFramewhere
RawVecInner: UnwindSafe,
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