Package-level declarations
Types
A corner of the frame and how far in from it an overlay sits.
Composite an image over the video.
How an overlay is drawn at one instant.
An effect drawn over the frame once geometry has settled.
The three things an animation may change about one drawn frame.
A displacement from where an overlay would otherwise sit, as a fraction of the frame it is drawn on.
Where a composited overlay lands, in real pixels of the frame it is drawn on.
Where one frame sits inside the range an overlay is drawn over.
Burn text into the video.
Functions
Fades the overlay in over inDuration and back out over outDuration.
The corner and margin that bring an image overlay's own corner to this point.
Resolves this text against the frame it is burned into.
Resolves this overlay against the frame it is composited onto.
Runs both animations on every frame and merges what they answer.
Where this placement puts the overlay on frame, as a fraction of it.