@Ehhh: Did you see my
gmv2raw eink transcoder that does really fast dither without using a dither table?
It takes raw 800x600 video frames from STDIN and rotates them to 600x800, does contrast and brightness adjustments, and does an 8x8 ordered dither
(without using a dither table) and outputs them to STDOUT, all in a few lines of code. I am proud of it (until I figure out an even better way).