#[repr(transparent)]pub struct AVFormatFlags(pub i32);
Expand description
Format flags used in FFmpeg’s AVFormatContext
configuration.
These flags are format-specific capabilities that describe the inherent characteristics and limitations of a format (container). They are read-only properties that indicate what features a format supports or doesn’t support.
For example, NoFile
indicates the format doesn’t need a regular file (like
network protocols), while GlobalHeader
indicates the format uses global codec
headers.
See the official FFmpeg documentation: https://ffmpeg.org/doxygen/trunk/avformat_8h.html
Tuple Fields§
§0: i32
Implementations§
Source§impl AVFormatFlags
impl AVFormatFlags
Sourcepub const NoFile: Self
pub const NoFile: Self
The format does not require a file to be opened explicitly.
- Used for: Protocol-based formats like
rtmp://
,http://
- Equivalent to:
AVFMT_NOFILE
Sourcepub const NeedNumber: Self
pub const NeedNumber: Self
Requires a numbered sequence of files (e.g., %03d
in filenames).
- Used for: Image sequences, segment-based formats.
- Equivalent to:
AVFMT_NEEDNUMBER
Sourcepub const Experimental: Self
pub const Experimental: Self
The format is experimental and may be subject to changes.
- Used for: Newer formats that are not yet stable.
- Equivalent to:
AVFMT_EXPERIMENTAL
Sourcepub const ShowIds: Self
pub const ShowIds: Self
Displays stream identifiers when logging or printing metadata.
- Equivalent to:
AVFMT_SHOW_IDS
Sourcepub const GlobalHeader: Self
pub const GlobalHeader: Self
Uses a global header instead of individual packet headers.
- Used for: Codecs that require an extradata header (e.g., H.264, AAC in MP4).
- Equivalent to:
AVFMT_GLOBALHEADER
Sourcepub const NoTimestamps: Self
pub const NoTimestamps: Self
The format does not store timestamps.
- Used for: Raw formats (e.g., raw audio, raw video).
- Equivalent to:
AVFMT_NOTIMESTAMPS
Sourcepub const GenericIndex: Self
pub const GenericIndex: Self
The format has a generic index.
- Used for: Formats that require seeking but don’t use timestamp-based indexing.
- Equivalent to:
AVFMT_GENERIC_INDEX
Sourcepub const TsDiscontinuous: Self
pub const TsDiscontinuous: Self
The format supports discontinuous timestamps.
- Used for: Live streams where timestamps may reset (e.g., HLS, RTSP).
- Equivalent to:
AVFMT_TS_DISCONT
Sourcepub const VariableFps: Self
pub const VariableFps: Self
The format supports variable frame rates.
- Used for: Video formats where frame duration varies (e.g., MKV, MP4).
- Equivalent to:
AVFMT_VARIABLE_FPS
Sourcepub const NoDimensions: Self
pub const NoDimensions: Self
The format does not store dimensions (width & height).
- Used for: Audio-only formats, raw formats.
- Equivalent to:
AVFMT_NODIMENSIONS
Sourcepub const NoStreams: Self
pub const NoStreams: Self
The format does not contain any stream information.
- Used for: Metadata-only containers.
- Equivalent to:
AVFMT_NOSTREAMS
Sourcepub const NoBinarySearch: Self
pub const NoBinarySearch: Self
The format does not support binary search for seeking.
- Used for: Formats where linear scanning is required (e.g., live streams).
- Equivalent to:
AVFMT_NOBINSEARCH
Sourcepub const NoGenericSearch: Self
pub const NoGenericSearch: Self
The format does not support generic stream search.
- Used for: Specialized formats that require specific handling.
- Equivalent to:
AVFMT_NOGENSEARCH
Sourcepub const NoByteSeek: Self
pub const NoByteSeek: Self
The format does not support byte-based seeking.
- Used for: Formats that only support timestamp-based seeking.
- Equivalent to:
AVFMT_NO_BYTE_SEEK
Sourcepub const AllowFlush: Self
pub const AllowFlush: Self
Allows flushing of buffered data.
- Used for: Streaming formats that support mid-stream flushing.
- Equivalent to:
AVFMT_ALLOW_FLUSH
Sourcepub const TsNonStrict: Self
pub const TsNonStrict: Self
The format does not require strict timestamp ordering.
- Used for: Formats where out-of-order timestamps are common.
- Equivalent to:
AVFMT_TS_NONSTRICT
Sourcepub const TsNegative: Self
pub const TsNegative: Self
The format allows negative timestamps.
- Used for: Certain formats that support negative PTS/DTS.
- Equivalent to:
AVFMT_TS_NEGATIVE
Trait Implementations§
Source§impl BitAnd for AVFormatFlags
impl BitAnd for AVFormatFlags
Source§impl BitAndAssign for AVFormatFlags
impl BitAndAssign for AVFormatFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitOr for AVFormatFlags
impl BitOr for AVFormatFlags
Source§impl BitOrAssign for AVFormatFlags
impl BitOrAssign for AVFormatFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitXor for AVFormatFlags
impl BitXor for AVFormatFlags
Source§impl BitXorAssign for AVFormatFlags
impl BitXorAssign for AVFormatFlags
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl Clone for AVFormatFlags
impl Clone for AVFormatFlags
Source§fn clone(&self) -> AVFormatFlags
fn clone(&self) -> AVFormatFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more