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 selected by the clip’s time map.
visual: Option<EvaluatedVisual>Evaluated visual presentation, present only for visual tracks.
composition: Option<ActiveComposition<'a>>The composition that builds the clip’s picture; None shows the source as 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. Evaluate outlines with crate::evaluate_geometry and feathers with
crate::sample_scalar at the frame’s time.
matte: Option<&'a Matte>The clip whose picture sets where this one is visible.
is_matte: boolWhether this clip is another clip’s matte, drawn only into that matte.
generator: Option<&'a Generator>Generated source content, drawn at source_time with no host frame.
plan: Option<&'a GeneratorPlan>Planned shapes or layout generator tree, to evaluate at source_time.
source_composition: Option<ActiveComposition<'a>>For a composition source, its composition at the clip’s source time (no host frame).
Implementations§
Source§impl ActiveClip<'_>
impl ActiveClip<'_>
Sourcepub fn needs_source(&self) -> bool
pub fn needs_source(&self) -> bool
Whether the clip draws its own host-supplied source frame.