#[repr(transparent)]pub struct AVFmtFlags(pub i32);
Expand description
Format flags used in FFmpeg’s AVFormatContext
.
These flags are user-configurable options that control how FFmpeg should
behave when reading or writing media. Unlike AVFormatFlags
which describe
format capabilities, these flags modify the runtime behavior of demuxers and
muxers.
For example, GenPts
tells FFmpeg to generate missing timestamps, while
FastSeek
enables optimized seeking behavior.
See the official FFmpeg documentation: https://ffmpeg.org/doxygen/trunk/avformat_8h.html
Tuple Fields§
§0: i32
Implementations§
Source§impl AVFmtFlags
impl AVFmtFlags
Sourcepub const GenPts: Self
pub const GenPts: Self
Generate Presentation Timestamps (PTS) if they are missing.
- Used for: Formats that may not provide timestamps.
- Binary representation:
0b0000000000000001
- Equivalent to:
AVFMT_FLAG_GENPTS
Sourcepub const IgnoreIndex: Self
pub const IgnoreIndex: Self
Ignore the index when seeking.
- Used for: Faster seeking in formats that rely on indexes.
- Binary representation:
0b0000000000000010
- Equivalent to:
AVFMT_FLAG_IGNIDX
Sourcepub const NonBlock: Self
pub const NonBlock: Self
Open input in non-blocking mode.
- Used for: Asynchronous reading.
- Binary representation:
0b0000000000000100
- Equivalent to:
AVFMT_FLAG_NONBLOCK
Sourcepub const IgnoreDts: Self
pub const IgnoreDts: Self
Ignore Decoding Timestamps (DTS).
- Used for: Cases where only PTS is needed.
- Binary representation:
0b0000000000001000
- Equivalent to:
AVFMT_FLAG_IGNDTS
Sourcepub const NoFillIn: Self
pub const NoFillIn: Self
Do not fill in missing information in streams.
- Used for: Avoiding unwanted automatic corrections.
- Binary representation:
0b0000000000010000
- Equivalent to:
AVFMT_FLAG_NOFILLIN
Sourcepub const NoParse: Self
pub const NoParse: Self
Do not parse frames.
- Used for: Formats where parsing is unnecessary.
- Binary representation:
0b0000000000100000
- Equivalent to:
AVFMT_FLAG_NOPARSE
Sourcepub const NoBuffer: Self
pub const NoBuffer: Self
Disable internal buffering.
- Used for: Real-time applications requiring low latency.
- Binary representation:
0b0000000001000000
- Equivalent to:
AVFMT_FLAG_NOBUFFER
Sourcepub const CustomIO: Self
pub const CustomIO: Self
Use custom I/O instead of standard file I/O.
- Used for: Implementing custom read/write operations.
- Binary representation:
0b0000000010000000
- Equivalent to:
AVFMT_FLAG_CUSTOM_IO
Sourcepub const DiscardCorrupt: Self
pub const DiscardCorrupt: Self
Discard corrupt frames.
- Used for: Ensuring only valid frames are processed.
- Binary representation:
0b0000000100000000
- Equivalent to:
AVFMT_FLAG_DISCARD_CORRUPT
Sourcepub const FlushPackets: Self
pub const FlushPackets: Self
Flush packets after writing.
- Used for: Streaming to avoid buffering delays.
- Binary representation:
0b0000001000000000
- Equivalent to:
AVFMT_FLAG_FLUSH_PACKETS
Sourcepub const BitExact: Self
pub const BitExact: Self
Ensure bit-exact output.
- Used for: Regression testing, avoiding encoding variations.
- Binary representation:
0b0000010000000000
- Equivalent to:
AVFMT_FLAG_BITEXACT
Sourcepub const SortDts: Self
pub const SortDts: Self
Sort packets by Decoding Timestamp (DTS).
- Used for: Ensuring ordered input.
- Binary representation:
0b0001000000000000
- Equivalent to:
AVFMT_FLAG_SORT_DTS
Sourcepub const FastSeek: Self
pub const FastSeek: Self
Enable fast seeking.
- Used for: Improving seek performance in large files.
- Binary representation:
0b0010000000000000
- Equivalent to:
AVFMT_FLAG_FAST_SEEK
Trait Implementations§
Source§impl BitAnd for AVFmtFlags
impl BitAnd for AVFmtFlags
Source§impl BitAndAssign for AVFmtFlags
impl BitAndAssign for AVFmtFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitOr for AVFmtFlags
impl BitOr for AVFmtFlags
Source§impl BitOrAssign for AVFmtFlags
impl BitOrAssign for AVFmtFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitXor for AVFmtFlags
impl BitXor for AVFmtFlags
Source§impl BitXorAssign for AVFmtFlags
impl BitXorAssign for AVFmtFlags
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl Clone for AVFmtFlags
impl Clone for AVFmtFlags
Source§fn clone(&self) -> AVFmtFlags
fn clone(&self) -> AVFmtFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more