pub struct ActiveClip<'a> {Show 14 fields
pub clip_id: &'a ClipId,
pub source_id: &'a SourceId,
pub track_id: &'a TrackId,
pub source_time: MediaTime,
pub visual: Option<EvaluatedVisual>,
pub composition: Option<ActiveComposition<'a>>,
pub blend_mode: ClipBlendMode,
pub cache: CacheIntent,
pub masks: &'a [ShapeMask],
pub matte: Option<&'a Matte>,
pub is_matte: bool,
pub generator: Option<&'a Generator>,
pub plan: Option<&'a GeneratorPlan>,
pub source_composition: Option<ActiveComposition<'a>>,
}Expand description
A visible or audible clip mapped to its source timestamp.
Fields§
§clip_id: &'a ClipIdActive clip identity.
source_id: &'a SourceIdMedia source needed for this clip.
track_id: &'a TrackIdTrack containing the clip.
source_time: MediaTimeSource timestamp the clip’s time map selects (forward, reversed, frozen, or looped).
visual: Option<EvaluatedVisual>Evaluated visual presentation, present only for visual tracks.
composition: Option<ActiveComposition<'a>>The composition that builds the clip’s picture, at the clip’s
composition time; None shows the source as it is.
blend_mode: ClipBlendModeArtistic blend operation used by visual composition.
cache: CacheIntentWhether a runtime may keep and reuse the clip’s rendered picture.
masks: &'a [ShapeMask]Shape masks, in order; their outlines are evaluated at the frame’s
time with crate::evaluate_geometry, their feathers with
crate::sample_scalar.
matte: Option<&'a Matte>The clip whose picture sets where this one is visible.
is_matte: boolWhether this clip is another clip’s matte, and so is drawn only into that matte, never composited itself.
generator: Option<&'a Generator>What the engine draws for a generated source, which needs no frame
from the host. It is drawn at the clip’s source_time.
plan: Option<&'a GeneratorPlan>A shapes or layout generator’s tree, its fixed parts evaluated once:
evaluate it at source_time.
source_composition: Option<ActiveComposition<'a>>For a composition source, its composition at the clip’s source time: the clip’s picture, which the host supplies no frame for.
Implementations§
Source§impl ActiveClip<'_>
impl ActiveClip<'_>
Sourcepub fn needs_source(&self) -> bool
pub fn needs_source(&self) -> bool
Whether the clip’s own source frame is drawn: it is a host-supplied source, and the clip shows it directly or its composition draws it.