EditComposition

class EditComposition(val tracks: List<Track>, val effects: List<EffectSpec> = emptyList(), val audio: AudioSpec = AudioSpec.Keep, val fill: Fill = Fill.Black)(source)

A complete, immutable description of an edit: what to read, what to cut, what to apply.

Output format lives in dev.jordond.filmstrip.export.ExportSpec, so one composition can be previewed and then exported at several qualities. Pass the same value to preview() and to export().

Clips live on Tracks, which play at the same time as each other rather than one after another. Most edits have a single track and never name one. clips reads it and the composition builder fills it.

Constructors

Link copied to clipboard
constructor(tracks: List<Track>, effects: List<EffectSpec> = emptyList(), audio: AudioSpec = AudioSpec.Keep, fill: Fill = Fill.Black)

Properties

Link copied to clipboard

What to do with the composition's audio once every track has been mixed.

Link copied to clipboard

The primary track's clips, which for a single-track edit is every clip there is.

Link copied to clipboard

Total duration after trimming and each clip's speed.

Link copied to clipboard

Effects applied to the composited output, after every track's own effects.

Link copied to clipboard
val fill: Fill

What fills the frame where no clip's pixels land.

Link copied to clipboard

The layers to render, the first of which is the primary one.

Functions

Link copied to clipboard

A copy with a different audio treatment.

Link copied to clipboard

A copy whose primary track holds different clips.

Link copied to clipboard

A copy with different composition-level effects.

Link copied to clipboard

A copy with a different fill.

Link copied to clipboard

A copy with different tracks.