pub struct ScenePlacement {
pub source: PathBuf,
pub offset: Duration,
pub in_point: Duration,
pub out_point: Option<Duration>,
pub speed: f64,
pub xfade_dur: Duration,
pub xfade_kind: Option<XfadeTransition>,
pub opacity: f32,
pub layer: RealtimeLayerDescriptor,
pub fade_in: Duration,
pub fade_out: Duration,
pub volume: AnimatedValue<f64>,
}Expand description
One video clip placed on the timeline.
Fields are pre-resolved model projections (e.g. in_point defaulted, speed
clamped, xfade_dur computed); media-dependent resolution (the effective
clip duration when out_point is None) is done by the runner at open time.
Fields§
§source: PathBufSource media path.
offset: DurationGlobal timeline position where this placement starts.
in_point: DurationSource-file PTS at which playback starts (Clip::in_point, defaulted to zero).
out_point: Option<Duration>Source-file PTS at which playback ends (None = play to EOF).
speed: f64Playback speed multiplier (1.0 = normal), clamped to at least 0.01.
xfade_dur: DurationCrossfade duration from the previous placement into this one. Meaningful on
the V1 base track only; Duration::ZERO = hard cut.
xfade_kind: Option<XfadeTransition>The xfade transition kind for this crossfade (V1 base track only). None
when there is no transition; the runner defaults to Fade if a duration is
set without a kind.
opacity: f32Per-clip opacity in [0.0, 1.0].
layer: RealtimeLayerDescriptorThe dimension-free compositing description (effects, blend, position, and the
opacity/position animation tracks). The runner realises it per frame via
RealtimeLayer::with_dimensions.
fade_in: DurationAudio fade-in duration (Duration::ZERO = none).
fade_out: DurationAudio fade-out duration (Duration::ZERO = none).
volume: AnimatedValue<f64>Resolved audio gain (dB), static or animated. A static value is applied once at open; an animated one is evaluated per tick.
Trait Implementations§
Source§impl Clone for ScenePlacement
impl Clone for ScenePlacement
Source§fn clone(&self) -> ScenePlacement
fn clone(&self) -> ScenePlacement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more