pub struct Plan {
pub source: Vec<SourceStream>,
pub source_format: Option<String>,
pub targets: Vec<Target>,
}Expand description
What the engine can produce from one input: every writable container, best first.
Fields§
§source: Vec<SourceStream>The input streams the plan was computed for.
source_format: Option<String>Short name of the input container, when the caller knew it.
targets: Vec<Target>Every container that can be written, ordered by plan’s ranking.
Implementations§
Source§impl Plan
impl Plan
Sourcepub fn to_json(&self) -> String
pub fn to_json(&self) -> String
Render the whole plan as JSON: the source streams, then every target.
Shape (stable; new fields may be added):
{"source_format":"mp4",
"source":[{"index":0,"type":"video","codec":"h264"}],
"targets":[{"format":"mp4","extension":"mp4","extensions":["mp4"],
"long_name":"...","kind":"video","fidelity":"copy",
"summary":"h264 copy (copy)","args":["-c:v","copy"],
"notes":[],
"streams":[{"input_index":0,"type":"video","from":"h264",
"action":"copy"}]}]}Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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