pub struct Format {
pub name: &'static str,
pub long_name: &'static str,
pub extensions: &'static [&'static str],
pub demuxer: Option<DemuxerFactory>,
pub muxer: Option<MuxerFactory>,
pub muxer_path: Option<PathMuxerFactory>,
pub probe: Option<ProbeFn>,
pub mux_caps: MuxCaps,
}Expand description
Static description of a container format and its read/write support.
Fields§
§name: &'static strShort name (avi, mp4, …), as used by ffmpeg -f <name>.
long_name: &'static str§extensions: &'static [&'static str]File extensions that imply this format (without the dot).
demuxer: Option<DemuxerFactory>Present if this format can be demuxed (read).
muxer: Option<MuxerFactory>Present if this format can be muxed (written).
muxer_path: Option<PathMuxerFactory>Present for formats that mux into a path (playlist + segment files)
rather than one byte sink — HLS, DASH. Mutually exclusive with muxer.
probe: Option<ProbeFn>Content sniffer for magic-byte detection (independent of the filename).
mux_caps: MuxCapsWhat this format’s muxer accepts. MuxCaps::NONE for demux-only
formats. Keep it in step with the muxer — tests/mux_caps.rs gates it.
Implementations§
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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