Package-level declarations

Types

Link copied to clipboard
sealed interface AudioLevel

What to do with one clip's or one track's audio.

Link copied to clipboard
sealed interface AudioSpec

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

Link copied to clipboard
class Clip(val source: MediaSource, val trim: TimeRange? = null, val effects: List<EffectSpec> = emptyList(), val audio: AudioLevel = AudioLevel.Inherit, val snapWithin: Duration = Duration.ZERO, val fadeIn: Duration = Duration.ZERO, val fadeOut: Duration = Duration.ZERO, val speed: Double = 1.0)

One source contributing a time range to a track.

Link copied to clipboard
class ClipBuilder(source: MediaSource)

Builds one Clip.

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

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

Link copied to clipboard

Collects effect declarations.

Link copied to clipboard

Which edge of a clip or track an EnvelopePoint is measured from.

Link copied to clipboard
class EnvelopePoint(val at: Duration, val gain: Float, val from: EnvelopeAnchor = EnvelopeAnchor.Start)

One pinned gain in an AudioLevel.Envelope.

Link copied to clipboard
annotation class FilmstripDsl

Scopes filmstrip's builder receivers, so an inner block cannot silently call an outer one's members.

Link copied to clipboard
class TimeRange(val start: Duration, val endExclusive: Duration? = null)

A half-open range of media time, [start, endExclusive).

Link copied to clipboard
class Track(val clips: List<Clip>, val content: TrackContent = TrackContent.AudioAndVideo, val effects: List<EffectSpec> = emptyList(), val audio: AudioLevel = AudioLevel.Inherit, val start: Duration = Duration.ZERO, val looping: Boolean = false, val fadeIn: Duration = Duration.ZERO, val fadeOut: Duration = Duration.ZERO)

One layer of a composition: clips laid end to end, playing alongside the other tracks.

Link copied to clipboard
class TrackBuilder(content: TrackContent = TrackContent.AudioAndVideo)

Builds one Track.

Link copied to clipboard

Which media streams a track contributes to the output.

Properties

Link copied to clipboard

The speeds a clip can play at, from 32 times slower to 32 times faster.

Functions

Link copied to clipboard

Describes an edit.

Link copied to clipboard

A range covering range, with its end treated as exclusive.