pub struct TimecodeConfig {
pub timecode_format: TimecodeFormat,
pub elements: Vec<OverlayElement>,
pub safe_margin: u32,
pub progress_bar: ProgressBar,
pub context: FrameContext,
}Expand description
Configuration for the timecode filter.
Fields§
§timecode_format: TimecodeFormatTimecode format.
elements: Vec<OverlayElement>Overlay elements.
safe_margin: u32Safe area margin in pixels.
progress_bar: ProgressBarProgress bar configuration.
context: FrameContextFrame context for metadata.
Implementations§
Source§impl TimecodeConfig
impl TimecodeConfig
Sourcepub fn new(format: TimecodeFormat) -> Self
pub fn new(format: TimecodeFormat) -> Self
Create a new timecode configuration.
Sourcepub fn with_element(self, element: OverlayElement) -> Self
pub fn with_element(self, element: OverlayElement) -> Self
Add an overlay element.
Sourcepub fn with_safe_margin(self, margin: u32) -> Self
pub fn with_safe_margin(self, margin: u32) -> Self
Set the safe area margin.
Sourcepub fn with_progress_bar(self, progress_bar: ProgressBar) -> Self
pub fn with_progress_bar(self, progress_bar: ProgressBar) -> Self
Set the progress bar.
Sourcepub fn with_context(self, context: FrameContext) -> Self
pub fn with_context(self, context: FrameContext) -> Self
Set the frame context.
Trait Implementations§
Source§impl Clone for TimecodeConfig
impl Clone for TimecodeConfig
Source§fn clone(&self) -> TimecodeConfig
fn clone(&self) -> TimecodeConfig
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 moreSource§impl Debug for TimecodeConfig
impl Debug for TimecodeConfig
Auto Trait Implementations§
impl Freeze for TimecodeConfig
impl RefUnwindSafe for TimecodeConfig
impl Send for TimecodeConfig
impl Sync for TimecodeConfig
impl Unpin for TimecodeConfig
impl UnsafeUnpin for TimecodeConfig
impl UnwindSafe for TimecodeConfig
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> 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