Temporal run-length encoding