#[repr(transparent)]pub struct AVSeekFlag(pub i32);
Expand description
Seek flags used in FFmpeg’s av_seek_frame
function.
These flags modify how seeking is performed in media files.
See the official FFmpeg documentation: https://ffmpeg.org/doxygen/trunk/group__lavf__decoding.html#gaa59bdaec0590cc36300753c5cf6c9d49
Tuple Fields§
§0: i32
Implementations§
Source§impl AVSeekFlag
impl AVSeekFlag
Sourcepub const Backward: Self
pub const Backward: Self
Seek to the closest keyframe before the specified timestamp.
- Used for: Ensuring accurate decoding by seeking to a valid keyframe.
- Binary representation:
0b0000000000000001
- Equivalent to:
AVSEEK_FLAG_BACKWARD
Sourcepub const Byte: Self
pub const Byte: Self
Seek by byte position instead of timestamp.
- Used for: Formats where byte offsets are more reliable than timestamps.
- Binary representation:
0b0000000000000010
- Equivalent to:
AVSEEK_FLAG_BYTE
Trait Implementations§
Source§impl BitAnd for AVSeekFlag
impl BitAnd for AVSeekFlag
Source§impl BitAndAssign for AVSeekFlag
impl BitAndAssign for AVSeekFlag
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOr for AVSeekFlag
impl BitOr for AVSeekFlag
Source§impl BitOrAssign for AVSeekFlag
impl BitOrAssign for AVSeekFlag
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitXor for AVSeekFlag
impl BitXor for AVSeekFlag
Source§impl BitXorAssign for AVSeekFlag
impl BitXorAssign for AVSeekFlag
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moreSource§impl Clone for AVSeekFlag
impl Clone for AVSeekFlag
Source§fn clone(&self) -> AVSeekFlag
fn clone(&self) -> AVSeekFlag
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 AVSeekFlag
impl Debug for AVSeekFlag
Source§impl From<AVSeekFlag> for i32
impl From<AVSeekFlag> for i32
Source§fn from(value: AVSeekFlag) -> Self
fn from(value: AVSeekFlag) -> Self
Converts to this type from the input type.
Source§impl From<AVSeekFlag> for u32
impl From<AVSeekFlag> for u32
Source§fn from(value: AVSeekFlag) -> Self
fn from(value: AVSeekFlag) -> Self
Converts to this type from the input type.
Source§impl From<i32> for AVSeekFlag
impl From<i32> for AVSeekFlag
Source§impl From<u32> for AVSeekFlag
impl From<u32> for AVSeekFlag
Source§impl Hash for AVSeekFlag
impl Hash for AVSeekFlag
Source§impl Not for AVSeekFlag
impl Not for AVSeekFlag
Source§impl Ord for AVSeekFlag
impl Ord for AVSeekFlag
Source§fn cmp(&self, other: &AVSeekFlag) -> Ordering
fn cmp(&self, other: &AVSeekFlag) -> 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 AVSeekFlag
impl PartialEq<i32> for AVSeekFlag
Source§impl PartialEq for AVSeekFlag
impl PartialEq for AVSeekFlag
Source§impl PartialOrd for AVSeekFlag
impl PartialOrd for AVSeekFlag
impl Copy for AVSeekFlag
impl Eq for AVSeekFlag
impl StructuralPartialEq for AVSeekFlag
Auto Trait Implementations§
impl Freeze for AVSeekFlag
impl RefUnwindSafe for AVSeekFlag
impl Send for AVSeekFlag
impl Sync for AVSeekFlag
impl Unpin for AVSeekFlag
impl UnwindSafe for AVSeekFlag
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