View Single Post
Old 09-13-2012, 01:38 PM   #68
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Arrow framebuffer mini tutorial

All of the eink kindles (so far) use a 4-bit framebuffer at the hardware level. That means that you can only display pixels in 16 different shades of gray. To display more than 16 colors, you need to use dithering, which mixes those 16-colors spatially to give up to 256 different AVERAGE brightness levels.

In the case of kindles with 8-bit framebuffers, the bottom and top 4-bits must be identical, or unpredictable (hardware dependent) side-effects will result (according to comments in the eink driver GPL source code).

But for smooth animation, you can really only use 2-bit (black and white) and you need to dither only those two colors to get full grayscale. There is some sample C code showing how to do this dithering, in the "newtrix" demo (both 2-bit and 4-bit dithering).
geekmaster is offline   Reply With Quote