#[repr(transparent)]pub struct AVPktFlags(pub i32);
Expand description
Packet flags used in FFmpeg’s AVPacket
.
These flags describe metadata about a packet, such as whether it is a keyframe or corrupt.
See the official FFmpeg documentation: https://ffmpeg.org/doxygen/trunk/avcodec_8h.html
Tuple Fields§
§0: i32
Implementations§
Source§impl AVPktFlags
impl AVPktFlags
Sourcepub const Key: Self
pub const Key: Self
This packet contains a keyframe.
- Used for: Identifying keyframes in video streams.
- Binary representation:
0b00001
- Equivalent to:
AV_PKT_FLAG_KEY
Sourcepub const Corrupt: Self
pub const Corrupt: Self
This packet is corrupt.
- Used for: Marking damaged or incomplete data.
- Binary representation:
0b00010
- Equivalent to:
AV_PKT_FLAG_CORRUPT
Sourcepub const Discard: Self
pub const Discard: Self
This packet should be discarded.
- Used for: Frames that should be ignored by decoders.
- Binary representation:
0b00100
- Equivalent to:
AV_PKT_FLAG_DISCARD
Sourcepub const Trusted: Self
pub const Trusted: Self
This packet comes from a trusted source.
- Used for: Security and validation checks.
- Binary representation:
0b01000
- Equivalent to:
AV_PKT_FLAG_TRUSTED
Sourcepub const Disposable: Self
pub const Disposable: Self
This packet is disposable (e.g., non-reference frames).
- Used for: Frames that can be dropped without affecting playback.
- Binary representation:
0b10000
- Equivalent to:
AV_PKT_FLAG_DISPOSABLE
Trait Implementations§
Source§impl BitAnd for AVPktFlags
impl BitAnd for AVPktFlags
Source§impl BitAndAssign for AVPktFlags
impl BitAndAssign for AVPktFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOr for AVPktFlags
impl BitOr for AVPktFlags
Source§impl BitOrAssign for AVPktFlags
impl BitOrAssign for AVPktFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitXor for AVPktFlags
impl BitXor for AVPktFlags
Source§impl BitXorAssign for AVPktFlags
impl BitXorAssign for AVPktFlags
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moreSource§impl Clone for AVPktFlags
impl Clone for AVPktFlags
Source§fn clone(&self) -> AVPktFlags
fn clone(&self) -> AVPktFlags
Returns a copy 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 AVPktFlags
impl Debug for AVPktFlags
Source§impl From<AVPktFlags> for i32
impl From<AVPktFlags> for i32
Source§fn from(value: AVPktFlags) -> Self
fn from(value: AVPktFlags) -> Self
Converts to this type from the input type.
Source§impl From<AVPktFlags> for u32
impl From<AVPktFlags> for u32
Source§fn from(value: AVPktFlags) -> Self
fn from(value: AVPktFlags) -> Self
Converts to this type from the input type.
Source§impl From<i32> for AVPktFlags
impl From<i32> for AVPktFlags
Source§impl From<u32> for AVPktFlags
impl From<u32> for AVPktFlags
Source§impl Hash for AVPktFlags
impl Hash for AVPktFlags
Source§impl Not for AVPktFlags
impl Not for AVPktFlags
Source§impl Ord for AVPktFlags
impl Ord for AVPktFlags
Source§fn cmp(&self, other: &AVPktFlags) -> Ordering
fn cmp(&self, other: &AVPktFlags) -> 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<i32> for AVPktFlags
impl PartialEq<i32> for AVPktFlags
Source§impl PartialEq for AVPktFlags
impl PartialEq for AVPktFlags
Source§impl PartialOrd for AVPktFlags
impl PartialOrd for AVPktFlags
impl Copy for AVPktFlags
impl Eq for AVPktFlags
impl StructuralPartialEq for AVPktFlags
Auto Trait Implementations§
impl Freeze for AVPktFlags
impl RefUnwindSafe for AVPktFlags
impl Send for AVPktFlags
impl Sync for AVPktFlags
impl Unpin for AVPktFlags
impl UnwindSafe for AVPktFlags
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