pub struct ConcatPlan {
pub steps: Vec<ConcatStep>,
pub target_width: u32,
pub target_height: u32,
pub target_fps_num: u32,
pub target_fps_den: u32,
pub output: String,
}Expand description
A fully-resolved plan for concatenating mixed-source segments.
Produced by MixedSourceConcatenator::build_plan and consumed by the
caller’s encoding engine.
Fields§
§steps: Vec<ConcatStep>Ordered processing steps, one per source segment.
target_width: u32Resolved target width for the output.
target_height: u32Resolved target height for the output.
target_fps_num: u32Resolved target frame rate numerator.
target_fps_den: u32Resolved target frame rate denominator.
output: StringOutput file path.
Implementations§
Source§impl ConcatPlan
impl ConcatPlan
Sourcepub fn reencode_count(&self) -> usize
pub fn reencode_count(&self) -> usize
Returns the number of segments that will be re-encoded.
Sourcepub fn stream_copy_count(&self) -> usize
pub fn stream_copy_count(&self) -> usize
Returns the number of segments that will be stream-copied.
Sourcepub fn all_stream_copy(&self) -> bool
pub fn all_stream_copy(&self) -> bool
Returns true if all segments can be stream-copied (no re-encoding).
Trait Implementations§
Source§impl Clone for ConcatPlan
impl Clone for ConcatPlan
Source§fn clone(&self) -> ConcatPlan
fn clone(&self) -> ConcatPlan
Returns a duplicate of the value. Read more
1.0.0 · 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 ConcatPlan
impl RefUnwindSafe for ConcatPlan
impl Send for ConcatPlan
impl Sync for ConcatPlan
impl Unpin for ConcatPlan
impl UnsafeUnpin for ConcatPlan
impl UnwindSafe for ConcatPlan
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
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