Sdl & ep9312

SDL works quite well with Cirrus Logic EP9312 Engineering Development Board
( better than it was supossed to work hehe )

1.) but fastest Video Mode is 16bpp ( 565 ) not 8, and cannot set HWSurface
on frame buffer ( even with root privs ) any ‘whys’ ?

2.) SDL cannot set correct pallete with 8bpp ( it looks like 16 colors ( not bits ) palette )

3.) is bit aligment on ARM processors the cause of 24 bit output surface when saving
to bitmap with SDL_SaveBMP() display surface ?
( it has 16bpp when extracting pixel format info from it )

4.) does SDL support 8 bit pixel packed modes and which ones ?

thanks anyway

@pamashoid_at_poczta

1.) but fastest Video Mode is 16bpp ( 565 ) not 8, and cannot set HWSurface
on frame buffer ( even with root privs ) any ‘whys’ ?

No idea. Try adding debug print statements to the SDL fbcon driver.

2.) SDL cannot set correct pallete with 8bpp ( it looks like 16 colors ( not bits ) palette )

Again, check to see if the ioctl calls are doing the right thing.

3.) is bit aligment on ARM processors the cause of 24 bit output surface when saving
to bitmap with SDL_SaveBMP() display surface ?
( it has 16bpp when extracting pixel format info from it )

No, the BMP format is 24-bpp.

4.) does SDL support 8 bit pixel packed modes and which ones ?

Nope, it assumes palettized mode in 8-bpp.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

SDL works well ( 12 - 20 fps with average of ~16fps ( with fullscreen UpdateRects )

earlier problems I’ve encountered was not SDL fault
but faulty ep93xxfb.c with not working fbset and other ‘fb utils’

SDL_image -> works ( except for .gif loading which is not a problem I think )
SDL_mixer -> partially ( sometimes it can hang up sys,
but I haven’t tracked the cause yet )

compilation fails:
ogg vorbis SDK
( and I can’t use them in mixer, but the same with mp3 :slight_smile: )