pub struct ClipSource {
pub cfg: DecodePumpConfig,
pub input: Bytes,
pub start_frame: u64,
pub end_frame: Option<u64>,
}Expand description
One clip of a splice: a decode config, its source bytes, and the source
frame range to keep. The first start_frame decoded frames are dropped
(the trim in-point); decoding stops once the source index reaches
end_frame (exclusive — the trim out-point). end_frame = None keeps the
clip to its end. A single full-range clip (start_frame = 0,
end_frame = None) is a plain, un-spliced transcode.
Fields§
§cfg: DecodePumpConfig§input: Bytes§start_frame: u64§end_frame: Option<u64>Implementations§
Source§impl ClipSource
impl ClipSource
Sourcepub fn whole(cfg: DecodePumpConfig, input: Bytes) -> Self
pub fn whole(cfg: DecodePumpConfig, input: Bytes) -> Self
A whole clip, no trim.
Trait Implementations§
Source§impl Clone for ClipSource
impl Clone for ClipSource
Source§fn clone(&self) -> ClipSource
fn clone(&self) -> ClipSource
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 ClipSource
impl RefUnwindSafe for ClipSource
impl Send for ClipSource
impl Sync for ClipSource
impl Unpin for ClipSource
impl UnsafeUnpin for ClipSource
impl UnwindSafe for ClipSource
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