pub struct EncodedFrame {
pub data: Vec<u8>,
pub keyframe: bool,
pub pts: u64,
}Expand description
One encoded access unit.
Fields§
§data: Vec<u8>Annex B bytes of the access unit. Key frames start with the SPS and
PPS when EncoderConfig::repeat_headers is set, and the first frame
always does.
keyframe: boolThe access unit is an IDR picture.
pts: u64The FrameOptions::pts of the source frame.
Trait Implementations§
Source§impl Clone for EncodedFrame
impl Clone for EncodedFrame
Source§impl Debug for EncodedFrame
impl Debug for EncodedFrame
impl Eq for EncodedFrame
Source§impl PartialEq for EncodedFrame
impl PartialEq for EncodedFrame
impl StructuralPartialEq for EncodedFrame
Auto Trait Implementations§
impl Freeze for EncodedFrame
impl RefUnwindSafe for EncodedFrame
impl Send for EncodedFrame
impl Sync for EncodedFrame
impl Unpin for EncodedFrame
impl UnsafeUnpin for EncodedFrame
impl UnwindSafe for EncodedFrame
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