pub struct CompressedFrame {
pub data: Vec<u8>,
pub pts: i64,
pub duration: u64,
pub flags: CompressedFrameFlags,
pub partition_id: i32,
pub width: [u32; 5],
pub height: [u32; 5],
pub spatial_layer_encoded: [u8; 5],
}Expand description
A compressed frame produced by the encoder.
Fields§
§data: Vec<u8>Compressed data of the frame. This is what you need to store or send over the wire, in order to produce a decodable bistream.
pts: i64Presentation timestamp (in timebase units).
duration: u64Duration in timebase units.
flags: CompressedFrameFlagsFrame flags.
partition_id: i32The partition id defines the decoding order of the partitions. Only applicable when “output partition” mode is enabled. First partition has id 0.
width: [u32; 5]Width of frames in this packet. VP8 will only use the first one.
height: [u32; 5]Height of frames in this packet. VP8 will only use the first one.
spatial_layer_encoded: [u8; 5]Flag to indicate if spatial layer frame in this packet is encoded or dropped. VP8 will always be set to 1.
Trait Implementations§
Source§impl Clone for CompressedFrame
impl Clone for CompressedFrame
Source§fn clone(&self) -> CompressedFrame
fn clone(&self) -> CompressedFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompressedFrame
impl Debug for CompressedFrame
Source§impl Hash for CompressedFrame
impl Hash for CompressedFrame
Source§impl Ord for CompressedFrame
impl Ord for CompressedFrame
Source§fn cmp(&self, other: &CompressedFrame) -> Ordering
fn cmp(&self, other: &CompressedFrame) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CompressedFrame
impl PartialEq for CompressedFrame
Source§impl PartialOrd for CompressedFrame
impl PartialOrd for CompressedFrame
impl Eq for CompressedFrame
impl StructuralPartialEq for CompressedFrame
Auto Trait Implementations§
impl Freeze for CompressedFrame
impl RefUnwindSafe for CompressedFrame
impl Send for CompressedFrame
impl Sync for CompressedFrame
impl Unpin for CompressedFrame
impl UnwindSafe for CompressedFrame
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