psplash: Delete all incarnations

They are unused

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2015-08-11 11:16:47 -07:00
parent 4619fd8095
commit 990c3ab4ba
27 changed files with 0 additions and 18796 deletions

View File

@@ -1,290 +0,0 @@
Index: psplash/psplash.c
===================================================================
--- psplash.orig/psplash.c 2007-12-06 11:14:23.000000000 +0000
+++ psplash/psplash.c 2007-12-06 11:19:12.000000000 +0000
@@ -44,17 +44,17 @@
/* Clear */
- psplash_fb_draw_rect (fb,
- 0,
- fb->height - (fb->height/6) - h,
+ psplash_fb_draw_rect (fb,
+ 0,
+ fb->height - (fb->height/PSPLASH_TEXT_DIVIDER) - h,
fb->width,
h,
- 0xec, 0xec, 0xe1);
+ PSPLASH_BACKGROUND_COLOR_R, PSPLASH_BACKGROUND_COLOR_G, PSPLASH_BACKGROUND_COLOR_B);
psplash_fb_draw_text (fb,
- (fb->width-w)/2,
- fb->height - (fb->height/6) - h,
- 0x6d, 0x6d, 0x70,
+ (fb->width-w)/2,
+ fb->height - (fb->height/PSPLASH_TEXT_DIVIDER) - h,
+ PSPLASH_TEXT_COLOR_R, PSPLASH_TEXT_COLOR_G, PSPLASH_TEXT_COLOR_B,
&radeon_font,
msg);
}
@@ -66,36 +66,36 @@
/* 4 pix border */
x = ((fb->width - BAR_IMG_WIDTH)/2) + 4 ;
- y = fb->height - (fb->height/6) + 4;
- width = BAR_IMG_WIDTH - 8;
+ y = fb->height - (fb->height/PSPLASH_PROGRESS_DIVIDER) + 4;
+ width = BAR_IMG_WIDTH - 8;
height = BAR_IMG_HEIGHT - 8;
if (value > 0)
{
barwidth = (CLAMP(value,0,100) * width) / 100;
- psplash_fb_draw_rect (fb, x + barwidth, y,
+ psplash_fb_draw_rect (fb, x + barwidth, y,
width - barwidth, height,
- 0xec, 0xec, 0xe1);
+ PSPLASH_BACKGROUND_COLOR_R, PSPLASH_BACKGROUND_COLOR_G, PSPLASH_BACKGROUND_COLOR_B);
psplash_fb_draw_rect (fb, x, y, barwidth,
- height, 0x6d, 0x6d, 0x70);
+ height, PSPLASH_PROGRESS_COLOR_R, PSPLASH_PROGRESS_COLOR_G, PSPLASH_PROGRESS_COLOR_B);
}
else
{
barwidth = (CLAMP(-value,0,100) * width) / 100;
- psplash_fb_draw_rect (fb, x, y,
+ psplash_fb_draw_rect (fb, x, y,
width - barwidth, height,
- 0xec, 0xec, 0xe1);
+ PSPLASH_BACKGROUND_COLOR_R, PSPLASH_BACKGROUND_COLOR_G, PSPLASH_BACKGROUND_COLOR_B);
psplash_fb_draw_rect (fb, x + width - barwidth,
y, barwidth, height,
- 0x6d, 0x6d, 0x70);
+ PSPLASH_PROGRESS_COLOR_R, PSPLASH_PROGRESS_COLOR_G, PSPLASH_PROGRESS_COLOR_B);
}
- DBG("value: %i, width: %i, barwidth :%i\n", value,
+ DBG("value: %i, width: %i, barwidth :%i\n", value,
width, barwidth);
}
-static int
-parse_command (PSplashFB *fb, char *string, int length)
+static int
+parse_command (PSplashFB *fb, char *string, int length)
{
char *command;
int parsed=0;
@@ -103,21 +103,21 @@
parsed = strlen(string)+1;
DBG("got cmd %s", string);
-
+
if (strcmp(string,"QUIT") == 0)
return 1;
command = strtok(string," ");
- if (!strcmp(command,"PROGRESS"))
+ if (!strcmp(command,"PROGRESS"))
{
psplash_draw_progress (fb, atoi(strtok(NULL,"\0")));
- }
- else if (!strcmp(command,"MSG"))
+ }
+ else if (!strcmp(command,"MSG"))
{
psplash_draw_msg (fb, strtok(NULL,"\0"));
- }
- else if (!strcmp(command,"QUIT"))
+ }
+ else if (!strcmp(command,"QUIT"))
{
return 1;
}
@@ -125,8 +125,8 @@
return 0;
}
-void
-psplash_main (PSplashFB *fb, int pipe_fd, int timeout)
+void
+psplash_main (PSplashFB *fb, int pipe_fd, int timeout)
{
int err;
ssize_t length = 0;
@@ -143,14 +143,14 @@
end = command;
- while (1)
+ while (1)
{
- if (timeout != 0)
+ if (timeout != 0)
err = select(pipe_fd+1, &descriptors, NULL, NULL, &tv);
else
err = select(pipe_fd+1, &descriptors, NULL, NULL, NULL);
-
- if (err <= 0)
+
+ if (err <= 0)
{
/*
if (errno == EINTR)
@@ -158,29 +158,29 @@
*/
return;
}
-
+
length += read (pipe_fd, end, sizeof(command) - (end - command));
- if (length == 0)
+ if (length == 0)
{
/* Reopen to see if there's anything more for us */
close(pipe_fd);
pipe_fd = open(PSPLASH_FIFO,O_RDONLY|O_NONBLOCK);
goto out;
}
-
- if (command[length-1] == '\0')
+
+ if (command[length-1] == '\0')
{
- if (parse_command(fb, command, strlen(command)))
+ if (parse_command(fb, command, strlen(command)))
return;
length = 0;
- }
+ }
out:
end = &command[length];
-
+
tv.tv_sec = timeout;
tv.tv_usec = 0;
-
+
FD_ZERO(&descriptors);
FD_SET(pipe_fd,&descriptors);
}
@@ -188,14 +188,14 @@
return;
}
-int
-main (int argc, char** argv)
+int
+main (int argc, char** argv)
{
char *tmpdir;
int pipe_fd, i = 0, angle = 0;
PSplashFB *fb;
bool disable_console_switch = FALSE;
-
+
signal(SIGHUP, psplash_exit);
signal(SIGINT, psplash_exit);
signal(SIGQUIT, psplash_exit);
@@ -214,10 +214,10 @@
angle = atoi(argv[i]);
continue;
}
-
+
fail:
- fprintf(stderr,
- "Usage: %s [-n|--no-console-switch][-a|--angle <0|90|180|270>]\n",
+ fprintf(stderr,
+ "Usage: %s [-n|--no-console-switch][-a|--angle <0|90|180|270>]\n",
argv[0]);
exit(-1);
}
@@ -231,7 +231,7 @@
if (mkfifo(PSPLASH_FIFO, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP))
{
- if (errno!=EEXIST)
+ if (errno!=EEXIST)
{
perror("mkfifo");
exit(-1);
@@ -239,8 +239,8 @@
}
pipe_fd = open (PSPLASH_FIFO,O_RDONLY|O_NONBLOCK);
-
- if (pipe_fd==-1)
+
+ if (pipe_fd==-1)
{
perror("pipe open");
exit(-2);
@@ -253,29 +253,29 @@
exit(-1);
/* Clear the background with #ecece1 */
- psplash_fb_draw_rect (fb, 0, 0, fb->width, fb->height, 0xec, 0xec, 0xe1);
+ psplash_fb_draw_rect (fb, 0, 0, fb->width, fb->height, PSPLASH_BACKGROUND_COLOR_R, PSPLASH_BACKGROUND_COLOR_G, PSPLASH_BACKGROUND_COLOR_B);
/* Draw the OH logo */
- psplash_fb_draw_image (fb,
- (fb->width - POKY_IMG_WIDTH)/2,
- ((fb->height * 5) / 6 - POKY_IMG_HEIGHT)/2,
+ psplash_fb_draw_image (fb,
+ (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,
- (fb->width - BAR_IMG_WIDTH)/2,
- fb->height - (fb->height/6),
+ psplash_fb_draw_image (fb,
+ (fb->width - BAR_IMG_WIDTH)/2,
+ fb->height - (fb->height/PSPLASH_PROGRESS_DIVIDER),
BAR_IMG_WIDTH,
BAR_IMG_HEIGHT,
BAR_IMG_BYTES_PER_PIXEL,
BAR_IMG_RLE_PIXEL_DATA);
- psplash_draw_progress (fb, 0);
+ psplash_draw_progress (fb, 0); /* draw initial progress */
- psplash_draw_msg (fb, MSG);
+ if (strlen(MSG)) psplash_draw_msg (fb, MSG);
psplash_main (fb, pipe_fd, 0);
Index: psplash/psplash.h
===================================================================
--- psplash.orig/psplash.h 2007-12-06 11:15:35.000000000 +0000
+++ psplash/psplash.h 2007-12-06 11:15:45.000000000 +0000
@@ -54,6 +54,21 @@
#define TRUE 1
#endif
+#define PSPLASH_BACKGROUND_COLOR_R 0x00
+#define PSPLASH_BACKGROUND_COLOR_G 0x00
+#define PSPLASH_BACKGROUND_COLOR_B 0x00
+
+#define PSPLASH_PROGRESS_COLOR_R 0xe3
+#define PSPLASH_PROGRESS_COLOR_G 0x71
+#define PSPLASH_PROGRESS_COLOR_B 0x00
+
+#define PSPLASH_TEXT_COLOR_R 0xff
+#define PSPLASH_TEXT_COLOR_G 0xff
+#define PSPLASH_TEXT_COLOR_B 0xff
+
+#define PSPLASH_PROGRESS_DIVIDER 3
+#define PSPLASH_TEXT_DIVIDER 3
+
#define PSPLASH_FIFO "psplash_fifo"
#define CLAMP(x, low, high) \

View File

@@ -1,55 +0,0 @@
upstream: http://bugzilla.o-hand.com/show_bug.cgi?id=1764
---
psplash-fb.c | 8 +++++++-
psplash-fb.h | 1 +
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/psplash-fb.c b/psplash-fb.c
index 71740cd..860c0c0 100644
--- a/psplash-fb.c
+++ b/psplash-fb.c
@@ -160,6 +160,7 @@ psplash_fb_new (int angle)
fb->real_width = fb->width = fb_var.xres;
fb->real_height = fb->height = fb_var.yres;
fb->bpp = fb_var.bits_per_pixel;
+ fb->depth = fb_var.red.length + fb_var.green.length + fb_var.blue.length;
fb->stride = fb_fix.line_length;
fb->type = fb_fix.type;
fb->visual = fb_fix.visual;
@@ -308,7 +309,7 @@ psplash_fb_plot_pixel (PSplashFB *fb,
break;
}
} else if (fb->rgbmode == BGR565 || fb->rgbmode == BGR888) {
- switch (fb->bpp)
+ switch (fb->depth)
{
case 24:
case 32:
@@ -316,6 +317,11 @@ psplash_fb_plot_pixel (PSplashFB *fb,
*(fb->data + off + 1) = green;
*(fb->data + off + 2) = blue;
break;
+ case 18:
+ *(fb->data + off) = (red >> 2) | ((green & 0x0C) << 4);
+ *(fb->data + off + 1) = ((green & 0xF0) >> 4) | ((blue & 0x3C) << 2);
+ *(fb->data + off + 2) = (blue & 0xC0) >> 6;
+ break;
case 16:
*(volatile uint16_t *) (fb->data + off)
= ((blue >> 3) << 11) | ((green >> 2) << 5) | (red >> 3);
diff --git a/psplash-fb.h b/psplash-fb.h
index ef5b39e..160cdeb 100644
--- a/psplash-fb.h
+++ b/psplash-fb.h
@@ -34,6 +34,7 @@ typedef struct PSplashFB
int visual;
int width, height;
int bpp;
+ int depth;
int stride;
char *data;
char *base;
--
1.6.3.3

View File

@@ -1,47 +0,0 @@
/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */
#define BAR_IMG_ROWSTRIDE (920)
#define BAR_IMG_WIDTH (230)
#define BAR_IMG_HEIGHT (28)
#define BAR_IMG_BYTES_PER_PIXEL (4) /* 3:RGB, 4:RGBA */
#define BAR_IMG_RLE_PIXEL_DATA ((uint8*) \
"\203\354\354\341\377\4\326\326\315\377\236\236\233\377\200\200\201\377" \
"nnq\377\377mmp\377\331mmp\377\4nnq\377\200\200\201\377\236\236\233\377" \
"\326\326\315\377\205\354\354\341\377\2\260\260\253\377oor\377\377mmp" \
"\377\337mmp\377\2oor\377\260\260\253\377\203\354\354\341\377\1\262\262" \
"\256\377\377mmp\377\343mmp\377\4\262\262\256\377\354\354\341\377\332" \
"\332\321\377pps\377\377mmp\377\343mmp\377\3pps\377\332\332\321\377\244" \
"\244\241\377\204mmp\377\1\205\205\205\377\377\354\354\341\377\333\354" \
"\354\341\377\1\205\205\205\377\204mmp\377\2\244\244\241\377\210\210\210" \
"\377\203mmp\377\2\203\203\203\377\351\351\336\377\377\354\354\341\377" \
"\333\354\354\341\377\2\351\351\336\377\203\203\203\377\203mmp\377\2\210" \
"\210\210\377qqs\377\203mmp\377\1\255\255\251\377\377\354\354\341\377" \
"\335\354\354\341\377\1\255\255\251\377\203mmp\377\1qqs\377\204mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\204mmp\377" \
"\1qqs\377\203mmp\377\1\255\255\251\377\377\354\354\341\377\335\354\354" \
"\341\377\1\255\255\251\377\203mmp\377\2qqs\377\210\210\210\377\203mm" \
"p\377\2\203\203\203\377\351\351\336\377\377\354\354\341\377\333\354\354" \
"\341\377\2\351\351\336\377\203\203\203\377\203mmp\377\2\210\210\210\377" \
"\244\244\241\377\204mmp\377\1\205\205\205\377\377\354\354\341\377\333" \
"\354\354\341\377\1\205\205\205\377\204mmp\377\3\244\244\241\377\332\332" \
"\321\377pps\377\377mmp\377\343mmp\377\4pps\377\332\332\321\377\354\354" \
"\341\377\262\262\256\377\377mmp\377\343mmp\377\1\262\262\256\377\203" \
"\354\354\341\377\2\260\260\253\377oor\377\377mmp\377\337mmp\377\2oor" \
"\377\260\260\253\377\205\354\354\341\377\4\326\326\315\377\236\236\233" \
"\377\200\200\201\377nnq\377\377mmp\377\331mmp\377\4nnq\377\200\200\201" \
"\377\236\236\233\377\326\326\315\377\203\354\354\341\377")

View File

@@ -1,2 +0,0 @@
# Parameters to pass to psplash
PARAMS=""

View File

@@ -1,31 +0,0 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: psplash
# Required-Start:
# Required-Stop:
# Default-Start: S
# Default-Stop:
### END INIT INF
if grep -qE '\s?psplash=false\s?' /proc/cmdline; then
echo "Boot splashscreen disabled"
exit 0;
fi
. /etc/default/splashfuncs
. /etc/default/psplash
case `machine_id` in
"hp_ipaq_h3100"|"hp_ipaq_h3800")
PARAMS='-a 90' ;;
"hp_ipaq_3600"|"hp_ipaq_3700"|"hp_ipaq_h3900"|"htc_universal"|*collie|*poodle|*akita|*spitz|*borzoi)
PARAMS='-a 270' ;;
esac
export TMPDIR=/mnt/.splash
mount tmpfs -t tmpfs $TMPDIR -o,size=40k
/usr/bin/psplash $PARAMS &
# Timetrap against hanging with splash hiding console messages.
(sleep 120; psplash-write "QUIT") &

File diff suppressed because it is too large Load Diff

View File

@@ -1,83 +0,0 @@
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)
{
fprintf(stderr,
"Error, no support currently for %i bpp frame buffers\n"
@@ -258,7 +259,18 @@
return NULL;
}
-#define OFFSET(fb,x,y) (((y) * (fb)->stride) + ((x) * ((fb)->bpp >> 3)))
+static inline int
+psplash_fb_offset(PSplashFB *fb, int x, int y)
+{
+ switch (fb->bpp)
+ {
+ /* pixel offset */
+ case 2: return (y * (fb->stride << 2)) + x;
+ case 1: return (y * (fb->stride << 3)) + x;
+ /* byte offset */
+ default: return (y * fb->stride) + (x * (fb->bpp >> 3));
+ }
+}
inline void
psplash_fb_plot_pixel (PSplashFB *fb,
@@ -268,7 +280,7 @@
uint8 green,
uint8 blue)
{
- int off;
+ int off, shift;
if (x < 0 || x > fb->width-1 || y < 0 || y > fb->height-1)
return;
@@ -276,17 +288,17 @@
switch (fb->angle)
{
case 270:
- off = OFFSET (fb, fb->height - y - 1, x);
+ off = psplash_fb_offset (fb, fb->height - y - 1, x);
break;
case 180:
- off = OFFSET (fb, fb->width - x - 1, fb->height - y - 1);
+ off = psplash_fb_offset (fb, fb->width - x - 1, fb->height - y - 1);
break;
case 90:
- off = OFFSET (fb, y, fb->width - x - 1);
+ off = psplash_fb_offset (fb, y, fb->width - x - 1);
break;
case 0:
default:
- off = OFFSET (fb, x, y);
+ off = psplash_fb_offset (fb, x, y);
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;

View File

@@ -1,32 +0,0 @@
machine_id() { # return the machine ID
awk 'BEGIN { FS=": " } /Hardware/ { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo
}
status() {
if type splash-write >/dev/null 2>&1; then
(TMPDIR="/mnt/.splash" EXQUISITE_IPC="$TMPDIR/exquisite" splash-write "$1" || true) &
fi
}
status_position() {
status "PROGRESS $1"
}
status_title() {
status "TITLE $1"
}
status_text() {
if test -n "$1"; then
status "MSG $1"
else
status "CLEAR"
fi
}
status_pulse() {
status "PULSATE"
}
status_tick() {
status "TICK"
}

View File

@@ -1,4 +0,0 @@
#!/bin/sh
TMPDIR=/mnt/.splash psplash-write "QUIT" || true
sleep 1
umount /mnt/.splash >/dev/null 2>/dev/null

View File

@@ -1,20 +0,0 @@
require psplash.inc
require psplash-ua.inc
ALTERNATIVE_PRIORITY = "20"
# You can create your own pslash-poky-img.h by doing
# ./make-image-header.sh <file>.png POKY
# and rename the resulting .h to pslash-poky-img.h (for the logo)
# respectively psplash-bar-img.h (BAR) for the bar.
# You might also want to patch the colors (see patch)
SRC_URI += "\
file://psplash-18bpp.patch \
file://psplash-poky-img.h \
file://psplash-bar-img.h \
file://psplash-default \
file://splashfuncs \
file://psplash-init"
S = "${WORKDIR}/git"

View File

@@ -1,290 +0,0 @@
Index: psplash/psplash.c
===================================================================
--- psplash.orig/psplash.c 2007-12-06 11:14:23.000000000 +0000
+++ psplash/psplash.c 2007-12-06 11:19:12.000000000 +0000
@@ -44,17 +44,17 @@
/* Clear */
- psplash_fb_draw_rect (fb,
- 0,
- fb->height - (fb->height/6) - h,
+ psplash_fb_draw_rect (fb,
+ 0,
+ fb->height - (fb->height/PSPLASH_TEXT_DIVIDER) - h,
fb->width,
h,
- 0xec, 0xec, 0xe1);
+ PSPLASH_BACKGROUND_COLOR_R, PSPLASH_BACKGROUND_COLOR_G, PSPLASH_BACKGROUND_COLOR_B);
psplash_fb_draw_text (fb,
- (fb->width-w)/2,
- fb->height - (fb->height/6) - h,
- 0x6d, 0x6d, 0x70,
+ (fb->width-w)/2,
+ fb->height - (fb->height/PSPLASH_TEXT_DIVIDER) - h,
+ PSPLASH_TEXT_COLOR_R, PSPLASH_TEXT_COLOR_G, PSPLASH_TEXT_COLOR_B,
&radeon_font,
msg);
}
@@ -66,36 +66,36 @@
/* 4 pix border */
x = ((fb->width - BAR_IMG_WIDTH)/2) + 4 ;
- y = fb->height - (fb->height/6) + 4;
- width = BAR_IMG_WIDTH - 8;
+ y = fb->height - (fb->height/PSPLASH_PROGRESS_DIVIDER) + 4;
+ width = BAR_IMG_WIDTH - 8;
height = BAR_IMG_HEIGHT - 8;
if (value > 0)
{
barwidth = (CLAMP(value,0,100) * width) / 100;
- psplash_fb_draw_rect (fb, x + barwidth, y,
+ psplash_fb_draw_rect (fb, x + barwidth, y,
width - barwidth, height,
- 0xec, 0xec, 0xe1);
+ PSPLASH_BACKGROUND_COLOR_R, PSPLASH_BACKGROUND_COLOR_G, PSPLASH_BACKGROUND_COLOR_B);
psplash_fb_draw_rect (fb, x, y, barwidth,
- height, 0x6d, 0x6d, 0x70);
+ height, PSPLASH_PROGRESS_COLOR_R, PSPLASH_PROGRESS_COLOR_G, PSPLASH_PROGRESS_COLOR_B);
}
else
{
barwidth = (CLAMP(-value,0,100) * width) / 100;
- psplash_fb_draw_rect (fb, x, y,
+ psplash_fb_draw_rect (fb, x, y,
width - barwidth, height,
- 0xec, 0xec, 0xe1);
+ PSPLASH_BACKGROUND_COLOR_R, PSPLASH_BACKGROUND_COLOR_G, PSPLASH_BACKGROUND_COLOR_B);
psplash_fb_draw_rect (fb, x + width - barwidth,
y, barwidth, height,
- 0x6d, 0x6d, 0x70);
+ PSPLASH_PROGRESS_COLOR_R, PSPLASH_PROGRESS_COLOR_G, PSPLASH_PROGRESS_COLOR_B);
}
- DBG("value: %i, width: %i, barwidth :%i\n", value,
+ DBG("value: %i, width: %i, barwidth :%i\n", value,
width, barwidth);
}
-static int
-parse_command (PSplashFB *fb, char *string, int length)
+static int
+parse_command (PSplashFB *fb, char *string, int length)
{
char *command;
int parsed=0;
@@ -103,21 +103,21 @@
parsed = strlen(string)+1;
DBG("got cmd %s", string);
-
+
if (strcmp(string,"QUIT") == 0)
return 1;
command = strtok(string," ");
- if (!strcmp(command,"PROGRESS"))
+ if (!strcmp(command,"PROGRESS"))
{
psplash_draw_progress (fb, atoi(strtok(NULL,"\0")));
- }
- else if (!strcmp(command,"MSG"))
+ }
+ else if (!strcmp(command,"MSG"))
{
psplash_draw_msg (fb, strtok(NULL,"\0"));
- }
- else if (!strcmp(command,"QUIT"))
+ }
+ else if (!strcmp(command,"QUIT"))
{
return 1;
}
@@ -125,8 +125,8 @@
return 0;
}
-void
-psplash_main (PSplashFB *fb, int pipe_fd, int timeout)
+void
+psplash_main (PSplashFB *fb, int pipe_fd, int timeout)
{
int err;
ssize_t length = 0;
@@ -143,14 +143,14 @@
end = command;
- while (1)
+ while (1)
{
- if (timeout != 0)
+ if (timeout != 0)
err = select(pipe_fd+1, &descriptors, NULL, NULL, &tv);
else
err = select(pipe_fd+1, &descriptors, NULL, NULL, NULL);
-
- if (err <= 0)
+
+ if (err <= 0)
{
/*
if (errno == EINTR)
@@ -158,29 +158,29 @@
*/
return;
}
-
+
length += read (pipe_fd, end, sizeof(command) - (end - command));
- if (length == 0)
+ if (length == 0)
{
/* Reopen to see if there's anything more for us */
close(pipe_fd);
pipe_fd = open(PSPLASH_FIFO,O_RDONLY|O_NONBLOCK);
goto out;
}
-
- if (command[length-1] == '\0')
+
+ if (command[length-1] == '\0')
{
- if (parse_command(fb, command, strlen(command)))
+ if (parse_command(fb, command, strlen(command)))
return;
length = 0;
- }
+ }
out:
end = &command[length];
-
+
tv.tv_sec = timeout;
tv.tv_usec = 0;
-
+
FD_ZERO(&descriptors);
FD_SET(pipe_fd,&descriptors);
}
@@ -188,14 +188,14 @@
return;
}
-int
-main (int argc, char** argv)
+int
+main (int argc, char** argv)
{
char *tmpdir;
int pipe_fd, i = 0, angle = 0;
PSplashFB *fb;
bool disable_console_switch = FALSE;
-
+
signal(SIGHUP, psplash_exit);
signal(SIGINT, psplash_exit);
signal(SIGQUIT, psplash_exit);
@@ -214,10 +214,10 @@
angle = atoi(argv[i]);
continue;
}
-
+
fail:
- fprintf(stderr,
- "Usage: %s [-n|--no-console-switch][-a|--angle <0|90|180|270>]\n",
+ fprintf(stderr,
+ "Usage: %s [-n|--no-console-switch][-a|--angle <0|90|180|270>]\n",
argv[0]);
exit(-1);
}
@@ -231,7 +231,7 @@
if (mkfifo(PSPLASH_FIFO, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP))
{
- if (errno!=EEXIST)
+ if (errno!=EEXIST)
{
perror("mkfifo");
exit(-1);
@@ -239,8 +239,8 @@
}
pipe_fd = open (PSPLASH_FIFO,O_RDONLY|O_NONBLOCK);
-
- if (pipe_fd==-1)
+
+ if (pipe_fd==-1)
{
perror("pipe open");
exit(-2);
@@ -253,29 +253,29 @@
exit(-1);
/* Clear the background with #ecece1 */
- psplash_fb_draw_rect (fb, 0, 0, fb->width, fb->height, 0xec, 0xec, 0xe1);
+ psplash_fb_draw_rect (fb, 0, 0, fb->width, fb->height, PSPLASH_BACKGROUND_COLOR_R, PSPLASH_BACKGROUND_COLOR_G, PSPLASH_BACKGROUND_COLOR_B);
/* Draw the OH logo */
- psplash_fb_draw_image (fb,
- (fb->width - POKY_IMG_WIDTH)/2,
- ((fb->height * 5) / 6 - POKY_IMG_HEIGHT)/2,
+ psplash_fb_draw_image (fb,
+ (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,
- (fb->width - BAR_IMG_WIDTH)/2,
- fb->height - (fb->height/6),
+ psplash_fb_draw_image (fb,
+ (fb->width - BAR_IMG_WIDTH)/2,
+ fb->height - (fb->height/PSPLASH_PROGRESS_DIVIDER),
BAR_IMG_WIDTH,
BAR_IMG_HEIGHT,
BAR_IMG_BYTES_PER_PIXEL,
BAR_IMG_RLE_PIXEL_DATA);
- psplash_draw_progress (fb, 0);
+ psplash_draw_progress (fb, 0); /* draw initial progress */
- psplash_draw_msg (fb, MSG);
+ if (strlen(MSG)) psplash_draw_msg (fb, MSG);
psplash_main (fb, pipe_fd, 0);
Index: psplash/psplash.h
===================================================================
--- psplash.orig/psplash.h 2007-12-06 11:15:35.000000000 +0000
+++ psplash/psplash.h 2007-12-06 11:15:45.000000000 +0000
@@ -54,6 +54,21 @@
#define TRUE 1
#endif
+#define PSPLASH_BACKGROUND_COLOR_R 0x00
+#define PSPLASH_BACKGROUND_COLOR_G 0x00
+#define PSPLASH_BACKGROUND_COLOR_B 0x00
+
+#define PSPLASH_PROGRESS_COLOR_R 0xe3
+#define PSPLASH_PROGRESS_COLOR_G 0x71
+#define PSPLASH_PROGRESS_COLOR_B 0x00
+
+#define PSPLASH_TEXT_COLOR_R 0xff
+#define PSPLASH_TEXT_COLOR_G 0xff
+#define PSPLASH_TEXT_COLOR_B 0xff
+
+#define PSPLASH_PROGRESS_DIVIDER 3
+#define PSPLASH_TEXT_DIVIDER 3
+
#define PSPLASH_FIFO "psplash_fifo"
#define CLAMP(x, low, high) \

View File

@@ -1,23 +0,0 @@
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(-)
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 - 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

View File

@@ -1,47 +0,0 @@
/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */
#define BAR_IMG_ROWSTRIDE (920)
#define BAR_IMG_WIDTH (230)
#define BAR_IMG_HEIGHT (28)
#define BAR_IMG_BYTES_PER_PIXEL (4) /* 3:RGB, 4:RGBA */
#define BAR_IMG_RLE_PIXEL_DATA ((uint8*) \
"\203\354\354\341\377\4\326\326\315\377\236\236\233\377\200\200\201\377" \
"nnq\377\377mmp\377\331mmp\377\4nnq\377\200\200\201\377\236\236\233\377" \
"\326\326\315\377\205\354\354\341\377\2\260\260\253\377oor\377\377mmp" \
"\377\337mmp\377\2oor\377\260\260\253\377\203\354\354\341\377\1\262\262" \
"\256\377\377mmp\377\343mmp\377\4\262\262\256\377\354\354\341\377\332" \
"\332\321\377pps\377\377mmp\377\343mmp\377\3pps\377\332\332\321\377\244" \
"\244\241\377\204mmp\377\1\205\205\205\377\377\354\354\341\377\333\354" \
"\354\341\377\1\205\205\205\377\204mmp\377\2\244\244\241\377\210\210\210" \
"\377\203mmp\377\2\203\203\203\377\351\351\336\377\377\354\354\341\377" \
"\333\354\354\341\377\2\351\351\336\377\203\203\203\377\203mmp\377\2\210" \
"\210\210\377qqs\377\203mmp\377\1\255\255\251\377\377\354\354\341\377" \
"\335\354\354\341\377\1\255\255\251\377\203mmp\377\1qqs\377\204mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\210mmp\377" \
"\1\270\270\262\377\377\354\354\341\377\336\354\354\341\377\204mmp\377" \
"\1qqs\377\203mmp\377\1\255\255\251\377\377\354\354\341\377\335\354\354" \
"\341\377\1\255\255\251\377\203mmp\377\2qqs\377\210\210\210\377\203mm" \
"p\377\2\203\203\203\377\351\351\336\377\377\354\354\341\377\333\354\354" \
"\341\377\2\351\351\336\377\203\203\203\377\203mmp\377\2\210\210\210\377" \
"\244\244\241\377\204mmp\377\1\205\205\205\377\377\354\354\341\377\333" \
"\354\354\341\377\1\205\205\205\377\204mmp\377\3\244\244\241\377\332\332" \
"\321\377pps\377\377mmp\377\343mmp\377\4pps\377\332\332\321\377\354\354" \
"\341\377\262\262\256\377\377mmp\377\343mmp\377\1\262\262\256\377\203" \
"\354\354\341\377\2\260\260\253\377oor\377\377mmp\377\337mmp\377\2oor" \
"\377\260\260\253\377\205\354\354\341\377\4\326\326\315\377\236\236\233" \
"\377\200\200\201\377nnq\377\377mmp\377\331mmp\377\4nnq\377\200\200\201" \
"\377\236\236\233\377\326\326\315\377\203\354\354\341\377")

View File

@@ -1,2 +0,0 @@
# Parameters to pass to psplash
PARAMS=""

View File

@@ -1,24 +0,0 @@
#!/bin/sh
if grep -qE '\s?psplash=false\s?' /proc/cmdline; then
echo "Boot splashscreen disabled"
exit 0;
fi
. /etc/init.d/functions
. /etc/default/psplash
case `machine_id` in
"hp_ipaq_h3100"|"hp_ipaq_h3800")
PARAMS='-a 90' ;;
"hp_ipaq_3600"|"hp_ipaq_3700"|"hp_ipaq_h3900"|"htc_universal"|*collie|*poodle|*akita|*spitz|*borzoi)
PARAMS='-a 270' ;;
esac
export TMPDIR=/mnt/.splash
mount tmpfs -t tmpfs $TMPDIR -o,size=40k
/usr/bin/psplash $PARAMS &
# Timetrap against hanging with splash hiding console messages.
(sleep 120; psplash-write "QUIT") &

File diff suppressed because it is too large Load Diff

View File

@@ -1,83 +0,0 @@
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 @@
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)
{
fprintf(stderr,
"Error, no support currently for %i bpp frame buffers\n",
@@ -143,7 +144,18 @@
return NULL;
}
-#define OFFSET(fb,x,y) (((y) * (fb)->stride) + ((x) * ((fb)->bpp >> 3)))
+static inline int
+psplash_fb_offset(PSplashFB *fb, int x, int y)
+{
+ switch (fb->bpp)
+ {
+ /* pixel offset */
+ case 2: return (y * (fb->stride << 2)) + x;
+ case 1: return (y * (fb->stride << 3)) + x;
+ /* byte offset */
+ default: return (y * fb->stride) + (x * (fb->bpp >> 3));
+ }
+}
inline void
psplash_fb_plot_pixel (PSplashFB *fb,
@@ -153,7 +165,7 @@
uint8 green,
uint8 blue)
{
- int off;
+ int off, shift;
if (x < 0 || x > fb->width-1 || y < 0 || y > fb->height-1)
return;
@@ -161,17 +173,17 @@
switch (fb->angle)
{
case 270:
- off = OFFSET (fb, fb->height - y - 1, x);
+ off = psplash_fb_offset (fb, fb->height - y - 1, x);
break;
case 180:
- off = OFFSET (fb, fb->width - x - 1, fb->height - y - 1);
+ off = psplash_fb_offset (fb, fb->width - x - 1, fb->height - y - 1);
break;
case 90:
- off = OFFSET (fb, y, fb->width - x - 1);
+ off = psplash_fb_offset (fb, y, fb->width - x - 1);
break;
case 0:
default:
- off = OFFSET (fb, x, y);
+ off = psplash_fb_offset (fb, x, y);
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;

View File

@@ -1,29 +0,0 @@
status() {
if type splash-write >/dev/null 2>&1; then
(TMPDIR="/mnt/.splash" EXQUISITE_IPC="$TMPDIR/exquisite" splash-write "$1" || true) &
fi
}
status_position() {
status "PROGRESS $1"
}
status_title() {
status "TITLE $1"
}
status_text() {
if test -n "$1"; then
status "MSG $1"
else
status "CLEAR"
fi
}
status_pulse() {
status "PULSATE"
}
status_tick() {
status "TICK"
}

View File

@@ -1,4 +0,0 @@
#!/bin/sh
TMPDIR=/mnt/.splash psplash-write "QUIT" || true
sleep 1
umount /mnt/.splash >/dev/null 2>/dev/null

View File

@@ -1,20 +0,0 @@
require psplash.inc
require psplash-ua.inc
ALTERNATIVE_PRIORITY = "30"
ALTERNATIVE_PRIORITY_omap3pandora = "5"
# You can create your own pslash-poky-img.h by doing
# ./make-image-header.sh <file>.png POKY
# and rename the resulting .h to pslash-poky-img.h (for the logo)
# respectively psplash-bar-img.h (BAR) for the bar.
# You might also want to patch the colors (see patch)
SRC_URI += "\
file://psplash-poky-img.h \
file://psplash-bar-img.h \
file://psplash-default \
file://splashfuncs \
file://psplash-init"
S = "${WORKDIR}/git"

View File

@@ -1,251 +0,0 @@
From 1c962c46c8060ae3f2c78c238199a915d261ea31 Mon Sep 17 00:00:00 2001
From: Chase Maupin <chase.maupin@ti.com>
Date: Thu, 9 Sep 2010 07:34:29 -0500
Subject: [PATCH] configurability for rev 422
* Update the configurability.patch file to work with revision
422 of the psplash sources.
Signed-off-by: Chase Maupin <chase.maupin@ti.com>
---
psplash.c | 90 ++++++++++++++++++++++++++++++------------------------------
psplash.h | 15 ++++++++++
2 files changed, 60 insertions(+), 45 deletions(-)
diff --git a/psplash.c b/psplash.c
index 7a52e05..da6005d 100644
--- a/psplash.c
+++ b/psplash.c
@@ -44,17 +44,17 @@ psplash_draw_msg (PSplashFB *fb, const char *msg)
/* Clear */
- psplash_fb_draw_rect (fb,
- 0,
- fb->height - (fb->height/6) - h,
+ psplash_fb_draw_rect (fb,
+ 0,
+ fb->height - (fb->height/PSPLASH_TEXT_DIVIDER) - h,
fb->width,
h,
- 0xec, 0xec, 0xe1);
+ PSPLASH_BACKGROUND_COLOR_R, PSPLASH_BACKGROUND_COLOR_G, PSPLASH_BACKGROUND_COLOR_B);
psplash_fb_draw_text (fb,
- (fb->width-w)/2,
- fb->height - (fb->height/6) - h,
- 0x6d, 0x6d, 0x70,
+ (fb->width-w)/2,
+ fb->height - (fb->height/PSPLASH_TEXT_DIVIDER) - h,
+ PSPLASH_TEXT_COLOR_R, PSPLASH_TEXT_COLOR_G, PSPLASH_TEXT_COLOR_B,
&radeon_font,
msg);
}
@@ -66,36 +66,36 @@ psplash_draw_progress (PSplashFB *fb, int value)
/* 4 pix border */
x = ((fb->width - BAR_IMG_WIDTH)/2) + 4 ;
- y = fb->height - (fb->height/6) + 4;
- width = BAR_IMG_WIDTH - 8;
+ y = fb->height - (fb->height/PSPLASH_PROGRESS_DIVIDER) + 4;
+ width = BAR_IMG_WIDTH - 8;
height = BAR_IMG_HEIGHT - 8;
if (value > 0)
{
barwidth = (CLAMP(value,0,100) * width) / 100;
- psplash_fb_draw_rect (fb, x + barwidth, y,
+ psplash_fb_draw_rect (fb, x + barwidth, y,
width - barwidth, height,
- 0xec, 0xec, 0xe1);
+ PSPLASH_BACKGROUND_COLOR_R, PSPLASH_BACKGROUND_COLOR_G, PSPLASH_BACKGROUND_COLOR_B);
psplash_fb_draw_rect (fb, x, y, barwidth,
- height, 0x6d, 0x6d, 0x70);
+ height, PSPLASH_PROGRESS_COLOR_R, PSPLASH_PROGRESS_COLOR_G, PSPLASH_PROGRESS_COLOR_B);
}
else
{
barwidth = (CLAMP(-value,0,100) * width) / 100;
- psplash_fb_draw_rect (fb, x, y,
+ psplash_fb_draw_rect (fb, x, y,
width - barwidth, height,
- 0xec, 0xec, 0xe1);
+ PSPLASH_BACKGROUND_COLOR_R, PSPLASH_BACKGROUND_COLOR_G, PSPLASH_BACKGROUND_COLOR_B);
psplash_fb_draw_rect (fb, x + width - barwidth,
y, barwidth, height,
- 0x6d, 0x6d, 0x70);
+ PSPLASH_PROGRESS_COLOR_R, PSPLASH_PROGRESS_COLOR_G, PSPLASH_PROGRESS_COLOR_B);
}
- DBG("value: %i, width: %i, barwidth :%i\n", value,
+ DBG("value: %i, width: %i, barwidth :%i\n", value,
width, barwidth);
}
-static int
-parse_command (PSplashFB *fb, char *string, int length)
+static int
+parse_command (PSplashFB *fb, char *string, int length)
{
char *command;
int parsed=0;
@@ -103,21 +103,21 @@ parse_command (PSplashFB *fb, char *string, int length)
parsed = strlen(string)+1;
DBG("got cmd %s", string);
-
+
if (strcmp(string,"QUIT") == 0)
return 1;
command = strtok(string," ");
- if (!strcmp(command,"PROGRESS"))
+ if (!strcmp(command,"PROGRESS"))
{
psplash_draw_progress (fb, atoi(strtok(NULL,"\0")));
- }
- else if (!strcmp(command,"MSG"))
+ }
+ else if (!strcmp(command,"MSG"))
{
psplash_draw_msg (fb, strtok(NULL,"\0"));
- }
- else if (!strcmp(command,"QUIT"))
+ }
+ else if (!strcmp(command,"QUIT"))
{
return 1;
}
@@ -125,8 +125,8 @@ parse_command (PSplashFB *fb, char *string, int length)
return 0;
}
-void
-psplash_main (PSplashFB *fb, int pipe_fd, int timeout)
+void
+psplash_main (PSplashFB *fb, int pipe_fd, int timeout)
{
int err;
ssize_t length = 0;
@@ -143,14 +143,14 @@ psplash_main (PSplashFB *fb, int pipe_fd, int timeout)
end = command;
- while (1)
+ while (1)
{
- if (timeout != 0)
+ if (timeout != 0)
err = select(pipe_fd+1, &descriptors, NULL, NULL, &tv);
else
err = select(pipe_fd+1, &descriptors, NULL, NULL, NULL);
-
- if (err <= 0)
+
+ if (err <= 0)
{
/*
if (errno == EINTR)
@@ -223,10 +223,10 @@ main (int argc, char** argv)
angle = atoi(argv[i]);
continue;
}
-
+
fail:
- fprintf(stderr,
- "Usage: %s [-n|--no-console-switch][-a|--angle <0|90|180|270>]\n",
+ fprintf(stderr,
+ "Usage: %s [-n|--no-console-switch][-a|--angle <0|90|180|270>]\n",
argv[0]);
exit(-1);
}
@@ -240,7 +240,7 @@ main (int argc, char** argv)
if (mkfifo(PSPLASH_FIFO, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP))
{
- if (errno!=EEXIST)
+ if (errno!=EEXIST)
{
perror("mkfifo");
exit(-1);
@@ -248,8 +248,8 @@ main (int argc, char** argv)
}
pipe_fd = open (PSPLASH_FIFO,O_RDONLY|O_NONBLOCK);
-
- if (pipe_fd==-1)
+
+ if (pipe_fd==-1)
{
perror("pipe open");
exit(-2);
@@ -264,29 +264,29 @@ main (int argc, char** argv)
}
/* Clear the background with #ecece1 */
- psplash_fb_draw_rect (fb, 0, 0, fb->width, fb->height, 0xec, 0xec, 0xe1);
+ psplash_fb_draw_rect (fb, 0, 0, fb->width, fb->height, PSPLASH_BACKGROUND_COLOR_R, PSPLASH_BACKGROUND_COLOR_G, PSPLASH_BACKGROUND_COLOR_B);
/* Draw the OH logo */
- psplash_fb_draw_image (fb,
- (fb->width - POKY_IMG_WIDTH)/2,
- ((fb->height * 5) / 6 - POKY_IMG_HEIGHT)/2,
+ psplash_fb_draw_image (fb,
+ (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,
- (fb->width - BAR_IMG_WIDTH)/2,
- fb->height - (fb->height/6),
+ psplash_fb_draw_image (fb,
+ (fb->width - BAR_IMG_WIDTH)/2,
+ fb->height - (fb->height/PSPLASH_PROGRESS_DIVIDER),
BAR_IMG_WIDTH,
BAR_IMG_HEIGHT,
BAR_IMG_BYTES_PER_PIXEL,
BAR_IMG_RLE_PIXEL_DATA);
- psplash_draw_progress (fb, 0);
+ psplash_draw_progress (fb, 0); /* draw initial progress */
- psplash_draw_msg (fb, MSG);
+ if (strlen(MSG)) psplash_draw_msg (fb, MSG);
psplash_main (fb, pipe_fd, 0);
diff --git a/psplash.h b/psplash.h
index 22d73a3..1b015b6 100644
--- a/psplash.h
+++ b/psplash.h
@@ -55,6 +55,21 @@ typedef int bool;
#define TRUE 1
#endif
+#define PSPLASH_BACKGROUND_COLOR_R 0x00
+#define PSPLASH_BACKGROUND_COLOR_G 0x00
+#define PSPLASH_BACKGROUND_COLOR_B 0x00
+
+#define PSPLASH_PROGRESS_COLOR_R 0xe3
+#define PSPLASH_PROGRESS_COLOR_G 0x71
+#define PSPLASH_PROGRESS_COLOR_B 0x00
+
+#define PSPLASH_TEXT_COLOR_R 0xff
+#define PSPLASH_TEXT_COLOR_G 0xff
+#define PSPLASH_TEXT_COLOR_B 0xff
+
+#define PSPLASH_PROGRESS_DIVIDER 3
+#define PSPLASH_TEXT_DIVIDER 3
+
#define PSPLASH_FIFO "psplash_fifo"
#define CLAMP(x, low, high) \
--
1.7.0.4

View File

@@ -1,31 +0,0 @@
/* GdkPixbuf RGB C-Source image dump 1-byte-run-length-encoded */
#define BAR_IMG_ROWSTRIDE (690)
#define BAR_IMG_WIDTH (230)
#define BAR_IMG_HEIGHT (28)
#define BAR_IMG_BYTES_PER_PIXEL (3) /* 3:RGB, 4:RGBA */
#define BAR_IMG_RLE_PIXEL_DATA ((uint8*) \
"\377\377\377\377\377\377\377\377\377\377\377\377\321\377\377\377\1\307" \
"\307\307\377\210\210\210\340\210\210\210\1\300\300\300\205\377\377\377" \
"\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207" \
"\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340" \
"\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205" \
"\377\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1" \
"\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377" \
"\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340\0\0" \
"\0\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377" \
"\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207" \
"\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0" \
"\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340\0\0\0" \
"\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377" \
"\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207" \
"\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0" \
"\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340\0\0\0" \
"\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377" \
"\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207" \
"\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0" \
"\0\0\340\0\0\0\1xxx\205\377\377\377\1\277\277\277\377www\340www\1\267" \
"\267\267\377\377\377\377\377\377\377\377\377\377\377\377\322\377\377" \
"\377")

View File

@@ -1,453 +0,0 @@
/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */
#define POKY_IMG_ROWSTRIDE (880)
#define POKY_IMG_WIDTH (220)
#define POKY_IMG_HEIGHT (137)
#define POKY_IMG_BYTES_PER_PIXEL (4) /* 3:RGB, 4:RGBA */
#define POKY_IMG_RLE_PIXEL_DATA ((uint8*) \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\206\0\0\0\377\3b\0\0\377\365\0\0\377\361" \
"\0\0\377\214\360\0\0\377\3\367\0\0\377\254\0\0\377\2\0\0\377\206\0\0" \
"\0\377\3\1\0\0\377\236\0\0\377\371\0\0\377\203\362\0\0\377\3\367\0\0" \
"\377\312\0\0\377\11\0\0\377\377\0\0\0\377\274\0\0\0\377\3b\0\0\377\365" \
"\0\0\377\361\0\0\377\214\360\0\0\377\3\367\0\0\377\254\0\0\377\2\0\0" \
"\377\206\0\0\0\377\3\11\0\0\377\310\0\0\377\365\0\0\377\203\360\0\0\377" \
"\2\370\0\0\377\236\0\0\377\377\0\0\0\377\275\0\0\0\377\3b\0\0\377\365" \
"\0\0\377\361\0\0\377\214\360\0\0\377\3\367\0\0\377\254\0\0\377\2\0\0" \
"\377\206\0\0\0\377\3!\0\0\377\345\0\0\377\362\0\0\377\203\360\0\0\377" \
"\2\367\0\0\377t\0\0\377\377\0\0\0\377\275\0\0\0\377\3b\0\0\377\365\0" \
"\0\377\361\0\0\377\214\360\0\0\377\3\367\0\0\377\254\0\0\377\2\0\0\377" \
"\206\0\0\0\377\1Q\0\0\377\204\371\0\0\377\3\372\0\0\377\370\0\0\377J" \
"\0\0\377\377\0\0\0\377\275\0\0\0\377\3b\0\0\377\365\0\0\377\361\0\0\377" \
"\214\360\0\0\377\3\367\0\0\377\254\0\0\377\2\0\0\377\206\0\0\0\377\2" \
"d\0\0\377\323\0\0\377\203\315\0\0\377\3\317\0\0\377\301\0\0\377\37\0" \
"\0\377\377\0\0\0\377\275\0\0\0\377\3b\0\0\377\365\0\0\377\361\0\0\377" \
"\214\360\0\0\377\3\367\0\0\377\254\0\0\377\1\0\0\377\206\0\0\0\377\2" \
"\12\0\0\377\20\0\0\377\204\17\0\0\377\1\15\0\0\377\377\0\0\0\377\276" \
"\0\0\0\377\3b\0\0\377\365\0\0\377\361\0\0\377\214\360\0\0\377\2\367\0" \
"\0\377\250\0\0\377\377\0\0\0\377\314\0\0\0\377\3b\0\0\377\365\0\0\377" \
"\361\0\0\377\214\360\0\0\377\13\363\0\0\377\314\0\0\377r\0\0\377p\0\0" \
"\377r\0\0\377g\0\0\377\16\0\0\377\0\0\0\377\22\0\0\377k\0\0\377r\0\0" \
"\377\203q\0\0\377\6t\0\0\3774\0\0\377\0\0\0\377\2\0\0\377U\0\0\377t\0" \
"\0\377\212q\0\0\377\2u\0\0\377J\0\0\377\377\0\0\0\377\256\0\0\0\377\3" \
"b\0\0\377\365\0\0\377\361\0\0\377\215\360\0\0\377\1\364\0\0\377\202\375" \
"\0\0\377\7\377\0\0\377\322\0\0\377\16\0\0\377\0\0\0\377E\0\0\377\373" \
"\0\0\377\377\0\0\377\202\375\0\0\377\202\376\0\0\377\5Y\0\0\377\0\0\0" \
"\377\17\0\0\377\333\0\0\377\377\0\0\377\212\375\0\0\377\2\377\0\0\377" \
"\247\0\0\377\377\0\0\0\377\256\0\0\0\377\3b\0\0\377\365\0\0\377\361\0" \
"\0\377\216\360\0\0\377\202\361\0\0\377\2\371\0\0\377\235\0\0\377\202" \
"\0\0\0\377\2p\0\0\377\367\0\0\377\203\361\0\0\377\7\363\0\0\377\351\0" \
"\0\377)\0\0\377\0\0\0\3770\0\0\377\350\0\0\377\363\0\0\377\212\361\0" \
"\0\377\2\371\0\0\377\237\0\0\377\377\0\0\0\377\256\0\0\0\377\3b\0\0\377" \
"\365\0\0\377\361\0\0\377\220\360\0\0\377\2\367\0\0\377q\0\0\377\202\0" \
"\0\0\377\2\230\0\0\377\370\0\0\377\203\360\0\0\377\7\364\0\0\377\320" \
"\0\0\377\12\0\0\377\0\0\0\377Y\0\0\377\363\0\0\377\361\0\0\377\212\360" \
"\0\0\377\2\370\0\0\377\236\0\0\377\377\0\0\0\377\256\0\0\0\377\3b\0\0" \
"\377\365\0\0\377\361\0\0\377\217\360\0\0\377\7\361\0\0\377\357\0\0\377" \
"G\0\0\377\0\0\0\377\7\0\0\377\301\0\0\377\365\0\0\377\203\360\0\0\377" \
"\6\370\0\0\377\246\0\0\377\1\0\0\377\0\0\0\377\203\0\0\377\372\0\0\377" \
"\213\360\0\0\377\2\370\0\0\377\236\0\0\377\377\0\0\0\377\256\0\0\0\377" \
"\3b\0\0\377\365\0\0\377\361\0\0\377\217\360\0\0\377\7\362\0\0\377\342" \
"\0\0\377\36\0\0\377\0\0\0\377\37\0\0\377\337\0\0\377\362\0\0\377\203" \
"\360\0\0\377\6\370\0\0\377{\0\0\377\0\0\0\377\3\0\0\377\255\0\0\377\367" \
"\0\0\377\213\360\0\0\377\2\370\0\0\377\236\0\0\377\377\0\0\0\377\256" \
"\0\0\0\377\3b\0\0\377\365\0\0\377\361\0\0\377\217\360\0\0\377\7\365\0" \
"\0\377\303\0\0\377\7\0\0\377\0\0\0\377E\0\0\377\356\0\0\377\361\0\0\377" \
"\202\360\0\0\377\7\361\0\0\377\362\0\0\377P\0\0\377\0\0\0\377\22\0\0" \
"\377\322\0\0\377\364\0\0\377\213\360\0\0\377\2\370\0\0\377\236\0\0\377" \
"\377\0\0\0\377\256\0\0\0\377\3b\0\0\377\365\0\0\377\361\0\0\377\213\360" \
"\0\0\377\1\363\0\0\377\203\372\0\0\377\2\377\0\0\377\235\0\0\377\202" \
"\0\0\0\377\2p\0\0\377\370\0\0\377\203\360\0\0\377\7\362\0\0\377\343\0" \
"\0\377*\0\0\377\0\0\0\3774\0\0\377\364\0\0\377\373\0\0\377\202\372\0" \
"\0\377\1\363\0\0\377\210\360\0\0\377\2\370\0\0\377\236\0\0\377\377\0" \
"\0\0\377\256\0\0\0\377\3b\0\0\377\365\0\0\377\361\0\0\377\212\360\0\0" \
"\377\2\361\0\0\377\345\0\0\377\203\306\0\0\377\2\315\0\0\377^\0\0\377" \
"\202\0\0\0\377\2\231\0\0\377\371\0\0\377\203\360\0\0\377\13\365\0\0\377" \
"\312\0\0\377\15\0\0\377\0\0\0\377I\0\0\377\310\0\0\377\307\0\0\377\306" \
"\0\0\377\305\0\0\377\337\0\0\377\361\0\0\377\207\360\0\0\377\2\370\0" \
"\0\377\236\0\0\377\205\0\0\0\377\216\377\377\377\377\377\0\0\0\377\233" \
"\0\0\0\377\3b\0\0\377\365\0\0\377\361\0\0\377\212\360\0\0\377\2\370\0" \
"\0\377\227\0\0\377\202\13\0\0\377\202\14\0\0\377\5\3\0\0\377\0\0\0\377" \
"\11\0\0\377\302\0\0\377\365\0\0\377\203\360\0\0\377\2\370\0\0\377\244" \
"\0\0\377\202\0\0\0\377\2\7\0\0\377\14\0\0\377\202\13\0\0\377\3\15\0\0" \
"\377\261\0\0\377\366\0\0\377\207\360\0\0\377\3\367\0\0\377\250\0\0\377" \
"\1\0\0\377\204\0\0\0\377\216\377\377\377\377\377\0\0\0\377\233\0\0\0" \
"\377\3b\0\0\377\365\0\0\377\361\0\0\377\212\360\0\0\377\2\370\0\0\377" \
"g\0\0\377\206\0\0\0\377\3\36\0\0\377\343\0\0\377\362\0\0\377\203\360" \
"\0\0\377\2\367\0\0\377{\0\0\377\206\0\0\0\377\3\16\0\0\377\320\0\0\377" \
"\364\0\0\377\207\360\0\0\377\3\366\0\0\377\277\0\0\377\6\0\0\377\211" \
"\0\0\0\377\204\377\377\377\377\377\0\0\0\377\240\0\0\0\377\3b\0\0\377" \
"\365\0\0\377\361\0\0\377\211\360\0\0\377\3\361\0\0\377\354\0\0\377\77" \
"\0\0\377\206\0\0\0\377\3D\0\0\377\357\0\0\377\361\0\0\377\202\360\0\0" \
"\377\202\361\0\0\377\1Q\0\0\377\206\0\0\0\377\3""1\0\0\377\347\0\0\377" \
"\362\0\0\377\207\360\0\0\377\3\363\0\0\377\335\0\0\377\40\0\0\377\211" \
"\0\0\0\377\204\377\377\377\377\377\0\0\0\377\240\0\0\0\377\3W\0\0\377" \
"\365\0\0\377\361\0\0\377\211\360\0\0\377\3\363\0\0\377\333\0\0\377\33" \
"\0\0\377\206\0\0\0\377\2o\0\0\377\366\0\0\377\203\360\0\0\377\3\362\0" \
"\0\377\346\0\0\377(\0\0\377\206\0\0\0\377\3W\0\0\377\364\0\0\377\361" \
"\0\0\377\210\360\0\0\377\2\365\0\0\377_\0\0\377\211\0\0\0\377\204\377" \
"\377\377\377\205\0\0\0\377\10$$$\377\221\221\221\377\324\324\324\377" \
"\363\363\363\377\371\371\371\377\341\341\341\377\245\245\245\377777\377" \
"\204\0\0\0\377\1\241\241\241\377\203\377\377\377\377\1""666\377\202\0" \
"\0\0\377\1""666\377\203\377\377\377\377\1\240\240\240\377\202\0\0\0\377" \
"\1```\377\203\377\377\377\377\5\375\375\375\377\361\361\361\377\316\316" \
"\316\377\206\206\206\377\24\24\24\377\205\0\0\0\377\11BBB\377\252\252" \
"\252\377\337\337\337\377\367\367\367\377\373\373\373\377\347\347\347" \
"\377\274\274\274\377}}}\377+++\377\335\0\0\0\377\213{\0\0\377\3y\0\0" \
"\377\253\0\0\377\362\0\0\377\212\360\0\0\377\3\366\0\0\377\274\0\0\377" \
"\4\0\0\377\206\0\0\0\377\2\231\0\0\377\371\0\0\377\203\360\0\0\377\3" \
"\364\0\0\377\313\0\0\377\15\0\0\377\206\0\0\0\377\2\203\0\0\377\371\0" \
"\0\377\211\360\0\0\377\2\366\0\0\377\300\0\0\377\211\0\0\0\377\204\377" \
"\377\377\377\204\0\0\0\377\2\\\\\\\377\367\367\367\377\206\377\377\377" \
"\377\2\375\375\375\377zzz\377\203\0\0\0\377\2\13\13\13\377\330\330\330" \
"\377\202\377\377\377\377\1\254\254\254\377\202\0\0\0\377\1\255\255\255" \
"\377\202\377\377\377\377\2\326\326\326\377\13\13\13\377\202\0\0\0\377" \
"\1\240\240\240\377\207\377\377\377\377\2\344\344\344\377\34\34\34\377" \
"\203\0\0\0\377\1fff\377\211\377\377\377\377\335\0\0\0\377\214\377\0\0" \
"\377\1\374\0\0\377\213\360\0\0\377\2\370\0\0\377\220\0\0\377\206\0\0" \
"\0\377\3\11\0\0\377\302\0\0\377\365\0\0\377\203\360\0\0\377\3\370\0\0" \
"\377\243\0\0\377\1\0\0\377\205\0\0\0\377\3\2\0\0\377\255\0\0\377\367" \
"\0\0\377\212\360\0\0\377\1\370\0\0\377\211\0\0\0\377\204\377\377\377" \
"\377\203\0\0\0\377\2""444\377\374\374\374\377\202\377\377\377\377\4\300" \
"\300\300\377\35\35\35\377\15\15\15\377\234\234\234\377\203\377\377\377" \
"\377\1OOO\377\203\0\0\0\377\12...\377\367\367\367\377\377\377\377\377" \
"\375\375\375\377$$$\377%%%\377\375\375\375\377\377\377\377\377\366\366" \
"\366\377---\377\203\0\0\0\377\6\261\261\261\377ooo\377!!!\377\4\4\4\377" \
"\23\23\23\377{{{\377\203\377\377\377\377\1\233\233\233\377\203\0\0\0" \
"\377\1\341\341\341\377\203\377\377\377\377\6\206\206\206\377\26\26\26" \
"\377\12\12\12\377///\377qqq\377\315\315\315\377\335\0\0\0\377\227\360" \
"\0\0\377\3\361\0\0\377\365\0\0\377V\0\0\377\206\0\0\0\377\3!\0\0\377" \
"\336\0\0\377\363\0\0\377\203\360\0\0\377\2\372\0\0\377y\0\0\377\207\0" \
"\0\0\377\2\325\0\0\377\364\0\0\377\212\360\0\0\377\1\363\0\0\377\211" \
"\0\0\0\377\204\377\377\377\377\203\0\0\0\377\1\252\252\252\377\203\377" \
"\377\377\377\1---\377\202\0\0\0\377\1\22\22\22\377\203\377\377\377\377" \
"\1\300\300\300\377\204\0\0\0\377\1hhh\377\202\377\377\377\377\2\230\230" \
"\230\377\231\231\231\377\202\377\377\377\377\1eee\377\211\0\0\0\377\1" \
"\3\3\3\377\203\377\377\377\377\1\341\341\341\377\203\0\0\0\377\1\371" \
"\371\371\377\202\377\377\377\377\1\355\355\355\377\343\0\0\0\377\227" \
"\360\0\0\377\3\361\0\0\377\357\0\0\377\232\0\0\377\202x\0\0\377\7{\0" \
"\0\377[\0\0\377\2\0\0\377\0\0\0\377F\0\0\377\360\0\0\377\361\0\0\377" \
"\202\360\0\0\377\7\361\0\0\377\362\0\0\377O\0\0\377\0\0\0\377\13\0\0" \
"\377q\0\0\377y\0\0\377\202x\0\0\377\3\212\0\0\377\355\0\0\377\361\0\0" \
"\377\213\360\0\0\377\211\0\0\0\377\204\377\377\377\377\203\0\0\0\377" \
"\1\350\350\350\377\212\377\377\377\377\1\362\362\362\377\205\0\0\0\377" \
"\2\252\252\252\377\377\377\377\377\202\367\367\367\377\2\377\377\377" \
"\377\247\247\247\377\205\0\0\0\377\5""999\377\243\243\243\377\332\332" \
"\332\377\365\365\365\377\376\376\376\377\204\377\377\377\377\1\372\372" \
"\372\377\203\0\0\0\377\1\313\313\313\377\203\377\377\377\377\4\265\265" \
"\265\377\203\203\203\377QQQ\377\24\24\24\377\337\0\0\0\377\231\360\0" \
"\0\377\1\375\0\0\377\203\377\0\0\377\5\250\0\0\377\1\0\0\377\0\0\0\377" \
"r\0\0\377\367\0\0\377\203\360\0\0\377\6\362\0\0\377\343\0\0\377'\0\0" \
"\377\0\0\0\3775\0\0\377\374\0\0\377\204\377\0\0\377\1\361\0\0\377\214" \
"\360\0\0\377\211\0\0\0\377\204\377\377\377\377\203\0\0\0\377\1\373\373" \
"\373\377\213\377\377\377\377\205\0\0\0\377\1""555\377\204\377\377\377" \
"\377\1""555\377\204\0\0\0\377\2VVV\377\375\375\375\377\211\377\377\377" \
"\377\203\0\0\0\377\2""555\377\347\347\347\377\205\377\377\377\377\3\374" \
"\374\374\377\263\263\263\377\34\34\34\377\335\0\0\0\377\234\360\0\0\377" \
"\2\370\0\0\377n\0\0\377\202\0\0\0\377\2\232\0\0\377\370\0\0\377\203\360" \
"\0\0\377\7\365\0\0\377\315\0\0\377\12\0\0\377\0\0\0\377`\0\0\377\364" \
"\0\0\377\361\0\0\377\220\360\0\0\377\211\0\0\0\377\204\377\377\377\377" \
"\203\0\0\0\377\1\351\351\351\377\203\377\377\377\377\1\21\21\21\377\213" \
"\0\0\0\377\3\5\5\5\377\313\313\313\377\377\377\377\377\202\355\355\355" \
"\377\3\377\377\377\377\314\314\314\377\5\5\5\377\203\0\0\0\377\1\326" \
"\326\326\377\203\377\377\377\377\3lll\377\7\7\7\377\2\2\2\377\204\377" \
"\377\377\377\204\0\0\0\377\5\12\12\12\377UUU\377\220\220\220\377\270" \
"\270\270\377\362\362\362\377\203\377\377\377\377\1\272\272\272\377\335" \
"\0\0\0\377\233\360\0\0\377\7\361\0\0\377\356\0\0\377E\0\0\377\0\0\0\377" \
"\7\0\0\377\303\0\0\377\365\0\0\377\203\360\0\0\377\2\367\0\0\377\245" \
"\0\0\377\202\0\0\0\377\2\212\0\0\377\371\0\0\377\221\360\0\0\377\211" \
"\0\0\0\377\204\377\377\377\377\203\0\0\0\377\1\257\257\257\377\203\377" \
"\377\377\377\1[[[\377\213\0\0\0\377\1\205\205\205\377\202\377\377\377" \
"\377\2\202\202\202\377\203\203\203\377\202\377\377\377\377\1\206\206" \
"\206\377\203\0\0\0\377\1\372\372\372\377\203\377\377\377\377\3\11\11" \
"\11\377\0\0\0\377***\377\204\377\377\377\377\210\0\0\0\377\1\33\33\33" \
"\377\203\377\377\377\377\1\366\366\366\377\335\0\0\0\377\233\360\0\0" \
"\377\7\362\0\0\377\341\0\0\377\36\0\0\377\0\0\0\377\36\0\0\377\342\0" \
"\0\377\362\0\0\377\203\360\0\0\377\6\367\0\0\377y\0\0\377\0\0\0\377\4" \
"\0\0\377\264\0\0\377\367\0\0\377\221\360\0\0\377\211\0\0\0\377\204\377" \
"\377\377\377\203\0\0\0\377\2<<<\377\376\376\376\377\202\377\377\377\377" \
"\7\352\352\352\377III\377\6\6\6\377\14\14\14\377111\377qqq\377\314\314" \
"\314\377\204\0\0\0\377\4===\377\375\375\375\377\377\377\377\377\366\366" \
"\366\377\202\25\25\25\377\4\366\366\366\377\377\377\377\377\375\375\375" \
"\377>>>\377\202\0\0\0\377\1\340\340\340\377\203\377\377\377\377\3ZZZ" \
"\377\20\20\20\377\265\265\265\377\204\377\377\377\377\203\0\0\0\377\6" \
"\306\306\306\377fff\377(((\377\10\10\10\377\11\11\11\377^^^\377\203\377" \
"\377\377\377\1\334\334\334\377\335\0\0\0\377\1\363\0\0\377\232\360\0" \
"\0\377\7\365\0\0\377\304\0\0\377\6\0\0\377\0\0\0\377E\0\0\377\357\0\0" \
"\377\361\0\0\377\202\360\0\0\377\7\361\0\0\377\362\0\0\377O\0\0\377\0" \
"\0\0\377\27\0\0\377\326\0\0\377\363\0\0\377\221\360\0\0\377\211\0\0\0" \
"\377\204\377\377\377\377\204\0\0\0\377\2jjj\377\373\373\373\377\210\377" \
"\377\377\377\203\0\0\0\377\2\17\17\17\377\340\340\340\377\202\377\377" \
"\377\377\1\225\225\225\377\202\0\0\0\377\1\226\226\226\377\202\377\377" \
"\377\377\4\340\340\340\377\17\17\17\377\0\0\0\377ooo\377\205\377\377" \
"\377\377\1\241\241\241\377\204\377\377\377\377\203\0\0\0\377\210\377" \
"\377\377\377\2\375\375\375\377\\\\\\\377\335\0\0\0\377\2\366\0\0\377" \
"\362\0\0\377\231\360\0\0\377\2\370\0\0\377\231\0\0\377\202\0\0\0\377" \
"\2q\0\0\377\367\0\0\377\203\360\0\0\377\7\362\0\0\377\343\0\0\377(\0" \
"\0\377\0\0\0\3778\0\0\377\354\0\0\377\361\0\0\377\221\360\0\0\377\211" \
"\0\0\0\377\204\377\377\377\377\205\0\0\0\377\11---\377\231\231\231\377" \
"\331\331\331\377\365\365\365\377\373\373\373\377\350\350\350\377\300" \
"\300\300\377\202\202\202\377...\377\203\0\0\0\377\1\245\245\245\377\202" \
"\377\377\377\377\2\374\374\374\377\"\"\"\377\202\0\0\0\377\2\"\"\"\377" \
"\374\374\374\377\202\377\377\377\377\1\245\245\245\377\202\0\0\0\377" \
"\6kkk\377\333\333\333\377\372\372\372\377\340\340\340\377\202\202\202" \
"\377\4\4\4\377\204\377\377\377\377\203\0\0\0\377\11---\377\201\201\201" \
"\377\300\300\300\377\351\351\351\377\374\374\374\377\370\370\370\377" \
"\337\337\337\377\247\247\247\377;;;\377\336\0\0\0\377\3\212\0\0\377\371" \
"\0\0\377\361\0\0\377\230\360\0\0\377\2\367\0\0\377p\0\0\377\202\0\0\0" \
"\377\2\233\0\0\377\371\0\0\377\203\360\0\0\377\6\364\0\0\377\311\0\0" \
"\377\16\0\0\377\0\0\0\377a\0\0\377\364\0\0\377\222\360\0\0\377\377\0" \
"\0\0\377\241\0\0\0\377\3\10\0\0\377\265\0\0\377\370\0\0\377\227\360\0" \
"\0\377\7\361\0\0\377\357\0\0\377F\0\0\377\0\0\0\377\12\0\0\377\302\0" \
"\0\377\365\0\0\377\203\360\0\0\377\2\370\0\0\377\243\0\0\377\202\0\0" \
"\0\377\2\212\0\0\377\370\0\0\377\222\360\0\0\377\377\0\0\0\377\242\0" \
"\0\0\377\3""5\0\0\377\351\0\0\377\362\0\0\377\226\360\0\0\377\7\362\0" \
"\0\377\337\0\0\377\"\0\0\377\0\0\0\377\"\0\0\377\341\0\0\377\362\0\0" \
"\377\203\360\0\0\377\6\370\0\0\377v\0\0\377\0\0\0\377\4\0\0\377\270\0" \
"\0\377\366\0\0\377\222\360\0\0\377\377\0\0\0\377\243\0\0\0\377\2\247" \
"\0\0\377\370\0\0\377\226\360\0\0\377\7\365\0\0\377\304\0\0\377\12\0\0" \
"\377\0\0\0\377F\0\0\377\360\0\0\377\361\0\0\377\202\360\0\0\377\7\361" \
"\0\0\377\360\0\0\377O\0\0\377\0\0\0\377\25\0\0\377\333\0\0\377\363\0" \
"\0\377\222\360\0\0\377\377\0\0\0\377\243\0\0\0\377\3O\0\0\377\363\0\0" \
"\377\361\0\0\377\225\360\0\0\377\2\370\0\0\377\234\0\0\377\202\0\0\0" \
"\377\1|\0\0\377\205\377\0\0\377\5\363\0\0\377&\0\0\377\0\0\0\377\22\0" \
"\0\377\326\0\0\377\203\377\0\0\377\2\366\0\0\377\357\0\0\377\216\360" \
"\0\0\377\377\0\0\0\377\243\0\0\0\377\3\15\0\0\377\312\0\0\377\365\0\0" \
"\377\225\360\0\0\377\2\367\0\0\377q\0\0\377\202\0\0\0\377\2Z\0\0\377" \
"\227\0\0\377\203\222\0\0\377\3\225\0\0\377\202\0\0\377\7\0\0\377\202" \
"\0\0\0\377\6>\0\0\377\211\0\0\377\223\0\0\377\221\0\0\377\315\0\0\377" \
"\363\0\0\377\216\360\0\0\377\377\0\0\0\377\244\0\0\0\377\2x\0\0\377\371" \
"\0\0\377\211\360\0\0\377\5\364\0\0\377\374\0\0\377\377\0\0\377\376\0" \
"\0\377\365\0\0\377\206\360\0\0\377\3\362\0\0\377\356\0\0\377B\0\0\377" \
"\220\0\0\0\377\2\255\0\0\377\367\0\0\377\213\360\0\0\377\3\364\0\0\377" \
"\373\0\0\377\377\0\0\377\377\0\0\0\377\244\0\0\0\377\3\37\0\0\377\335" \
"\0\0\377\364\0\0\377\207\360\0\0\377\7\372\0\0\377\353\0\0\377\262\0" \
"\0\377\220\0\0\377\244\0\0\377\343\0\0\377\372\0\0\377\205\360\0\0\377" \
"\3\363\0\0\377\335\0\0\377\30\0\0\377\217\0\0\0\377\3\24\0\0\377\327" \
"\0\0\377\364\0\0\377\210\360\0\0\377\6\361\0\0\377\367\0\0\377\376\0" \
"\0\377\356\0\0\377\275\0\0\377z\0\0\377\377\0\0\0\377\245\0\0\0\377\2" \
"|\0\0\377\372\0\0\377\206\360\0\0\377\4\372\0\0\377\301\0\0\3778\0\0" \
"\377\1\0\0\377\202\0\0\0\377\3-\0\0\377\274\0\0\377\371\0\0\377\204\360" \
"\0\0\377\3\365\0\0\377\274\0\0\377\7\0\0\377\217\0\0\0\377\3""6\0\0\377" \
"\354\0\0\377\361\0\0\377\206\360\0\0\377\7\361\0\0\377\370\0\0\377\374" \
"\0\0\377\331\0\0\377\215\0\0\3779\0\0\377\5\0\0\377\377\0\0\0\377\246" \
"\0\0\0\377\4\21\0\0\377\301\0\0\377\375\0\0\377\361\0\0\377\203\360\0" \
"\0\377\3\374\0\0\377\300\0\0\377\32\0\0\377\205\0\0\0\377\3\33\0\0\377" \
"\311\0\0\377\367\0\0\377\203\360\0\0\377\3\367\0\0\377\255\0\0\377\2" \
"\0\0\377\217\0\0\0\377\3a\0\0\377\364\0\0\377\361\0\0\377\205\360\0\0" \
"\377\5\366\0\0\377\375\0\0\377\324\0\0\377u\0\0\377\37\0\0\377\212\0" \
"\0\0\377\204\377\377\377\377\377\0\0\0\377\234\0\0\0\377\10)\0\0\377" \
"\311\0\0\377\377\0\0\377\374\0\0\377\373\0\0\377\377\0\0\377\311\0\0" \
"\377#\0\0\377\207\0\0\0\377\3;\0\0\377\352\0\0\377\363\0\0\377\202\360" \
"\0\0\377\3\365\0\0\377\307\0\0\377\7\0\0\377\217\0\0\0\377\2\214\0\0" \
"\377\370\0\0\377\204\360\0\0\377\5\362\0\0\377\374\0\0\377\344\0\0\377" \
"\177\0\0\377\33\0\0\377\214\0\0\0\377\204\377\377\377\377\235\0\0\0\377" \
"\204\377\377\377\377\317\0\0\0\377\204\377\377\377\377\250\0\0\0\377" \
"\6\31\0\0\377\177\0\0\377\272\0\0\377\303\0\0\377\217\0\0\377\36\0\0" \
"\377\211\0\0\0\377\2\213\0\0\377\371\0\0\377\202\360\0\0\377\3\361\0" \
"\0\377\357\0\0\377M\0\0\377\216\0\0\0\377\3\4\0\0\377\266\0\0\377\366" \
"\0\0\377\203\360\0\0\377\4\365\0\0\377\371\0\0\377\254\0\0\377/\0\0\377" \
"\216\0\0\0\377\204\377\377\377\377\235\0\0\0\377\204\377\377\377\377" \
"\317\0\0\0\377\204\377\377\377\377\252\0\0\0\377\2\2\0\0\377\5\0\0\377" \
"\213\0\0\0\377\3\36\0\0\377\334\0\0\377\364\0\0\377\202\360\0\0\377\4" \
"\364\0\0\377\331\0\0\377V\0\0\377\11\0\0\377\214\0\0\0\377\3\17\0\0\377" \
"\327\0\0\377\363\0\0\377\202\360\0\0\377\4\367\0\0\377\356\0\0\377u\0" \
"\0\377\5\0\0\377\217\0\0\0\377\204\377\377\377\377\235\0\0\0\377\204" \
"\377\377\377\377\317\0\0\0\377\204\377\377\377\377\270\0\0\0\377\2\177" \
"\0\0\377\370\0\0\377\203\360\0\0\377\7\367\0\0\377\365\0\0\377\303\0" \
"\0\377\216\0\0\377n\0\0\377X\0\0\377L\0\0\377\207K\0\0\377\10J\0\0\377" \
"p\0\0\377\353\0\0\377\361\0\0\377\360\0\0\377\370\0\0\377\340\0\0\377" \
"P\0\0\377\221\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204\377\377" \
"\377\377\6\1\1\1\377rrr\377\333\333\333\377\371\371\371\377\333\333\333" \
"\377kkk\377\204\0\0\0\377\12BBB\377\252\252\252\377\337\337\337\377\367" \
"\367\367\377\373\373\373\377\347\347\347\377\274\274\274\377}}}\377+" \
"++\377\0\0\0\377\212\377\377\377\377\202\0\0\0\377\204\377\377\377\377" \
"\4\12\12\12\377\222\222\222\377\352\352\352\377\374\374\374\377\202\0" \
"\0\0\377\204\377\377\377\377\203\0\0\0\377\204\377\377\377\377\203\0" \
"\0\0\377\204\377\377\377\377\15\3\3\3\377\200\200\200\377\346\346\346" \
"\377\372\372\372\377\313\313\313\377CCC\377\0\0\0\377\32\32\32\377\245" \
"\245\245\377\357\357\357\377\370\370\370\377\317\317\317\377ZZZ\377\205" \
"\0\0\0\377\10$$$\377\221\221\221\377\324\324\324\377\363\363\363\377" \
"\371\371\371\377\341\341\341\377\245\245\245\377777\377\205\0\0\0\377" \
"\204\377\377\377\377\6\1\1\1\377rrr\377\333\333\333\377\371\371\371\377" \
"\333\333\333\377kkk\377\202\0\0\0\377\212\377\377\377\377\202\0\0\0\377" \
"\11BBB\377\252\252\252\377\337\337\337\377\367\367\367\377\373\373\373" \
"\377\347\347\347\377\274\274\274\377}}}\377+++\377\251\0\0\0\377\3!\0" \
"\0\377\335\0\0\377\363\0\0\377\203\360\0\0\377\2\362\0\0\377\372\0\0" \
"\377\202\377\0\0\377\2\371\0\0\377\365\0\0\377\210\364\0\0\377\6\365" \
"\0\0\377\361\0\0\377\360\0\0\377\367\0\0\377\340\0\0\377@\0\0\377\222" \
"\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204\377\377\377\377\1\227" \
"\227\227\377\205\377\377\377\377\1ccc\377\202\0\0\0\377\1fff\377\211" \
"\377\377\377\377\1\0\0\0\377\212\377\377\377\377\202\0\0\0\377\204\377" \
"\377\377\377\1\253\253\253\377\203\377\377\377\377\202\0\0\0\377\204" \
"\377\377\377\377\203\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204" \
"\377\377\377\377\1\237\237\237\377\204\377\377\377\377\3\374\374\374" \
"\377ZZZ\377\346\346\346\377\205\377\377\377\377\1XXX\377\203\0\0\0\377" \
"\2\\\\\\\377\367\367\367\377\206\377\377\377\377\2\375\375\375\377zz" \
"z\377\204\0\0\0\377\204\377\377\377\377\1\227\227\227\377\205\377\377" \
"\377\377\2ccc\377\0\0\0\377\212\377\377\377\377\2\0\0\0\377fff\377\211" \
"\377\377\377\377\252\0\0\0\377\2\214\0\0\377\371\0\0\377\206\360\0\0" \
"\377\2\361\0\0\377\362\0\0\377\211\363\0\0\377\5\362\0\0\377\360\0\0" \
"\377\365\0\0\377\347\0\0\377E\0\0\377\223\0\0\0\377\204\377\377\377\377" \
"\203\0\0\0\377\204\377\377\377\377\3\277\277\277\377\22\22\22\377ppp" \
"\377\203\377\377\377\377\1\316\316\316\377\202\0\0\0\377\1\341\341\341" \
"\377\203\377\377\377\377\6\206\206\206\377\26\26\26\377\12\12\12\377" \
"///\377qqq\377\315\315\315\377\203\0\0\0\377\204\377\377\377\377\206" \
"\0\0\0\377\204\377\377\377\377\3\335\335\335\377333\377\2\2\2\377\203" \
"\0\0\0\377\203\377\377\377\377\1\376\376\376\377\203\0\0\0\377\204\377" \
"\377\377\377\203\0\0\0\377\204\377\377\377\377\3\276\276\276\377\21\21" \
"\21\377```\377\204\377\377\377\377\3\274\274\274\377\21\21\21\377bbb" \
"\377\203\377\377\377\377\1\313\313\313\377\202\0\0\0\377\2""444\377\374" \
"\374\374\377\202\377\377\377\377\4\300\300\300\377\35\35\35\377\15\15" \
"\15\377\234\234\234\377\203\377\377\377\377\1OOO\377\203\0\0\0\377\204" \
"\377\377\377\377\3\277\277\277\377\22\22\22\377ppp\377\203\377\377\377" \
"\377\1\316\316\316\377\203\0\0\0\377\204\377\377\377\377\205\0\0\0\377" \
"\1\341\341\341\377\203\377\377\377\377\6\206\206\206\377\26\26\26\377" \
"\12\12\12\377///\377qqq\377\315\315\315\377\252\0\0\0\377\3)\0\0\377" \
"\347\0\0\377\362\0\0\377\221\360\0\0\377\3\361\0\0\377\364\0\0\377a\0" \
"\0\377\224\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204\377\377\377" \
"\377\3>>>\377\0\0\0\377\21\21\21\377\203\377\377\377\377\1\367\367\367" \
"\377\202\0\0\0\377\1\371\371\371\377\202\377\377\377\377\1\355\355\355" \
"\377\211\0\0\0\377\204\377\377\377\377\206\0\0\0\377\204\377\377\377" \
"\377\1NNN\377\205\0\0\0\377\203\377\377\377\377\1\374\374\374\377\203" \
"\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204\377\377\377\377\3<<" \
"<\377\0\0\0\377\22\22\22\377\204\377\377\377\377\3===\377\0\0\0\377\11" \
"\11\11\377\203\377\377\377\377\1\367\367\367\377\202\0\0\0\377\1\252" \
"\252\252\377\203\377\377\377\377\1---\377\202\0\0\0\377\1\22\22\22\377" \
"\203\377\377\377\377\1\300\300\300\377\203\0\0\0\377\204\377\377\377" \
"\377\3>>>\377\0\0\0\377\21\21\21\377\203\377\377\377\377\1\367\367\367" \
"\377\203\0\0\0\377\204\377\377\377\377\205\0\0\0\377\1\371\371\371\377" \
"\202\377\377\377\377\1\355\355\355\377\261\0\0\0\377\2\233\0\0\377\371" \
"\0\0\377\221\360\0\0\377\2\372\0\0\377\235\0\0\377\225\0\0\0\377\204" \
"\377\377\377\377\203\0\0\0\377\204\377\377\377\377\3\14\14\14\377\0\0" \
"\0\377\3\3\3\377\204\377\377\377\377\202\0\0\0\377\1\313\313\313\377" \
"\203\377\377\377\377\4\265\265\265\377\203\203\203\377QQQ\377\24\24\24" \
"\377\205\0\0\0\377\204\377\377\377\377\206\0\0\0\377\204\377\377\377" \
"\377\1\17\17\17\377\205\0\0\0\377\203\377\377\377\377\1\374\374\374\377" \
"\203\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204\377\377\377\377" \
"\3\14\14\14\377\0\0\0\377\3\3\3\377\204\377\377\377\377\1\15\15\15\377" \
"\202\0\0\0\377\1\376\376\376\377\203\377\377\377\377\202\0\0\0\377\1" \
"\350\350\350\377\212\377\377\377\377\1\362\362\362\377\203\0\0\0\377" \
"\204\377\377\377\377\3\14\14\14\377\0\0\0\377\3\3\3\377\204\377\377\377" \
"\377\203\0\0\0\377\204\377\377\377\377\205\0\0\0\377\1\313\313\313\377" \
"\203\377\377\377\377\4\265\265\265\377\203\203\203\377QQQ\377\24\24\24" \
"\377\255\0\0\0\377\3""9\0\0\377\353\0\0\377\362\0\0\377\217\360\0\0\377" \
"\3\363\0\0\377\335\0\0\377!\0\0\377\225\0\0\0\377\204\377\377\377\377" \
"\203\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204\377\377\377\377" \
"\202\0\0\0\377\2""555\377\347\347\347\377\205\377\377\377\377\3\374\374" \
"\374\377\263\263\263\377\34\34\34\377\203\0\0\0\377\204\377\377\377\377" \
"\206\0\0\0\377\204\377\377\377\377\206\0\0\0\377\203\377\377\377\377" \
"\1\374\374\374\377\203\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204" \
"\377\377\377\377\203\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204" \
"\377\377\377\377\202\0\0\0\377\1\373\373\373\377\213\377\377\377\377" \
"\203\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204\377\377\377\377" \
"\203\0\0\0\377\204\377\377\377\377\205\0\0\0\377\2""555\377\347\347\347" \
"\377\205\377\377\377\377\3\374\374\374\377\263\263\263\377\34\34\34\377" \
"\254\0\0\0\377\2\244\0\0\377\371\0\0\377\217\360\0\0\377\2\367\0\0\377" \
"\177\0\0\377\226\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204\377" \
"\377\377\377\203\0\0\0\377\204\377\377\377\377\203\0\0\0\377\5\12\12" \
"\12\377UUU\377\220\220\220\377\270\270\270\377\362\362\362\377\203\377" \
"\377\377\377\1\272\272\272\377\203\0\0\0\377\204\377\377\377\377\206" \
"\0\0\0\377\204\377\377\377\377\206\0\0\0\377\203\377\377\377\377\1\376" \
"\376\376\377\202\0\0\0\377\1\15\15\15\377\204\377\377\377\377\203\0\0" \
"\0\377\204\377\377\377\377\203\0\0\0\377\204\377\377\377\377\203\0\0" \
"\0\377\204\377\377\377\377\202\0\0\0\377\1\351\351\351\377\203\377\377" \
"\377\377\1\21\21\21\377\212\0\0\0\377\204\377\377\377\377\203\0\0\0\377" \
"\204\377\377\377\377\203\0\0\0\377\204\377\377\377\377\206\0\0\0\377" \
"\5\12\12\12\377UUU\377\220\220\220\377\270\270\270\377\362\362\362\377" \
"\203\377\377\377\377\1\272\272\272\377\254\0\0\0\377\3;\0\0\377\354\0" \
"\0\377\362\0\0\377\215\360\0\0\377\3\362\0\0\377\344\0\0\377,\0\0\377" \
"\226\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204\377\377\377\377" \
"\203\0\0\0\377\204\377\377\377\377\207\0\0\0\377\1\33\33\33\377\203\377" \
"\377\377\377\1\366\366\366\377\203\0\0\0\377\1\375\375\375\377\203\377" \
"\377\377\377\1\1\1\1\377\205\0\0\0\377\204\377\377\377\377\206\0\0\0" \
"\377\1\370\370\370\377\203\377\377\377\377\3\16\16\16\377\0\0\0\377=" \
"==\377\204\377\377\377\377\203\0\0\0\377\204\377\377\377\377\203\0\0" \
"\0\377\204\377\377\377\377\203\0\0\0\377\204\377\377\377\377\202\0\0" \
"\0\377\1\257\257\257\377\203\377\377\377\377\1[[[\377\212\0\0\0\377\204" \
"\377\377\377\377\203\0\0\0\377\204\377\377\377\377\203\0\0\0\377\1\375" \
"\375\375\377\203\377\377\377\377\1\1\1\1\377\211\0\0\0\377\1\33\33\33" \
"\377\203\377\377\377\377\1\366\366\366\377\255\0\0\0\377\2\236\0\0\377" \
"\372\0\0\377\215\360\0\0\377\3\366\0\0\377\270\0\0\377\4\0\0\377\226" \
"\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204\377\377\377\377\203" \
"\0\0\0\377\204\377\377\377\377\202\0\0\0\377\6\306\306\306\377fff\377" \
"(((\377\10\10\10\377\11\11\11\377^^^\377\203\377\377\377\377\1\334\334" \
"\334\377\203\0\0\0\377\1\345\345\345\377\203\377\377\377\377\1@@@\377" \
"\205\0\0\0\377\204\377\377\377\377\206\0\0\0\377\1\320\320\320\377\203" \
"\377\377\377\377\3kkk\377\21\21\21\377\276\276\276\377\204\377\377\377" \
"\377\203\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204\377\377\377" \
"\377\203\0\0\0\377\204\377\377\377\377\202\0\0\0\377\2<<<\377\376\376" \
"\376\377\202\377\377\377\377\7\352\352\352\377III\377\6\6\6\377\14\14" \
"\14\377111\377qqq\377\314\314\314\377\204\0\0\0\377\204\377\377\377\377" \
"\203\0\0\0\377\204\377\377\377\377\203\0\0\0\377\1\345\345\345\377\203" \
"\377\377\377\377\1@@@\377\204\0\0\0\377\6\306\306\306\377fff\377(((\377" \
"\10\10\10\377\11\11\11\377^^^\377\203\377\377\377\377\1\334\334\334\377" \
"\255\0\0\0\377\3*\0\0\377\345\0\0\377\364\0\0\377\214\360\0\0\377\2\372" \
"\0\0\377\217\0\0\377\227\0\0\0\377\204\377\377\377\377\203\0\0\0\377" \
"\204\377\377\377\377\203\0\0\0\377\204\377\377\377\377\202\0\0\0\377" \
"\210\377\377\377\377\2\375\375\375\377\\\\\\\377\203\0\0\0\377\1\215" \
"\215\215\377\206\377\377\377\377\203\0\0\0\377\204\377\377\377\377\206" \
"\0\0\0\377\1eee\377\205\377\377\377\377\1\227\227\227\377\204\377\377" \
"\377\377\203\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204\377\377" \
"\377\377\203\0\0\0\377\204\377\377\377\377\203\0\0\0\377\2jjj\377\373" \
"\373\373\377\210\377\377\377\377\204\0\0\0\377\204\377\377\377\377\203" \
"\0\0\0\377\204\377\377\377\377\203\0\0\0\377\1\215\215\215\377\206\377" \
"\377\377\377\202\0\0\0\377\210\377\377\377\377\2\375\375\375\377\\\\" \
"\\\377\256\0\0\0\377\2{\0\0\377\372\0\0\377\214\360\0\0\377\2\372\0\0" \
"\377\177\0\0\377\227\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204" \
"\377\377\377\377\203\0\0\0\377\204\377\377\377\377\202\0\0\0\377\11-" \
"--\377\201\201\201\377\300\300\300\377\351\351\351\377\374\374\374\377" \
"\370\370\370\377\337\337\337\377\247\247\247\377;;;\377\204\0\0\0\377" \
"\4\6\6\6\377\177\177\177\377\324\324\324\377\366\366\366\377\203\377" \
"\377\377\377\203\0\0\0\377\204\377\377\377\377\207\0\0\0\377\6nnn\377" \
"\333\333\333\377\372\372\372\377\334\334\334\377rrr\377\1\1\1\377\204" \
"\377\377\377\377\203\0\0\0\377\204\377\377\377\377\203\0\0\0\377\204" \
"\377\377\377\377\203\0\0\0\377\204\377\377\377\377\204\0\0\0\377\11-" \
"--\377\231\231\231\377\331\331\331\377\365\365\365\377\373\373\373\377" \
"\350\350\350\377\300\300\300\377\202\202\202\377...\377\204\0\0\0\377" \
"\204\377\377\377\377\203\0\0\0\377\204\377\377\377\377\203\0\0\0\377" \
"\4\6\6\6\377\177\177\177\377\324\324\324\377\366\366\366\377\203\377" \
"\377\377\377\202\0\0\0\377\11---\377\201\201\201\377\300\300\300\377" \
"\351\351\351\377\374\374\374\377\370\370\370\377\337\337\337\377\247" \
"\247\247\377;;;\377\257\0\0\0\377\3\15\0\0\377\271\0\0\377\373\0\0\377" \
"\213\360\0\0\377\2\372\0\0\377\200\0\0\377\377\0\0\0\377\316\0\0\0\377" \
"\3)\0\0\377\330\0\0\377\370\0\0\377\212\360\0\0\377\2\371\0\0\377\216" \
"\0\0\377\377\0\0\0\377\317\0\0\0\377\3\77\0\0\377\342\0\0\377\372\0\0" \
"\377\211\360\0\0\377\2\367\0\0\377\250\0\0\377\377\0\0\0\377\320\0\0" \
"\0\377\4A\0\0\377\332\0\0\377\375\0\0\377\361\0\0\377\207\360\0\0\377" \
"\3\364\0\0\377\316\0\0\377\20\0\0\377\377\0\0\0\377\320\0\0\0\377\4," \
"\0\0\377\273\0\0\377\374\0\0\377\367\0\0\377\206\360\0\0\377\3\361\0" \
"\0\377\355\0\0\377=\0\0\377\377\0\0\0\377\321\0\0\0\377\15\16\0\0\377" \
"y\0\0\377\336\0\0\377\377\0\0\377\373\0\0\377\365\0\0\377\363\0\0\377" \
"\362\0\0\377\363\0\0\377\364\0\0\377\377\0\0\377\237\0\0\377\2\0\0\377" \
"\377\0\0\0\377\322\0\0\0\377\13#\0\0\377z\0\0\377\302\0\0\377\347\0\0" \
"\377\362\0\0\377\366\0\0\377\363\0\0\377\353\0\0\377\317\0\0\377z\0\0" \
"\377\4\0\0\377\377\0\0\0\377\324\0\0\0\377\7\10\0\0\377(\0\0\377C\0\0" \
"\377Q\0\0\377H\0\0\3770\0\0\377\16\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377\377\0\0\0\377" \
"\377\0\0\0\377\377\0\0\0\377\256\0\0\0\377")

View File

@@ -1,21 +0,0 @@
require psplash.inc
require psplash-ua.inc
ALTERNATIVE_PRIORITY = "20"
# You can create your own pslash-poky-img.h by doing
# ./make-image-header.sh <file>.png POKY
# and rename the resulting .h to pslash-poky-img.h (for the logo)
# respectively psplash-bar-img.h (BAR) for the bar.
# You might also want to patch the colors (see patch)
SRC_URI += "\
file://psplash-18bpp.patch \
file://0001-configurability-for-rev-422.patch \
file://psplash-poky-img.h \
file://psplash-bar-img.h \
file://psplash-default \
file://splashfuncs \
file://psplash-init"
S = "${WORKDIR}/git"

View File

@@ -1,9 +0,0 @@
inherit update-alternatives
do_install_append() {
mv ${D}${bindir}/psplash ${D}${bindir}/psplash.${PN}
}
ALTERNATIVE_${PN} = "psplash"
ALTERNATIVE_LINK_NAME[psplash] = "${bindir}/psplash"
ALTERNATIVE_TARGET[psplash] = "${bindir}/psplash.${PN}"

View File

@@ -1,17 +0,0 @@
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"
SRC_URI = "file://zzapsplash-init"
PR = "r7"
do_install_prepend() {
install -d "${D}${sysconfdir}/init.d/"
install -m 0755 "${WORKDIR}/zzapsplash-init" "${D}${sysconfdir}/init.d/zzapsplash"
}
inherit update-rc.d
RRECOMMENDS_${PN} = "psplash-angstrom"
INITSCRIPT_NAME = "zzapsplash"
INITSCRIPT_PARAMS = "start 99 5 S ."

View File

@@ -1,52 +0,0 @@
DESCRIPTION = "Userspace framebuffer boot logo based on usplash."
HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/psplash"
SECTION = "base"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://psplash.h;md5=89004674feba6dcfe7fbb8baccb58205"
PROVIDES = "virtual/psplash"
RPROVIDES_${PN} = "virtual-psplash"
RCONFLICTS_${PN} = "exquisite"
SRCREV = "afd4e228c606a9998feae44a3fed4474803240b7"
PV = "0.1+git${SRCPV}"
PR = "r1"
SRC_URI = "git://git.yoctoproject.org/psplash;protocol=git"
# You can create your own pslash-poky-img.h by doing
# ./make-image-header.sh <file>.png POKY
# and rename the resulting .h to pslash-poky-img.h (for the logo)
# respectively psplash-bar-img.h (BAR) for the bar.
# You might also want to patch the colors (see patch)
inherit autotools pkgconfig update-rc.d
do_configure_append() {
install -m 0644 ${WORKDIR}/psplash-poky-img.h ${S}/
install -m 0644 ${WORKDIR}/psplash-bar-img.h ${S}/
if [ -e "${WORKDIR}/psplash.h" ]; then
install -m 0644 ${WORKDIR}/psplash.h ${S}/
fi
}
do_install_prepend() {
install -d ${D}/mnt/.splash/
install -d ${D}${sysconfdir}/default/
install -m 0644 ${WORKDIR}/psplash-default ${D}${sysconfdir}/default/psplash
install -d ${D}${sysconfdir}/init.d/
install -m 0755 ${WORKDIR}/psplash-init ${D}${sysconfdir}/init.d/psplash
install -d ${D}${bindir}
ln -s psplash-write ${D}${bindir}/splash-write
install -d ${D}${sysconfdir}/default
install -m 0755 ${WORKDIR}/splashfuncs ${D}${sysconfdir}/default/splashfuncs
}
INITSCRIPT_NAME = "psplash"
INITSCRIPT_PARAMS = "start 0 S . stop 20 0 1 6 ."
PACKAGES =+ "${PN}-support"
RDEPENDS_${PN} += "${PN}-support"
FILES_${PN}-support += "/mnt/.splash ${sysconfdir} ${bindir}/psplash-write ${bindir}/splash-write"