View Single Post
Old 08-31-2012, 10:12 AM   #75
geekmaster
Carpe diem, c'est la vie.
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: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
We can build kernel modules . . .
Why not an 8bpp -> 4bpp shim module to add to the stack of several lab126 shim modules?

Yes, I know, there is a difference between being able to build a module and being able to write a module.
It was just a passing brain fart (no pun intended).
There is code in my newtrix demo that does just that. It converts 8bpp 256-gray framebuffer contents into 4bpp content compatible with all eink kindles. Even the 8bpp framebuffer kindles are really just 4bpp, with the upper 4-bits just a copy of the lower 4-bits (required to avoid "unpredictable" results, according to comments in the eink driver gpl code).

My "8bpp to 4bpp dither" code could be extracted from newtrix and squeezed into a shim kernel module. Of course, it could be refined using techniques from later "no dither table" demos.
newtrix demo: https://www.mobileread.com/forums/sho...d.php?t=176802

Beware that converting to 4bpp will still have severe flicker on eink kindles. It would be better to use pure black and white dithering like my other eink demos use (including some in newtrix).

Last edited by geekmaster; 08-31-2012 at 10:35 AM.
geekmaster is offline   Reply With Quote