p4est  1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hw32.h
Go to the documentation of this file.
1 /* GIMP header image file format (RGB) */
2 
8 #ifdef P4EST_ENABLE_DEBUG
9 static unsigned int width = 32;
10 static unsigned int height = 32;
11 #endif
12 
13 /* Call this macro repeatedly. After each use, the pixel data can be extracted */
14 
16 #define HW32_HEADER_PIXEL(data,pixel) {\
17 pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \
18 pixel[1] = ((((data[1] - 33) & 0xF) << 4) | ((data[2] - 33) >> 2)); \
19 pixel[2] = ((((data[2] - 33) & 0x3) << 6) | ((data[3] - 33))); \
20 data += 4; \
21 }
22 
23 static const char *hw32_header_data =
24  "````````````````````````````````````````````````````````````````"
25  "````````````````````````````````````````````````````````````````"
26  "````````````````````````````````````````````````````````````````"
27  "````````````````````````````````````````````````````````````````"
28  "````````````````````````````````````````````````````````````````"
29  "````````````````````````````````````````````````````````````````"
30  "````````````````````````````````````````````````````````````````"
31  "````````````````````````````````````````````````````````````````"
32  "````````````````````````````````````````````````````````````````"
33  "````````````````````````````````````````````````````````````````"
34  "````````````````````````````````````````````````````````````````"
35  "````````````!!!!````````!!!!````````````````````````````````````"
36  "````````````````!!!!````````````````!!!!````````````````````````"
37  "````````````!!!!````````!!!!````````````````````````````````````"
38  "````````````````!!!!````````````````!!!!````````````````````````"
39  "````````````!!!!````````!!!!````````````````````````````````````"
40  "````````````````!!!!````````````````!!!!````````[OLK45V.$1U.,3UN"
41  "S=H*````````!!!!````````!!!!````````Y/$A0T]`$!Q-1%\"!Y?(B````````"
42  "````````````````!!!!!!!!!!!!!!!!!!!!!!!!````````76F:I+#A_0DYNL;W"
43  ",CYO````````!!!!````````!!!!````````45V.?8FZ]@(R>X>X5&\"1````````"
44  "````````````````!!!!````````````````!!!!````````%R-4!!!!!!!!!!!!"
45  "!A)#````````!!!!````````!!!!````````%\"!1\\_`P````\\O\\O%2%2````````"
46  "````````````````!!!!````````````````!!!!````````%B)3Z?8F````````"
47  "````````````!!!!````````!!!!````````%\"!1\\_`P````\\O\\O%2%2````````"
48  "````````````````!!!!````````````````!!!!````````7VN<7VN<[OLKYO,C"
49  "76F:````````!!!!````````!!!!````````45V.@(R]]P,S?8FZ5&\"1````````"
50  "````````````````!!!!````````````````!!!!````````\\?XN7FJ;%2%2)3%B"
51  "KKKK````````!!!!````````!!!!````````Y/$A0T]`#QM,1%\"!Y?(B````````"
52  "````````````````````````````````````````````````````````````````"
53  "````````````````````````````````````````````````````````````````"
54  "````````````````````````````````````````````````````````````````"
55  "````````````````````````````````````````````````````````````````"
56  "````````````````````````````````````````````````````````````````"
57  "````````````````````````````````````````````````````````````````"
58  "````````````````````````````````````````````````````````````````"
59  "````````````````````````````````````````````````````````````````"
60  "````````````````````````````````````````````````````````````````"
61  "````````````````````````````!!!!````````````````````````!!!!````"
62  "````(R]@W.D9````````.T=X````````W>H:(R]@````````````````````````"
63  "````````````````````````````!!!!````````````````````````!!!!````"
64  "````8FZ?G:G:````X>X>!!!!V>86````HJ[?8V^@````````````````````````"
65  "````````````````````````````!!!!````````````````````````!!!!````"
66  "````HJ[?7FJ;````HZ_@$1U.E*#1````9W.DHJ[?````Y/$A0T]`$!Q-1%\"!Y?(B"
67  "````````!!!!DI[/(\"Q=!1%\"````!!!!````````XN\\?.45V#QM,>X>X!!!!````"
68  "````X>X>'RM<````9'\"ABY?(3UN,````*S=HXN\\?````45V.?8FZ]@(R>X>X5&\"1"
69  "````````!!!!:'2E[OLK````````!!!!````````45V.@(R]]@(R?8FZ!!!!````"
70  "````````(2U>X.T=-T-T_0DY(2U>ZO<G(BY?````````%\"!1\\_`P````\\O\\O%2%2"
71  "````````!!!!\\_`P````````````!!!!````````$Q]0\\_`P````\\_`P!!!!````"
72  "````````8&R=A9'\"6F:7````6666=X.T86V>````````%\"!1\\_`P````\\O\\O%2%2"
73  "````````!!!!````````````````!!!!````````$Q]0\\_`P````\\_`P!!!!````"
74  "````````H*S=%2%2HZ_@````HJ[?#AI+H*S=````````45V.@(R]]P,S?8FZ5&\"1"
75  "````````!!!!````````````````!!!!````````45V.@(R]]P,S?8FZ!!!!````"
76  "````````W^P<!!!!ZO<G````ZO<G!!!!X.T=````````Y/$A0T]`#QM,1%\"!Y?(B"
77  "````````!!!!````````````````!!!!````````XN\\?.45V#QM,>X>X!!!!````"
78  "````````````````````````````````````````````````````````````````"
79  "````````````````````````````````````````````````````````````````"
80  "````````````````````````````````````````````````````````````````"
81  "````````````````````````````````````````````````````````````````"
82  "````````````````````````````````````````````````````````````````"
83  "````````````````````````````````````````````````````````````````"
84  "````````````````````````````````````````````````````````````````"
85  "````````````````````````````````````````````````````````````````"
86  "````````````````````````````````````````````````````````````````"
87  "````````````````````````````````````````````````````````````````"
88  "";
static const char * hw32_header_data
The image data is encoded as a C string.
Definition: hw32.h:23