Lines Matching defs:Pixel
25 typedef union { unsigned char channels[4]; unsigned int val; } Pixel;
47 fwrite("\x13\0\0\0", 4, 1, file); // horz res, 2.835 pixel/meter
63 unsigned pixel = data[(height - y - 1) * width + x];
64 unsigned r = (pixel & 0xff) << 16;
65 unsigned b = (pixel & 0xff0000) >> 16;
66 pixel = (pixel & 0xff00ff00) | r | b;
67 fwrite(&pixel, sizeof(pixel), 1, file);
133 Pixel pixel;
140 pixel.channels[3] = 255;
143 pixel.channels[2] = fgetc(file);
144 pixel.channels[1] = fgetc(file);
145 pixel.channels[0] = fgetc(file);
146 *dest++ = TO_16BPP(pixel.val);
153 pixel.channels[2] = fgetc(file);
154 pixel.channels[1] = fgetc(file);
155 pixel.channels[0] = fgetc(file);
156 pixel.channels[3] = fgetc(file);
157 *dest++ = TO_16BPP(pixel.val);
168 pixel.channels[3] = pixel.channels[2] =
169 pixel.channels[1] = pixel.channels[0] = fgetc(file);
170 *dest++ = TO_16BPP(pixel.val);
180 pixel.channels[3] = 255;
187 pixel.channels[2] = fgetc(file);
188 pixel.channels[1] = fgetc(file);
189 pixel.channels[0] = fgetc(file);
191 *dest++ = TO_16BPP(pixel.val);
198 pixel.channels[2] = fgetc(file);
199 pixel.channels[1] = fgetc(file);
200 pixel.channels[0] = fgetc(file);
201 *dest++ = TO_16BPP(pixel.val);
215 pixel.channels[2] = fgetc(file);
216 pixel.channels[1] = fgetc(file);
217 pixel.channels[0] = fgetc(file);
218 pixel.channels[3] = fgetc(file);
220 *dest++ = TO_16BPP(pixel.val);
227 pixel.channels[2] = fgetc(file);
228 pixel.channels[1] = fgetc(file);
229 pixel.channels[0] = fgetc(file);
230 pixel.channels[3] = fgetc(file);
231 *dest++ = TO_16BPP(pixel.val);
262 Pixel * buffer = (Pixel *)malloc(size * sizeof(*buffer));
263 Pixel * previous = (Pixel *)data[0];
280 const Pixel * p = previous + t * w + s;
295 previous = (Pixel *)current;