diff options
-rw-r--r-- | recipes/psplash/files/configurability.patch | 16 | ||||
-rw-r--r-- | recipes/psplash/files/psplash_grayscale.patch | 62 | ||||
-rw-r--r-- | recipes/psplash/psplash-omap3pandora/configurability.patch | 16 | ||||
-rw-r--r-- | recipes/psplash/psplash-omap3pandora/logo-math.patch | 26 | ||||
-rw-r--r-- | recipes/psplash/psplash-omap3pandora/psplash-poky-img.h (renamed from recipes/psplash/psplash-omap3pandora/psplash-hand-img.h) | 10 | ||||
-rw-r--r-- | recipes/psplash/psplash.inc | 2 |
6 files changed, 70 insertions, 62 deletions
diff --git a/recipes/psplash/files/configurability.patch b/recipes/psplash/files/configurability.patch index c9688655c9..90a9c34719 100644 --- a/recipes/psplash/files/configurability.patch +++ b/recipes/psplash/files/configurability.patch @@ -232,15 +232,15 @@ Index: psplash/psplash.c /* Draw the OH logo */ - psplash_fb_draw_image (fb, -- (fb->width - HAND_IMG_WIDTH)/2, -- ((fb->height * 5) / 6 - HAND_IMG_HEIGHT)/2, +- (fb->width - POKY_IMG_WIDTH)/2, +- ((fb->height * 5) / 6 - POKY_IMG_HEIGHT)/2, + psplash_fb_draw_image (fb, -+ (fb->width - HAND_IMG_WIDTH)/2, -+ (fb->height - HAND_IMG_HEIGHT)/2, - HAND_IMG_WIDTH, - HAND_IMG_HEIGHT, - HAND_IMG_BYTES_PER_PIXEL, - HAND_IMG_RLE_PIXEL_DATA); ++ (fb->width - POKY_IMG_WIDTH)/2, ++ (fb->height - POKY_IMG_HEIGHT)/2, + POKY_IMG_WIDTH, + POKY_IMG_HEIGHT, + POKY_IMG_BYTES_PER_PIXEL, + POKY_IMG_RLE_PIXEL_DATA); /* Draw progress bar border */ - psplash_fb_draw_image (fb, diff --git a/recipes/psplash/files/psplash_grayscale.patch b/recipes/psplash/files/psplash_grayscale.patch index 8f42369300..531d63a89c 100644 --- a/recipes/psplash/files/psplash_grayscale.patch +++ b/recipes/psplash/files/psplash_grayscale.patch @@ -1,17 +1,17 @@ -diff -urN psplash.orig/psplash-fb.c psplash/psplash-fb.c ---- psplash.orig/psplash-fb.c 2007-08-29 20:27:49.000000000 +0200 -+++ psplash/psplash-fb.c 2009-01-15 18:42:11.000000000 +0100 -@@ -62,7 +62,8 @@ +diff -Nru psplash_orig/psplash-fb.c psplash/psplash-fb.c +--- psplash_orig/psplash-fb.c 2010-04-22 16:17:33.000000000 +0200 ++++ psplash/psplash-fb.c 2010-05-16 15:49:40.000000000 +0200 +@@ -132,7 +132,8 @@ goto fail; } - + - if (fb_var.bits_per_pixel < 16) -+ if (fb_var.bits_per_pixel != 1 && fb_var.bits_per_pixel != 2 -+ && fb_var.bits_per_pixel < 16) ++ if (fb_var.bits_per_pixel != 1 && fb_var.bits_per_pixel != 2 ++ && fb_var.bits_per_pixel < 16) { fprintf(stderr, - "Error, no support currently for %i bpp frame buffers\n", -@@ -143,7 +144,18 @@ + "Error, no support currently for %i bpp frame buffers\n" +@@ -258,7 +259,18 @@ return NULL; } @@ -30,8 +30,8 @@ diff -urN psplash.orig/psplash-fb.c psplash/psplash-fb.c +} inline void - psplash_fb_plot_pixel (PSplashFB *fb, -@@ -153,7 +165,7 @@ + psplash_fb_plot_pixel (PSplashFB *fb, +@@ -268,7 +280,7 @@ uint8 green, uint8 blue) { @@ -40,7 +40,7 @@ diff -urN psplash.orig/psplash-fb.c psplash/psplash-fb.c if (x < 0 || x > fb->width-1 || y < 0 || y > fb->height-1) return; -@@ -161,17 +173,17 @@ +@@ -276,17 +288,17 @@ switch (fb->angle) { case 270: @@ -62,22 +62,22 @@ diff -urN psplash.orig/psplash-fb.c psplash/psplash-fb.c break; } -@@ -188,6 +200,18 @@ - *(volatile uint16 *) (fb->data + off) - = ((red >> 3) << 11) | ((green >> 2) << 5) | (blue >> 3); - break; -+ case 2: -+ shift = (3 - (off & 3)) << 1; -+ *(fb->data + (off >> 2)) = (*(fb->data + (off >> 2)) & ~(3 << shift)) -+ | (((11*red + 16*green + 5*blue) >> 11) << shift); -+ break; -+ case 1: -+ shift = 7 - (off & 7); -+ if (((11*red + 16*green + 5*blue) >> 5) >= 128) -+ *(fb->data + (off >> 3)) |= (1 << shift); -+ else -+ *(fb->data + (off >> 3)) &= ~(1 << shift); -+ break; - default: - /* depth not supported yet */ - break; +@@ -303,6 +315,18 @@ + *(volatile uint16_t *) (fb->data + off) + = ((red >> 3) << 11) | ((green >> 2) << 5) | (blue >> 3); + break; ++ case 2: ++ shift = (3 - (off & 3)) << 1; ++ *(fb->data + (off >> 2)) = (*(fb->data + (off >> 2)) & ~(3 << shift)) ++ | (((11*red + 16*green + 5*blue) >> 11) << shift); ++ break; ++ case 1: ++ shift = 7 - (off & 7); ++ if (((11*red + 16*green + 5*blue) >> 5) >= 128) ++ *(fb->data + (off >> 3)) |= (1 << shift); ++ else ++ *(fb->data + (off >> 3)) &= ~(1 << shift); ++ break; + default: + /* depth not supported yet */ + break; diff --git a/recipes/psplash/psplash-omap3pandora/configurability.patch b/recipes/psplash/psplash-omap3pandora/configurability.patch index c9688655c9..90a9c34719 100644 --- a/recipes/psplash/psplash-omap3pandora/configurability.patch +++ b/recipes/psplash/psplash-omap3pandora/configurability.patch @@ -232,15 +232,15 @@ Index: psplash/psplash.c /* Draw the OH logo */ - psplash_fb_draw_image (fb, -- (fb->width - HAND_IMG_WIDTH)/2, -- ((fb->height * 5) / 6 - HAND_IMG_HEIGHT)/2, +- (fb->width - POKY_IMG_WIDTH)/2, +- ((fb->height * 5) / 6 - POKY_IMG_HEIGHT)/2, + psplash_fb_draw_image (fb, -+ (fb->width - HAND_IMG_WIDTH)/2, -+ (fb->height - HAND_IMG_HEIGHT)/2, - HAND_IMG_WIDTH, - HAND_IMG_HEIGHT, - HAND_IMG_BYTES_PER_PIXEL, - HAND_IMG_RLE_PIXEL_DATA); ++ (fb->width - POKY_IMG_WIDTH)/2, ++ (fb->height - POKY_IMG_HEIGHT)/2, + POKY_IMG_WIDTH, + POKY_IMG_HEIGHT, + POKY_IMG_BYTES_PER_PIXEL, + POKY_IMG_RLE_PIXEL_DATA); /* Draw progress bar border */ - psplash_fb_draw_image (fb, diff --git a/recipes/psplash/psplash-omap3pandora/logo-math.patch b/recipes/psplash/psplash-omap3pandora/logo-math.patch index 21467af0ec..2ebfd7cd4c 100644 --- a/recipes/psplash/psplash-omap3pandora/logo-math.patch +++ b/recipes/psplash/psplash-omap3pandora/logo-math.patch @@ -1,15 +1,23 @@ upstream: http://bugzilla.openedhand.com/show_bug.cgi?id=801 comment: Do better math when showing logo vs progressbar. +--- + psplash.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) ---- psplash/psplash.c.org 2007-09-22 20:33:36.000000000 +0300 -+++ psplash/psplash.c 2007-12-01 21:27:08.000000000 +0200 -@@ -258,7 +258,7 @@ +diff --git a/psplash.c b/psplash.c +index 54a65cf..7a52e05 100644 +--- a/psplash.c ++++ b/psplash.c +@@ -269,7 +269,7 @@ main (int argc, char** argv) /* Draw the OH logo */ psplash_fb_draw_image (fb, - (fb->width - HAND_IMG_WIDTH)/2, -- (fb->height - HAND_IMG_HEIGHT)/2, -+ ((fb->height * 5) / 6 - HAND_IMG_HEIGHT)/2, - HAND_IMG_WIDTH, - HAND_IMG_HEIGHT, - HAND_IMG_BYTES_PER_PIXEL, + (fb->width - POKY_IMG_WIDTH)/2, +- (fb->height - POKY_IMG_HEIGHT)/2, ++ ((fb->height * 5) / 6 - POKY_IMG_HEIGHT)/2, + POKY_IMG_WIDTH, + POKY_IMG_HEIGHT, + POKY_IMG_BYTES_PER_PIXEL, +-- +1.6.3.3 + diff --git a/recipes/psplash/psplash-omap3pandora/psplash-hand-img.h b/recipes/psplash/psplash-omap3pandora/psplash-poky-img.h index 13c64cfc8b..c07ae8621d 100644 --- a/recipes/psplash/psplash-omap3pandora/psplash-hand-img.h +++ b/recipes/psplash/psplash-omap3pandora/psplash-poky-img.h @@ -1,10 +1,10 @@ /* GdkPixbuf RGB C-Source image dump 1-byte-run-length-encoded */ -#define HAND_IMG_ROWSTRIDE (2400) -#define HAND_IMG_WIDTH (800) -#define HAND_IMG_HEIGHT (480) -#define HAND_IMG_BYTES_PER_PIXEL (3) /* 3:RGB, 4:RGBA */ -#define HAND_IMG_RLE_PIXEL_DATA ((uint8*) \ +#define POKY_IMG_ROWSTRIDE (2400) +#define POKY_IMG_WIDTH (800) +#define POKY_IMG_HEIGHT (480) +#define POKY_IMG_BYTES_PER_PIXEL (3) /* 3:RGB, 4:RGBA */ +#define POKY_IMG_RLE_PIXEL_DATA ((uint8*) \ "\347\0\0\0\202\0\0\1\1\0\0\0\202\0\0\1\202\0\0\2\1\0\0\1\202\0\0\2\202" \ "\0\0\3\1\0\0\2\202\0\0\3\202\0\0\4\1\0\0\3\202\0\0\4\202\0\0\5\1\0\0" \ "\4\202\0\0\5\202\0\0\6\1\0\0\5\202\0\0\6\202\0\0\7\1\0\0\6\202\0\0\7" \ diff --git a/recipes/psplash/psplash.inc b/recipes/psplash/psplash.inc index d16ae3e9f5..86174a3482 100644 --- a/recipes/psplash/psplash.inc +++ b/recipes/psplash/psplash.inc @@ -9,7 +9,7 @@ RCONFLICTS_${PN} = "exquisite" SRCREV = "422" PV = "0.0+svnr${SRCPV}" -PR = "r27" +PR = "r28" # You can create your own pslash-poky-img.h by doing # ./make-image-header.sh <file>.png POKY |