/[public]/psiconv/trunk/lib/psiconv/image.c
ViewVC logotype

Contents of /psiconv/trunk/lib/psiconv/image.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 239 - (show annotations)
Thu Mar 4 21:55:40 2004 UTC (16 years, 2 months ago) by frodo
File MIME type: text/plain
File size: 18425 byte(s)
(Frodo) Bug fixes
  * Image colors correction (scale 0.0 to 1.0, instead of 0.0 to less-than 1.0)
  * Bullet and indentation docs update
  * Update version number

1 /*
2 image.h - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 2003-2004 Frodo Looijaard <frodol@dds.nl>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 /* This file contains definitions used internally by
21 generate_image.c and parse_image.c */
22
23 #include "config.h"
24 #include "compat.h"
25
26 #include <psiconv/image.h>
27
28 #define PALET_NONE_LEN 0
29
30 psiconv_pixel_floats_t psiconv_palet_none =
31 {
32 PALET_NONE_LEN,
33 NULL,
34 NULL,
35 NULL
36 };
37
38 #define PALET_COLOR_4_LEN 16
39 static float palet_color_4_red[PALET_COLOR_4_LEN] =
40 { 0x00/255.0, 0x55/255.0, 0x80/255.0, 0x80/255.0, /* 0x00 */
41 0x00/255.0, 0xff/255.0, 0x00/255.0, 0xff/255.0, /* 0x04 */
42 0xff/255.0, 0x00/255.0, 0x00/255.0, 0x80/255.0, /* 0x08 */
43 0x00/255.0, 0x00/255.0, 0xaa/255.0, 0xff/255.0 /* 0x0c */
44 };
45
46 static float palet_color_4_green[PALET_COLOR_4_LEN] =
47 { 0x00/255.0, 0x55/255.0, 0x00/255.0, 0x80/255.0, /* 0x00 */
48 0x80/255.0, 0x00/255.0, 0xff/255.0, 0xff/255.0, /* 0x04 */
49 0x00/255.0, 0xff/255.0, 0xff/255.0, 0x00/255.0, /* 0x08 */
50 0x00/255.0, 0x80/255.0, 0xaa/255.0, 0xff/255.0 /* 0x0c */
51 };
52
53 static float palet_color_4_blue[PALET_COLOR_4_LEN] =
54 { 0x00/255.0, 0x55/255.0, 0x00/255.0, 0x00/255.0, /* 0x00 */
55 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x04 */
56 0xff/255.0, 0x00/255.0, 0xff/255.0, 0x80/255.0, /* 0x08 */
57 0x80/255.0, 0x80/255.0, 0xaa/255.0, 0xff/255.0 /* 0x0c */
58 };
59
60 psiconv_pixel_floats_t psiconv_palet_color_4 =
61 {
62 PALET_COLOR_4_LEN,
63 palet_color_4_red,
64 palet_color_4_green,
65 palet_color_4_blue,
66 };
67
68 #define PALET_COLOR_8_LEN 256
69 static float palet_color_8_red[PALET_COLOR_8_LEN] =
70 { 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0x00 */
71 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0x04 */
72 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0x08 */
73 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0x0c */
74 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0x10 */
75 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0x14 */
76 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0x18 */
77 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0x1c */
78 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0x20 */
79 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0x24 */
80 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0x28 */
81 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0x2c */
82 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0x30 */
83 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0x34 */
84 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0x38 */
85 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0x3c */
86 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0x40 */
87 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0x44 */
88 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0x48 */
89 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0x4c */
90 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0x50 */
91 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0x54 */
92 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0x58 */
93 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0x5c */
94 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0x60 */
95 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0x64 */
96 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0x68 */
97 0x11/255.0, 0x22/255.0, 0x44/255.0, 0x55/255.0, /* 0x6c */
98 0x77/255.0, 0x11/255.0, 0x22/255.0, 0x44/255.0, /* 0x70 */
99 0x55/255.0, 0x77/255.0, 0x00/255.0, 0x00/255.0, /* 0x74 */
100 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x78 */
101 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x7c */
102 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x80 */
103 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x84 */
104 0x00/255.0, 0x00/255.0, 0x88/255.0, 0xaa/255.0, /* 0x88 */
105 0xbb/255.0, 0xdd/255.0, 0xee/255.0, 0x88/255.0, /* 0x8c */
106 0xaa/255.0, 0xbb/255.0, 0xdd/255.0, 0xee/255.0, /* 0x90 */
107 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0x94 */
108 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0x98 */
109 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0x9c */
110 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0xa0 */
111 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0xa4 */
112 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0xa8 */
113 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0xac */
114 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0xb0 */
115 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0xb4 */
116 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0xb8 */
117 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0xbc */
118 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0xc0 */
119 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0xc4 */
120 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0xc8 */
121 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0xcc */
122 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0xd0 */
123 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0xd4 */
124 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0xd8 */
125 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0xdc */
126 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0xe0 */
127 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0xe4 */
128 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0xe8 */
129 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0xec */
130 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0, /* 0xf0 */
131 0x00/255.0, 0x33/255.0, 0x66/255.0, 0x99/255.0, /* 0xf4 */
132 0xcc/255.0, 0xff/255.0, 0x00/255.0, 0x33/255.0, /* 0xf8 */
133 0x66/255.0, 0x99/255.0, 0xcc/255.0, 0xff/255.0 /* 0xfc */
134 };
135
136 static float palet_color_8_green[PALET_COLOR_8_LEN] =
137 { 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x00 */
138 0x00/255.0, 0x00/255.0, 0x33/255.0, 0x33/255.0, /* 0x04 */
139 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0x08 */
140 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0x0c */
141 0x66/255.0, 0x66/255.0, 0x99/255.0, 0x99/255.0, /* 0x10 */
142 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0x14 */
143 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0x18 */
144 0xcc/255.0, 0xcc/255.0, 0xff/255.0, 0xff/255.0, /* 0x1c */
145 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0x20 */
146 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x24 */
147 0x00/255.0, 0x00/255.0, 0x33/255.0, 0x33/255.0, /* 0x28 */
148 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0x2c */
149 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0x30 */
150 0x66/255.0, 0x66/255.0, 0x99/255.0, 0x99/255.0, /* 0x34 */
151 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0x38 */
152 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0x3c */
153 0xcc/255.0, 0xcc/255.0, 0xff/255.0, 0xff/255.0, /* 0x40 */
154 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0x44 */
155 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x48 */
156 0x00/255.0, 0x00/255.0, 0x33/255.0, 0x33/255.0, /* 0x4c */
157 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0x50 */
158 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0x54 */
159 0x66/255.0, 0x66/255.0, 0x99/255.0, 0x99/255.0, /* 0x58 */
160 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0x5c */
161 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0x60 */
162 0xcc/255.0, 0xcc/255.0, 0xff/255.0, 0xff/255.0, /* 0x64 */
163 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0x68 */
164 0x11/255.0, 0x22/255.0, 0x44/255.0, 0x55/255.0, /* 0x6c */
165 0x77/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x70 */
166 0x00/255.0, 0x00/255.0, 0x11/255.0, 0x22/255.0, /* 0x74 */
167 0x44/255.0, 0x55/255.0, 0x77/255.0, 0x00/255.0, /* 0x78 */
168 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x7c */
169 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x80 */
170 0x00/255.0, 0x88/255.0, 0xaa/255.0, 0xbb/255.0, /* 0x84 */
171 0xdd/255.0, 0xee/255.0, 0x00/255.0, 0x00/255.0, /* 0x88 */
172 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x88/255.0, /* 0x8c */
173 0xaa/255.0, 0xbb/255.0, 0xdd/255.0, 0xee/255.0, /* 0x90 */
174 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x94 */
175 0x00/255.0, 0x00/255.0, 0x33/255.0, 0x33/255.0, /* 0x98 */
176 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0x9c */
177 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0xa0 */
178 0x66/255.0, 0x66/255.0, 0x99/255.0, 0x99/255.0, /* 0xa4 */
179 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0xa8 */
180 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0xac */
181 0xcc/255.0, 0xcc/255.0, 0xff/255.0, 0xff/255.0, /* 0xb0 */
182 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0xb4 */
183 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0xb8 */
184 0x00/255.0, 0x00/255.0, 0x33/255.0, 0x33/255.0, /* 0xbc */
185 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0xc0 */
186 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0xc4 */
187 0x66/255.0, 0x66/255.0, 0x99/255.0, 0x99/255.0, /* 0xc8 */
188 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0xcc */
189 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0xd0 */
190 0xcc/255.0, 0xcc/255.0, 0xff/255.0, 0xff/255.0, /* 0xd4 */
191 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0xd8 */
192 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0xdc */
193 0x00/255.0, 0x00/255.0, 0x33/255.0, 0x33/255.0, /* 0xe0 */
194 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0xe4 */
195 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0xe8 */
196 0x66/255.0, 0x66/255.0, 0x99/255.0, 0x99/255.0, /* 0xec */
197 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0xf0 */
198 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0xf4 */
199 0xcc/255.0, 0xcc/255.0, 0xff/255.0, 0xff/255.0, /* 0xf8 */
200 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0xfc */
201 };
202
203 static float palet_color_8_blue[PALET_COLOR_8_LEN] =
204 { 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x00 */
205 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x04 */
206 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x08 */
207 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x0c */
208 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x10 */
209 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x14 */
210 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x18 */
211 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x1c */
212 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x20 */
213 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0x24 */
214 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0x28 */
215 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0x2c */
216 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0x30 */
217 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0x34 */
218 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0x38 */
219 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0x3c */
220 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0x40 */
221 0x33/255.0, 0x33/255.0, 0x33/255.0, 0x33/255.0, /* 0x44 */
222 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0x48 */
223 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0x4c */
224 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0x50 */
225 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0x54 */
226 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0x58 */
227 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0x5c */
228 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0x60 */
229 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0x64 */
230 0x66/255.0, 0x66/255.0, 0x66/255.0, 0x66/255.0, /* 0x68 */
231 0x11/255.0, 0x22/255.0, 0x44/255.0, 0x55/255.0, /* 0x6c */
232 0x77/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x70 */
233 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x74 */
234 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x11/255.0, /* 0x78 */
235 0x22/255.0, 0x44/255.0, 0x55/255.0, 0x77/255.0, /* 0x7c */
236 0x88/255.0, 0xaa/255.0, 0xbb/255.0, 0xdd/255.0, /* 0x80 */
237 0xee/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x84 */
238 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x00/255.0, /* 0x88 */
239 0x00/255.0, 0x00/255.0, 0x00/255.0, 0x88/255.0, /* 0x8c */
240 0xaa/255.0, 0xbb/255.0, 0xdd/255.0, 0xee/255.0, /* 0x90 */
241 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0x94 */
242 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0x98 */
243 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0x9c */
244 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0xa0 */
245 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0xa4 */
246 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0xa8 */
247 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0xac */
248 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0xb0 */
249 0x99/255.0, 0x99/255.0, 0x99/255.0, 0x99/255.0, /* 0xb4 */
250 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0xb8 */
251 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0xbc */
252 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0xc0 */
253 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0xc4 */
254 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0xc8 */
255 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0xcc */
256 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0xd0 */
257 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0xd4 */
258 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, 0xcc/255.0, /* 0xd8 */
259 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0xdc */
260 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0xe0 */
261 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0xe4 */
262 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0xe8 */
263 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0xec */
264 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0xf0 */
265 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0xf4 */
266 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0xf8 */
267 0xff/255.0, 0xff/255.0, 0xff/255.0, 0xff/255.0, /* 0xfc */
268 };
269
270 psiconv_pixel_floats_t psiconv_palet_color_8 =
271 {
272 PALET_COLOR_8_LEN,
273 palet_color_8_red,
274 palet_color_8_green,
275 palet_color_8_blue,
276 };
277

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26