fbsplash - segfault
Michele Sanges
michele.sanges at gmail.com
Mon Feb 23 17:28:23 UTC 2009
About the fbsplash applet, the log message of the revision 25366 says:
> bail out if screen resolution does not match PPM dimensions.
> Previously a 640x480 PPM on an e.g. 720x400 console would just segfault when
> reading the lines. While this bug should perhaps be fixed to handle such cases
> properly we just exit gracefully until somebody is willing to take care of it
> properly.
fbsplash supports only display with 16bpp colour depth. Unfortunately I
can't change the framebuffer of my laptop display to another resolution
maintaining the same colors number.
I tried to display on my 640x480, 16bpp framebuffer, two images; the
first one smaller and the second one larger than my screen resolution.
In both cases the images are displayed correctly, without any
segmentation fault.
Are you sure that the problem is the image resolution and not its colors
number? Both my images are in RGB colors (24 bpp), as required by the
fbsplash; their are converted to 16bpp (565 coded) within the
fb_drawimage function:
> for (i = 0; i < width; i++) {
> unsigned thispix;
> thispix = (((unsigned)pixel[0] << 8) & 0xf800)
> | (((unsigned)pixel[1] << 3) & 0x07e0)
> | (((unsigned)pixel[2] >> 3));
> *src++ = thispix;
> pixel += 3;
> }
Can you send me the image are you using?
Anyway, the attached patch sets the 'linesize' value after that the
'width' variable was modified. Please, can you try it?
Thanks.
--
Michele Sanges
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fbsplash_20090223.diff
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090223/0351ce64/attachment.diff>
More information about the busybox
mailing list