View Single Post
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#1
http://www.zdez.org/drawrgb.py

On a tablet,

"python2.5 disprgb.py /mnt/initrd/usr/share/images/logo-nokia" will display the nokia logo in a window. The only other file in this format is qgn_indi_charger_connection_detected in the same directory, but there is another which is an actual png file.

I haven't tried substituting anything for the logos yet or changing the startup scripts which run the programs which display these.

The format starts with two 4 byte integers, one each for width and height in that order, then the image. The image is a set of code/datas starting with a 1 byte rle code. zero is a terminator. If the code is > 127, the number is anded with 127 and the next byte-pair is repeated that many times. If the code is < 128, it means that that many following byte pairs (2*code bytes total) should be copied. (I don't think 0x80 as a code - zero reps - occurs).

The byte pairs are in framebuffer format, BBBBBGGG GGGRRRRR
 

The Following 3 Users Say Thank You to tz1 For This Useful Post: