#[non_exhaustive]pub struct Clip {
pub id: ClipId,
pub source_id: SourceId,
pub timeline_range: TimeRange,
pub source_range: TimeRange,
pub visual: VisualProperties,
pub composition: Option<ClipComposition>,
pub blend_mode: ClipBlendMode,
pub masks: Vec<ShapeMask>,
pub matte: Option<Matte>,
pub time_map: TimeMap,
pub audio: AudioProperties,
pub cache: CacheIntent,
}Expand description
A reference to a source over independent timeline and source ranges.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: ClipIdStable clip identity.
source_id: SourceIdSource consumed by this clip.
timeline_range: TimeRangeDestination interval on the project timeline.
source_range: TimeRangeInterval read from the source timeline.
visual: VisualPropertiesResolution-independent visual presentation controls.
composition: Option<ClipComposition>The composition graph that builds the clip’s picture from its source, with the clip’s time mapping onto it. Without one the clip shows its source as is. Visual clips only.
blend_mode: ClipBlendModeArtistic operation used when this clip is composited over earlier layers.
masks: Vec<ShapeMask>Shapes that limit where the clip is visible, applied in order after its composition and
before its transform. At most crate::MAX_CLIP_MASKS; visual clips only.
matte: Option<Matte>Another visual clip whose picture sets where this clip is visible.
time_map: TimeMapHow timeline time maps onto the source range.
audio: AudioPropertiesPresentation controls applied to this clip’s audio.
cache: CacheIntentWhether a runtime may keep and reuse the clip’s rendered picture. Never changes what renders.
Implementations§
Source§impl Clip
impl Clip
Sourcepub fn stretches_audio(&self) -> bool
pub fn stretches_audio(&self) -> bool
Whether the clip’s audio is time-stretched to keep its pitch: it asks to, plays forward or reversed, and at a speed other than 1.
Source§impl Clip
impl Clip
Sourcepub fn for_each_timeline_value_mut(&mut self, visit: &mut TimelineVisit<'_>)
pub fn for_each_timeline_value_mut(&mut self, visit: &mut TimelineVisit<'_>)
Calls visit with each of the clip’s values keyed in timeline time.