#[non_exhaustive]pub enum VideoFormat {
Avc1,
H264,
Hvc1,
H265,
Av01,
Vp8,
Vp9,
}Expand description
A single video codec an importer can parse.
H.264 and H.265 each appear twice because the input framing differs: avc1/hvc1 are
length-prefixed NAL units with an out-of-band config record, while h264/h265 are a raw Annex B
elementary stream split on start codes, carrying its parameter sets inline. The raw names follow
ffmpeg’s h264/hevc formats rather than avc3/hev1, which say where parameter sets live, not
how NAL units are framed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Avc1
H.264, length-prefixed NALUs with an out-of-band avcC.
H264
H.264, a raw Annex B elementary stream with inline SPS/PPS.
Hvc1
H.265, length-prefixed NALUs with an out-of-band hvcC.
H265
H.265, a raw Annex B elementary stream with inline parameter sets.
Av01
AV1.
Vp8
VP8.
Vp9
VP9.
Implementations§
Source§impl VideoFormat
impl VideoFormat
Sourcepub fn track_suffix(self) -> &'static str
pub fn track_suffix(self) -> &'static str
The suffix of a track named after this format, such as .avc3 in 0.avc3.
Names the codec family the track publishes rather than the input, so a raw Annex B stream
is .avc3 or .hev1 like every other in-band H.26x track.
Trait Implementations§
Source§impl Clone for VideoFormat
impl Clone for VideoFormat
impl Copy for VideoFormat
Source§impl Debug for VideoFormat
impl Debug for VideoFormat
Source§impl Display for VideoFormat
impl Display for VideoFormat
impl Eq for VideoFormat
Source§impl FromStr for VideoFormat
impl FromStr for VideoFormat
Source§impl Hash for VideoFormat
impl Hash for VideoFormat
Source§impl PartialEq for VideoFormat
impl PartialEq for VideoFormat
impl StructuralPartialEq for VideoFormat
Auto Trait Implementations§
impl Freeze for VideoFormat
impl RefUnwindSafe for VideoFormat
impl Send for VideoFormat
impl Sync for VideoFormat
impl Unpin for VideoFormat
impl UnsafeUnpin for VideoFormat
impl UnwindSafe for VideoFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.