Temporal run-length encoding by Sergi Grau-Carrión