pub struct PacketFlags {
pub keyframe: bool,
pub header: bool,
pub corrupt: bool,
pub discard: bool,
pub unit_boundary: bool,
}Expand description
Metadata flags on a packet.
Fields§
§keyframe: boolPacket is (or starts) a keyframe / random-access point.
header: boolPacket holds codec-level headers rather than media data.
corrupt: boolPacket’s data may be corrupt but decode should still be attempted.
discard: boolPacket should be discarded (e.g., decoder delay padding).
unit_boundary: boolPacket is the last in its source container’s natural framing unit (Ogg page, MP4 chunk, MKV cluster, …). Container muxers may use this signal to recreate similar boundaries in their output. Decoders should ignore it.
Trait Implementations§
Source§impl Clone for PacketFlags
impl Clone for PacketFlags
Source§fn clone(&self) -> PacketFlags
fn clone(&self) -> PacketFlags
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 PacketFlags
impl Debug for PacketFlags
Source§impl Default for PacketFlags
impl Default for PacketFlags
Source§fn default() -> PacketFlags
fn default() -> PacketFlags
Returns the “default value” for a type. Read more
Source§impl PartialEq for PacketFlags
impl PartialEq for PacketFlags
impl Copy for PacketFlags
impl Eq for PacketFlags
impl StructuralPartialEq for PacketFlags
Auto Trait Implementations§
impl Freeze for PacketFlags
impl RefUnwindSafe for PacketFlags
impl Send for PacketFlags
impl Sync for PacketFlags
impl Unpin for PacketFlags
impl UnsafeUnpin for PacketFlags
impl UnwindSafe for PacketFlags
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