Skip to contentSkip to conversation

svn commit: trunk/buildroot/package: fbv

Buildroot ulf at uclibc.org 1 participant 1 message Jul 23, 2007

lore
Share & tools
lore
#0 lore raw

Author: ulf
Date: 2007-07-23 01:59:10 -0700 (Mon, 23 Jul 2007) New Revision: 19208

Log:
Add fbv 'frame buffer viewer' package

Added:
trunk/buildroot/package/fbv/ trunk/buildroot/package/fbv/Config.in trunk/buildroot/package/fbv/fbv-1.0b-avr32.patch trunk/buildroot/package/fbv/fbv-1.0b-fix-24bpp-support-on-big-endian.patch trunk/buildroot/package/fbv/fbv.mk

Modified:
trunk/buildroot/package/Config.in

Changeset:
Modified: trunk/buildroot/package/Config.in
===================================================================

buildroot/package/Config.in +3 -0
@@ -285,6 +285,9 @@
 
 comment "graphic libraries"
 source "package/directfb/Config.in"
+if !BR2_PACKAGE_BUSYBOX_HIDE_OTHERS || BR2_avr32
+source "package/fbv/Config.in"
+endif
 source "package/jpeg/Config.in"
 source "package/libpng/Config.in"
 source "package/libungif/Config.in"

Added: trunk/buildroot/package/fbv/Config.in
===================================================================

buildroot/package/fbv/Config.in +12 -0
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_FBV
+	bool "fbv"
+	default n
+	select BR2_PACKAGE_LIBPNG
+	select BR2_PACKAGE_JPEG
+	select BR2_PACKAGE_LIBUNGIF
+	help
+	  fbv is a very simple graphic file viewer for the framebuffer console,
+	  capable of displaying GIF, JPEG, PNG and BMP files using libungif,
+	  libjpeg and libpng.
+
+	  http://freshmeat.net/projects/fbv/

Added: trunk/buildroot/package/fbv/fbv-1.0b-avr32.patch
===================================================================

buildroot/package/fbv/fbv-1.0b-avr32.patch +144 -0

144 lines not on this page · raw message

Added: trunk/buildroot/package/fbv/fbv-1.0b-fix-24bpp-support-on-big-endian.patch
===================================================================

buildroot/package/fbv/fbv-1.0b-fix-24bpp-support-on-big-endian.patch +32 -0
@@ -0,0 +1,32 @@
+diff -upr a/fb_display.c b/fb_display.c
+--- a/fb_display.c	2007-06-01 16:52:45.000000000 +0200
++++ b/fb_display.c	2007-06-01 16:51:43.000000000 +0200
+@@ -307,7 +307,7 @@ void* convertRGB2FB(int fh, unsigned cha
+ {
+     unsigned long i;
+     void *fbbuff = NULL;
+-	u_int8_t  *c_fbbuff;
++    u_int8_t  *c_fbbuff;
+     u_int16_t *s_fbbuff;
+     u_int32_t *i_fbbuff;
+ 
+@@ -335,6 +335,16 @@ void* convertRGB2FB(int fh, unsigned cha
+ 	    fbbuff = (void *) s_fbbuff;
+ 	    break;
+ 	case 24:
++	    *cpp = 3;
++	    c_fbbuff = (unsigned char *) malloc(count * 3 * sizeof(unsigned char));
++	    for(i = 0; i < (3 * count); i += 3) {
++		/* Big endian framebuffer. */
++		c_fbbuff[i] = rgbbuff[i+2];
++		c_fbbuff[i+1] = rgbbuff[i+1];
++		c_fbbuff[i+2] = rgbbuff[i];
++	    }
++	    fbbuff = (void *) c_fbbuff;
++	    break;
+ 	case 32:
+ 	    *cpp = 4;
+ 	    i_fbbuff = (unsigned int *) malloc(count * sizeof(unsigned int));
+Only in build_avr32/fbv-1.0b-modified: .fb_display.c.swp
+Binary files build_avr32/fbv-1.0b/fb_display.o and build_avr32/fbv-1.0b-modified/fb_display.o differ
+Binary files build_avr32/fbv-1.0b/fbv and build_avr32/fbv-1.0b-modified/fbv differ

Added: trunk/buildroot/package/fbv/fbv.mk
===================================================================

buildroot/package/fbv/fbv.mk +54 -0

54 lines not on this page · raw message