https://hgpu.org/?p=6622
Efficient data structures for piecewise-smooth video processing