#[repr(transparent)]pub struct AVDiscard(pub i32);
Expand description
Discard levels used in FFmpeg’s AVDiscard
.
These values specify how much of the input stream should be discarded.
See the official FFmpeg documentation: https://ffmpeg.org/doxygen/trunk/avcodec_8h.html
Tuple Fields§
§0: i32
Implementations§
Source§impl AVDiscard
impl AVDiscard
Sourcepub const None: Self
pub const None: Self
Discard nothing (decode everything).
- Used for: Keeping all packets.
- Binary representation:
-0b10000
- Equivalent to:
AVDISCARD_NONE
Sourcepub const Default: Self
pub const Default: Self
Discard useless packets (e.g., zero-size packets in AVI).
- Used for: Cleaning up unnecessary data.
- Binary representation:
0b00000
- Equivalent to:
AVDISCARD_DEFAULT
Sourcepub const NonRef: Self
pub const NonRef: Self
Discard all non-reference frames.
- Used for: Reducing decoding load while keeping keyframe accuracy.
- Binary representation:
0b01000
- Equivalent to:
AVDISCARD_NONREF
Sourcepub const Bidir: Self
pub const Bidir: Self
Discard all bidirectional (B) frames.
- Used for: Lower latency decoding, reducing memory usage.
- Binary representation:
0b10000
- Equivalent to:
AVDISCARD_BIDIR
Sourcepub const NonIntra: Self
pub const NonIntra: Self
Discard all non-intra frames.
- Used for: Keeping only intra-coded frames (I-frames).
- Binary representation:
0b11000
- Equivalent to:
AVDISCARD_NONINTRA
Trait Implementations§
Source§impl BitAndAssign for AVDiscard
impl BitAndAssign for AVDiscard
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOrAssign for AVDiscard
impl BitOrAssign for AVDiscard
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitXorAssign for AVDiscard
impl BitXorAssign for AVDiscard
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moreSource§impl Ord for AVDiscard
impl Ord for AVDiscard
Source§impl PartialOrd for AVDiscard
impl PartialOrd for AVDiscard
impl Copy for AVDiscard
impl Eq for AVDiscard
impl StructuralPartialEq for AVDiscard
Auto Trait Implementations§
impl Freeze for AVDiscard
impl RefUnwindSafe for AVDiscard
impl Send for AVDiscard
impl Sync for AVDiscard
impl Unpin for AVDiscard
impl UnwindSafe for AVDiscard
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