Key Frames
A clip's key frames as boundaries: frame indices in rising order, each but the last a key frame that lasts until the next. For a looping clip the last boundary is where the cycle starts over — the frame showing the first key frame's pose again, not drawn itself — so moving it changes the length of the loop. Marker spacing is frame duration, nothing else.
Functions
How long each key frame shows, in whole milliseconds at frameRate; exact, without drift.
Which key frame is showing at frame, or null outside them all.
These key frames with boundary index moved as near frame as the rules allow: it stays between its neighbours, and inside a clip of frameCount frames. The last boundary may reach frameCount itself, since it is where the last key frame ends, not a frame drawn.