pub struct FormatInfo {
pub id: Format,
pub extension: String,
pub mime_type: String,
pub is_container: bool,
pub supported_media_types: Vec<MediaType>,
pub default_video_codec: Option<Codec>,
pub default_audio_codec: Option<Codec>,
}Expand description
Metadata about a container format.
Fields§
§id: FormatFormat identifier.
extension: StringDefault file extension (e.g., “mp4”).
mime_type: StringMIME type (e.g., “video/mp4”).
is_container: boolWhether this format is a multi-track container.
supported_media_types: Vec<MediaType>What media types this format can hold.
default_video_codec: Option<Codec>Default video codec for this format.
default_audio_codec: Option<Codec>Default audio codec for this format.
Trait Implementations§
Source§impl Clone for FormatInfo
impl Clone for FormatInfo
Source§fn clone(&self) -> FormatInfo
fn clone(&self) -> FormatInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FormatInfo
impl RefUnwindSafe for FormatInfo
impl Send for FormatInfo
impl Sync for FormatInfo
impl Unpin for FormatInfo
impl UnsafeUnpin for FormatInfo
impl UnwindSafe for FormatInfo
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