pub struct SrtTruncation {
pub kept_frames: usize,
pub total_frames: usize,
pub usable_stanzas: usize,
pub malformed_at_line: Option<usize>,
}Expand description
Reports that an H264Source built from an SRT-file timestamp source
covers fewer frames than the underlying container, because the SRT ran
out of usable stanzas partway through. The source is truncated to the last
complete group of pictures (GOP) that a stanza is available for every
frame of, so reordered (B-frame) streams remain fully resolvable.
Fields§
§kept_frames: usizeNumber of frames retained (a prefix, rounded down to the last
complete GOP boundary at or before usable_stanzas).
total_frames: usizeTotal number of frames in the underlying container.
usable_stanzas: usizeNumber of stanzas the SRT file yielded successfully.
malformed_at_line: Option<usize>Line in the SRT file where parsing stopped due to malformed content.
None if the SRT file simply had fewer stanzas than the video has
frames (no parse error, just ran out).
Trait Implementations§
Source§impl Clone for SrtTruncation
impl Clone for SrtTruncation
Source§fn clone(&self) -> SrtTruncation
fn clone(&self) -> SrtTruncation
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 SrtTruncation
impl RefUnwindSafe for SrtTruncation
impl Send for SrtTruncation
impl Sync for SrtTruncation
impl Unpin for SrtTruncation
impl UnsafeUnpin for SrtTruncation
impl UnwindSafe for SrtTruncation
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