pub struct PacketCopy { /* private fields */ }Expand description
One or more copy runs written back to back into one output.
Implementations§
Source§impl PacketCopy
impl PacketCopy
Sourcepub fn join(segments: Vec<PacketCopyPlan>) -> Result<Self, String>
pub fn join(segments: Vec<PacketCopyPlan>) -> Result<Self, String>
Joins runs, in output order, into one copy.
Every run starts at an IDR, so a decoder restarts at each join. The join also requires one sample description for all runs (codec, size, pixel format, parameter sets, time base) and decode times that keep increasing, which fails when runs reorder pictures differently.
§Errors
Names the join that breaks either, or a run copying audio in a join (copied audio only travels with one whole file).
Sourcepub fn video_packets(&self) -> u64
pub fn video_packets(&self) -> u64
Video packets the copy writes: one per output frame.
Sourcepub fn copies_audio(&self) -> bool
pub fn copies_audio(&self) -> bool
Whether the source’s audio is copied too.
Sourcepub fn audio_copy_refusal(&self) -> Option<&str>
pub fn audio_copy_refusal(&self) -> Option<&str>
Why the source’s audio, offered for copying, is not copied.
Trait Implementations§
Source§impl Clone for PacketCopy
impl Clone for PacketCopy
Auto Trait Implementations§
impl Freeze for PacketCopy
impl RefUnwindSafe for PacketCopy
impl Send for PacketCopy
impl Sync for PacketCopy
impl Unpin for PacketCopy
impl UnsafeUnpin for PacketCopy
impl UnwindSafe for PacketCopy
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> 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