pub struct OverlayPipeline { /* private fields */ }Expand description
Aggregate overlay pipeline that composes multiple watermarks.
Implementations§
Source§impl OverlayPipeline
impl OverlayPipeline
Sourcepub fn new(width: u32, height: u32) -> Self
pub fn new(width: u32, height: u32) -> Self
Create a new overlay pipeline for a given frame size.
Sourcepub fn add_layer(&mut self, config: WatermarkConfig)
pub fn add_layer(&mut self, config: WatermarkConfig)
Add a watermark layer.
Sourcepub fn layer_count(&self) -> usize
pub fn layer_count(&self) -> usize
Return the number of layers.
Sourcepub fn visible_layers_at(&self, time_seconds: f64) -> Vec<&WatermarkConfig>
pub fn visible_layers_at(&self, time_seconds: f64) -> Vec<&WatermarkConfig>
Return layers that are visible at the given timestamp.
Sourcepub fn frame_size(&self) -> (u32, u32)
pub fn frame_size(&self) -> (u32, u32)
Return the configured frame dimensions.
Trait Implementations§
Source§impl Clone for OverlayPipeline
impl Clone for OverlayPipeline
Source§fn clone(&self) -> OverlayPipeline
fn clone(&self) -> OverlayPipeline
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 OverlayPipeline
impl RefUnwindSafe for OverlayPipeline
impl Send for OverlayPipeline
impl Sync for OverlayPipeline
impl Unpin for OverlayPipeline
impl UnsafeUnpin for OverlayPipeline
impl UnwindSafe for OverlayPipeline
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