pub struct FormatSupport {
pub format: &'static str,
pub long_name: &'static str,
pub extensions: &'static [&'static str],
pub can_read: bool,
pub can_write: bool,
pub video: Vec<CodecId>,
pub audio: Vec<CodecId>,
pub subtitle: Vec<CodecId>,
pub still_image: bool,
pub max_streams: Option<usize>,
}Expand description
One row of the “what can this build read and write?” matrix, independent of any input. A UI populates its format picker from this.
Fields§
§format: &'static str§long_name: &'static str§extensions: &'static [&'static str]§can_read: bool§can_write: bool§video: Vec<CodecId>Codecs the muxer accepts, split by media type.
audio: Vec<CodecId>§subtitle: Vec<CodecId>§still_image: bool§max_streams: Option<usize>Implementations§
Trait Implementations§
Source§impl Clone for FormatSupport
impl Clone for FormatSupport
Source§fn clone(&self) -> FormatSupport
fn clone(&self) -> FormatSupport
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 FormatSupport
impl RefUnwindSafe for FormatSupport
impl Send for FormatSupport
impl Sync for FormatSupport
impl Unpin for FormatSupport
impl UnsafeUnpin for FormatSupport
impl UnwindSafe for FormatSupport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more