pub struct ActiveClip<'a> {Show 17 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 adjustment: bool,
pub generator: Option<&'a Generator>,
pub plan: Option<&'a GeneratorPlan>,
pub source_composition: Option<ActiveComposition<'a>>,
pub data: SampleContext<'a>,
pub correction: Option<Correction>,
}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.
adjustment: boolWhether the clip is an adjustment clip: it has no picture, and its composition’s clip steps read the scene composited beneath it. It has no generator, plan, source composition or correction, and needs only the frames its composition’s media steps read.
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).
data: SampleContext<'a>What the clip’s timeline-time values (its masks) read data through.
correction: Option<Correction>The correction drawn between the clip’s finished picture and its visual, when it has one with a value at this time.
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.