Possible Raspberry Pi Splash Screen

Using the source code already available and provided to everyone in a package named raspberrypi-vc-demo-source and running yum groupinstall "Development Tools" "Development Libraries", I was able to take a Raspberry Pi GIF animation, split it up into frames (bmp) via http://www.xoyosoft.com/gs/, convert them into to raw file formats (rgb), and place them as an array of textures on a cube face via OpenGL in C located under /usr/share/raspberypi-vc-demo-source/hello-pi.

Running On A F17 Rasp Pi

Automated bmp-to-rgba Converter (Py)

import sys
f=open(sys.argv[1],"r")
g=open(sys.argv[2],"w")
h=f.read(54)
l=0
m=0
while(1):
	d=f.read(3)
	a=chr(255)
	l+=len(d)
	if (not d):
		break
	rgb=(hex(ord(d[0]))+hex(ord(d[1]))+hex(ord(d[2])))
	if (rgb == "0x250x210xd"):
		e=(chr(0)+chr(0)+chr(0))
		a=chr(0)
	e=(d[2]+d[1]+d[0])
	sys.stderr.write(rgb+"\n")
	o=(e+a)
	m+=len(o)
	g.write(o)
g.close()
f.close()
print(l,":",m)

Binary Program (Fedora People)
Source Code (Git Hub)

Advertisements
Possible Raspberry Pi Splash Screen

2 thoughts on “Possible Raspberry Pi Splash Screen

  1. Hey Jon! Can you please tell me the location of the splash screen image in pidora ? One that you displayed in your video (rotating raspberry) ! !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s