#[non_exhaustive]#[repr(u32)]pub enum AVIODataMarkerType {
AVIO_DATA_MARKER_HEADER = 0,
AVIO_DATA_MARKER_SYNC_POINT = 1,
AVIO_DATA_MARKER_BOUNDARY_POINT = 2,
AVIO_DATA_MARKER_UNKNOWN = 3,
AVIO_DATA_MARKER_TRAILER = 4,
AVIO_DATA_MARKER_FLUSH_POINT = 5,
}
Expand description
Different data types that can be returned via the AVIO write_data_type callback.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AVIO_DATA_MARKER_HEADER = 0
Header data; this needs to be present for the stream to be decodeable.
AVIO_DATA_MARKER_SYNC_POINT = 1
A point in the output bytestream where a decoder can start decoding (i.e. a keyframe). A demuxer/decoder given the data flagged with AVIO_DATA_MARKER_HEADER, followed by any AVIO_DATA_MARKER_SYNC_POINT, should give decodeable results.
AVIO_DATA_MARKER_BOUNDARY_POINT = 2
A point in the output bytestream where a demuxer can start parsing (for non self synchronizing bytestream formats). That is, any non-keyframe packet start point.
AVIO_DATA_MARKER_UNKNOWN = 3
This is any, unlabelled data. It can either be a muxer not marking any positions at all, it can be an actual boundary/sync point that the muxer chooses not to mark, or a later part of a packet/fragment that is cut into multiple write callbacks due to limited IO buffer size.
AVIO_DATA_MARKER_TRAILER = 4
Trailer data, which doesn’t contain actual content, but only for finalizing the output file.
AVIO_DATA_MARKER_FLUSH_POINT = 5
A point in the output bytestream where the underlying AVIOContext might flush the buffer depending on latency or buffering requirements. Typically means the end of a packet.
Trait Implementations§
source§impl Clone for AVIODataMarkerType
impl Clone for AVIODataMarkerType
source§fn clone(&self) -> AVIODataMarkerType
fn clone(&self) -> AVIODataMarkerType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AVIODataMarkerType
impl Debug for AVIODataMarkerType
source§impl Hash for AVIODataMarkerType
impl Hash for AVIODataMarkerType
source§impl PartialEq for AVIODataMarkerType
impl PartialEq for AVIODataMarkerType
source§fn eq(&self, other: &AVIODataMarkerType) -> bool
fn eq(&self, other: &AVIODataMarkerType) -> bool
self
and other
values to be equal, and is used
by ==
.