pub struct EncodedVideoFrame {
pub data: Vec<u8>,
pub is_key_frame: bool,
pub width: u32,
pub height: u32,
pub rtp_timestamp: u32,
}Expand description
An encoded video frame, produced by an inline encoder callback or pushed
to an EncodedVideoTrack.
Fields§
§data: Vec<u8>Raw H.264 Annex-B or AVCC bitstream bytes.
is_key_frame: booltrue for IDR (key) frames.
width: u32Width in pixels (0 = inherit from the raw frame).
height: u32Height in pixels (0 = inherit from the raw frame).
rtp_timestamp: u32RTP timestamp (0 = inherit from the raw frame).
Auto Trait Implementations§
impl Freeze for EncodedVideoFrame
impl RefUnwindSafe for EncodedVideoFrame
impl Send for EncodedVideoFrame
impl Sync for EncodedVideoFrame
impl Unpin for EncodedVideoFrame
impl UnsafeUnpin for EncodedVideoFrame
impl UnwindSafe for EncodedVideoFrame
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