235 lines
7.1 KiB
C
235 lines
7.1 KiB
C
/* GIMP header image file format (INDEXED): /home/guu/Pictures/logo50.h */
|
|
|
|
static unsigned int logo_width = 50;
|
|
static unsigned int logo_height = 50;
|
|
|
|
/* Call this macro repeatedly. After each use, the pixel data can be extracted */
|
|
|
|
#define HEADER_PIXEL(data,pixel) {\
|
|
pixel[0] = header_data_cmap[(unsigned char)data[0]][0]; \
|
|
pixel[1] = header_data_cmap[(unsigned char)data[0]][1]; \
|
|
pixel[2] = header_data_cmap[(unsigned char)data[0]][2]; \
|
|
data ++; }
|
|
|
|
static unsigned char header_data_cmap[17][3] = {
|
|
{ 0, 0, 0},
|
|
{ 36, 36, 36},
|
|
{ 63, 63, 63},
|
|
{ 84, 84, 84},
|
|
{103,103,103},
|
|
{120,120,120},
|
|
{135,135,135},
|
|
{150,150,150},
|
|
{163,163,163},
|
|
{176,176,176},
|
|
{189,189,189},
|
|
{201,201,201},
|
|
{213,213,213},
|
|
{224,224,224},
|
|
{235,235,235},
|
|
{245,245,245},
|
|
{255,255,255}
|
|
};
|
|
static unsigned char header_data[] = {
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,0,0,0,3,4,7,8,8,8,4,4,0,0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,3,8,12,16,16,16,16,16,16,16,16,16,16,14,10,
|
|
5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,6,
|
|
14,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,
|
|
16,15,8,2,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,7,15,16,
|
|
16,16,16,16,13,10,8,5,4,4,4,8,9,12,16,16,
|
|
16,16,16,16,9,1,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,3,13,16,16,16,
|
|
16,12,6,1,0,0,0,0,0,0,0,0,0,0,0,5,
|
|
10,16,16,16,16,15,5,0,0,0,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,0,0,7,16,16,16,16,10,
|
|
3,0,1,6,14,16,16,16,16,16,16,16,12,10,6,1,
|
|
0,1,8,15,16,16,16,11,1,0,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,0,10,16,16,16,13,4,0,
|
|
2,9,15,16,16,16,16,16,16,16,16,16,16,16,16,16,
|
|
10,4,0,2,11,16,16,16,13,1,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,10,16,16,16,9,0,1,9,
|
|
16,16,16,16,16,16,12,9,8,8,8,8,11,14,16,16,
|
|
16,16,12,2,0,5,15,16,16,13,1,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,10,16,16,16,6,0,5,15,16,
|
|
16,16,16,12,6,0,0,0,0,0,0,0,0,0,3,10,
|
|
16,16,16,16,8,0,3,15,16,16,13,1,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,8,16,16,16,4,0,8,16,16,16,
|
|
16,15,5,0,0,0,0,0,0,0,0,0,1,8,2,0,
|
|
3,13,16,16,16,11,1,1,13,16,16,12,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,4,16,16,16,6,0,10,16,16,16,16,
|
|
13,2,0,0,0,0,0,0,0,0,0,0,3,16,16,7,
|
|
0,1,13,16,16,16,13,1,3,15,16,16,8,0,0,0,
|
|
0,0,
|
|
0,0,0,0,1,14,16,16,8,0,9,16,16,16,16,15,
|
|
3,0,0,0,0,0,0,0,0,0,0,0,0,4,13,16,
|
|
8,0,3,15,16,16,16,13,0,4,16,16,16,3,0,0,
|
|
0,0,
|
|
0,0,0,0,8,16,16,12,0,5,16,16,16,16,16,6,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,13,
|
|
16,5,0,8,16,16,16,16,9,0,8,16,16,12,0,0,
|
|
0,0,
|
|
0,0,0,1,15,16,16,3,1,15,16,16,16,16,14,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
|
|
15,12,0,1,15,16,16,16,16,4,0,14,16,16,4,0,
|
|
0,0,
|
|
0,0,0,8,16,16,10,0,10,16,16,16,16,16,7,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
2,5,2,0,9,16,16,16,16,14,0,6,16,16,12,0,
|
|
0,0,
|
|
0,0,0,15,16,16,2,2,16,16,16,16,16,16,2,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,16,10,0,3,16,16,16,16,16,8,0,14,16,16,3,
|
|
0,0,
|
|
0,0,6,16,16,10,0,10,16,16,16,16,16,14,0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,5,2,0,0,14,16,16,16,16,14,0,6,16,16,9,
|
|
0,0,
|
|
0,0,10,16,16,5,1,16,16,16,16,16,16,9,0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,0,0,0,11,16,16,16,16,16,5,1,16,16,14,
|
|
0,0,
|
|
0,0,15,16,15,0,7,16,16,16,16,15,7,11,12,9,
|
|
5,0,3,0,0,0,0,1,10,12,9,5,9,16,16,14,
|
|
9,3,0,0,0,8,16,16,16,16,16,10,0,11,16,16,
|
|
3,0,
|
|
0,3,16,16,11,0,11,16,16,16,15,6,13,13,6,11,
|
|
16,13,10,16,13,5,1,13,15,7,10,15,15,6,16,16,
|
|
16,16,9,0,0,6,16,16,16,16,16,15,0,7,16,16,
|
|
7,0,
|
|
0,5,16,16,8,0,15,16,16,16,7,14,12,8,0,0,
|
|
8,16,9,14,16,9,13,14,10,0,0,5,16,12,10,16,
|
|
16,16,16,6,0,4,16,16,16,16,16,16,3,4,16,16,
|
|
9,0,
|
|
0,8,16,16,4,1,16,16,16,16,5,16,8,13,0,0,
|
|
1,14,14,10,16,6,16,8,16,0,0,0,11,16,3,8,
|
|
8,8,8,6,2,5,15,16,16,16,16,16,5,0,16,16,
|
|
12,0,
|
|
0,8,16,16,4,4,16,16,16,16,4,16,8,11,0,0,
|
|
0,9,16,8,16,4,16,12,13,0,0,0,5,16,6,16,
|
|
16,16,16,16,16,12,11,16,16,16,16,16,8,0,16,16,
|
|
12,0,
|
|
0,11,16,16,3,4,16,16,16,16,7,16,10,14,0,0,
|
|
0,12,16,8,16,6,16,10,16,2,0,0,8,16,8,16,
|
|
16,16,16,16,16,10,14,16,16,16,16,16,8,0,13,16,
|
|
12,0,
|
|
0,12,16,16,1,4,16,16,16,16,7,15,14,12,6,0,
|
|
1,14,12,12,16,7,14,16,11,12,0,0,11,15,4,8,
|
|
10,12,12,4,1,0,16,16,16,16,16,16,8,0,12,16,
|
|
12,0,
|
|
0,9,16,16,4,4,16,16,16,16,14,7,16,13,6,2,
|
|
13,16,7,16,10,1,4,16,14,14,3,11,16,7,15,16,
|
|
16,14,5,0,0,1,16,16,16,16,16,16,8,0,15,16,
|
|
12,0,
|
|
0,8,16,16,4,4,16,16,16,16,16,13,7,15,16,16,
|
|
15,5,2,1,0,0,0,4,14,16,16,15,6,10,12,9,
|
|
5,0,0,0,0,4,16,16,16,16,16,16,7,0,16,16,
|
|
12,0,
|
|
0,8,16,16,6,0,16,16,16,16,16,16,15,7,4,4,
|
|
0,0,0,0,0,3,8,8,3,3,4,0,0,0,0,0,
|
|
0,0,0,0,0,4,16,16,16,16,16,16,4,2,16,16,
|
|
11,0,
|
|
0,4,16,16,9,0,14,16,16,16,16,16,16,12,0,0,
|
|
0,0,0,2,11,16,16,16,16,12,2,0,0,0,0,0,
|
|
0,0,0,0,0,4,16,16,16,16,16,16,1,4,16,16,
|
|
8,0,
|
|
0,1,16,16,13,0,10,16,16,16,16,16,16,13,0,0,
|
|
0,0,7,15,16,16,16,16,16,16,16,10,4,0,0,0,
|
|
0,0,0,0,0,1,16,16,16,16,16,14,0,9,16,16,
|
|
5,0,
|
|
0,0,14,16,16,2,5,16,16,16,16,16,16,12,0,0,
|
|
1,13,16,16,16,16,16,16,16,16,16,16,16,12,0,0,
|
|
0,0,0,0,0,0,16,16,16,16,16,9,0,13,16,16,
|
|
1,0,
|
|
0,0,9,16,16,7,0,14,16,16,16,16,16,10,0,0,
|
|
10,14,9,14,16,16,16,16,16,16,11,6,6,16,7,0,
|
|
0,0,0,0,0,0,11,16,16,16,16,3,2,16,16,13,
|
|
0,0,
|
|
0,0,3,16,16,14,0,8,16,16,16,16,16,6,0,0,
|
|
11,13,2,0,2,4,4,4,3,0,0,5,13,16,6,1,
|
|
1,0,0,0,0,0,6,16,16,16,12,0,9,16,16,7,
|
|
0,0,
|
|
0,0,0,14,16,16,4,1,15,16,16,16,16,1,0,0,
|
|
1,13,16,12,8,8,8,8,8,12,15,16,16,9,0,11,
|
|
7,0,0,0,0,0,0,14,16,16,4,1,15,16,15,1,
|
|
0,0,
|
|
0,0,0,6,16,16,13,0,7,16,16,16,10,0,0,4,
|
|
14,4,8,16,16,16,16,16,16,16,16,10,2,1,10,16,
|
|
13,0,0,0,0,0,0,6,16,11,0,8,16,16,10,0,
|
|
0,0,
|
|
0,0,0,0,14,16,16,7,0,12,16,16,2,0,0,7,
|
|
16,16,6,4,12,16,16,16,16,12,4,1,9,15,16,16,
|
|
16,2,0,0,0,0,0,0,12,1,3,16,16,16,2,0,
|
|
0,0,
|
|
0,0,0,0,5,16,16,15,2,1,15,10,0,0,0,9,
|
|
16,16,16,6,0,4,11,10,6,0,7,15,16,16,16,16,
|
|
16,7,0,0,0,0,0,0,0,0,13,16,16,8,0,0,
|
|
0,0,
|
|
0,0,0,0,0,11,16,16,13,1,3,1,0,0,0,12,
|
|
16,16,16,16,10,3,0,1,5,12,16,16,16,16,16,16,
|
|
16,13,0,0,0,0,0,0,0,9,16,16,14,1,0,0,
|
|
0,0,
|
|
0,0,0,0,0,1,14,16,16,10,0,0,0,0,0,16,
|
|
16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,
|
|
16,16,2,0,0,0,0,0,6,16,16,16,3,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,3,15,16,16,10,0,0,0,3,16,
|
|
16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,
|
|
16,16,8,0,0,0,0,6,16,16,16,6,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,6,16,16,16,12,1,0,5,16,
|
|
16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,
|
|
16,16,14,0,0,0,9,16,16,16,10,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,6,16,16,16,14,4,0,3,
|
|
12,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,
|
|
16,14,6,0,2,12,16,16,16,10,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,0,3,15,16,16,16,10,2,
|
|
0,3,10,15,16,16,16,16,16,16,16,16,16,16,16,11,
|
|
5,0,1,8,15,16,16,16,7,0,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,0,0,2,13,16,16,16,16,
|
|
10,2,0,0,3,7,8,12,12,12,12,9,8,4,0,0,
|
|
1,8,15,16,16,16,15,4,0,0,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,8,15,16,16,
|
|
16,16,13,8,4,0,0,0,0,0,0,0,0,3,7,11,
|
|
16,16,16,16,16,9,1,0,0,0,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,2,10,16,
|
|
16,16,16,16,16,16,14,12,12,12,12,13,16,16,16,16,
|
|
16,16,16,10,2,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
|
|
7,14,16,16,16,16,16,16,16,16,16,16,16,16,16,16,
|
|
14,9,2,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,2,7,10,12,16,16,16,16,16,16,13,11,8,3,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
0,0
|
|
};
|