Sunday, October 26, 2008

plucker gtk viewer image patch

This solves the dark image problem

diff -r f58c7099044b image.c
--- a/image.c Sun Oct 26 16:09:28 2008 +0800
+++ b/image.c Sun Oct 26 16:16:56 2008 +0800
@@ -1251,7 +1251,7 @@ static GdkPixbuf* TranscribePalmImageToG
}
memcpy (lastrow, rowbuf, bytes_per_row);
}
- else if (((flags & PALM_IS_COMPRESSED_FLAG) &&
+ else if (((flags && PALM_IS_COMPRESSED_FLAG) &&
(compression_type == PALM_COMPRESSION_NONE)) ||
(flags && PALM_IS_COMPRESSED_FLAG) == 0) {
memcpy (rowbuf, palm_ptr, bytes_per_row);
@@ -1295,11 +1295,14 @@ static GdkPixbuf* TranscribePalmImageToG
pixels[(j * 3) + 0] =
(inval >> (bits_per_pixel - palm_red_bits)) &
((1 << palm_red_bits) - 1);
+ pixels[(j * 3) + 0] <<=3;
pixels[(j * 3) + 1] =
(inval >> palm_blue_bits) & ((1 << palm_green_bits) -
1);
+ pixels[(j * 3) + 1] <<=2;
pixels[(j * 3) + 2] =
(inval >> 0) & ((1 << palm_blue_bits) - 1);
+ pixels[(j * 3) + 2] <<=3;
inbyte += 2;
}
}

Saturday, October 11, 2008

Openwrt Kamikaze git clone

git clone git://nbd.ds10.mine.nu/openwrt.git

Repository website:
http://nbd.ds10.mine.nu/gitweb.cgi

Saturday, January 5, 2008

Openwrt Kamikaze x-wrt webif installation howto

The kamikaze release comes with no web interface. This makes life a bit hard.
Here is the simple command to install x-wrt web interface for it.

ipkg install \
http://downloads.x-wrt.org/xwrt/kamikaze/7.09/brcm-2.4/packages/webif_0.3-12_mipsel.ipk

Please note to adjust the architecture string in the install path if you are not using "brcm-2.4".