pub struct SoulParams {
pub period: f32,
pub max_alpha: f32,
pub max_scale: f32,
/* private fields */
}Expand description
Parameters for soul. Default is a clearly visible but not
overwhelming ghost.
Each cycle lasts period seconds: the ghost starts as an exact copy
(scale 1, opacity max_alpha), grows to max_scale and fades to
transparent, then the cycle restarts. At the exact cycle start the
ghost coincides with the image, so the output equals the input there.
The animation is driven by frame timestamps (pts × time_base);
frames without timestamps render the cycle-start (identity) phase.
Fields§
§period: f32Cycle length in seconds, 0.1..=10.0.
max_alpha: f32Ghost opacity at cycle start, 0.0..=1.0; it decays linearly to
zero across the cycle.
max_scale: f32Ghost scale reached at cycle end, 1.0..=2.0.
Trait Implementations§
Source§impl Clone for SoulParams
impl Clone for SoulParams
Source§fn clone(&self) -> SoulParams
fn clone(&self) -> SoulParams
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 moreimpl Copy for SoulParams
Source§impl Debug for SoulParams
impl Debug for SoulParams
Source§impl Default for SoulParams
impl Default for SoulParams
Source§impl PartialEq for SoulParams
impl PartialEq for SoulParams
impl Pod for SoulParams
impl StructuralPartialEq for SoulParams
Auto Trait Implementations§
impl Freeze for SoulParams
impl RefUnwindSafe for SoulParams
impl Send for SoulParams
impl Sync for SoulParams
impl Unpin for SoulParams
impl UnsafeUnpin for SoulParams
impl UnwindSafe for SoulParams
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.