Parent Directory | Revision Log | Patch
revision 367 by astrand, Fri Mar 14 12:00:17 2003 UTC | revision 368 by matthewc, Wed Apr 16 13:48:17 2003 UTC | |
---|---|---|
# | Line 402 translate24to32(uint8 * data, uint32 * o | Line 402 translate24to32(uint8 * data, uint32 * o |
402 | uint32 pixel = 0; | uint32 pixel = 0; |
403 | while (out < end) | while (out < end) |
404 | { | { |
405 | memcpy(&pixel, data, 3); | pixel = *(data++); |
406 | data += 3; | pixel |= *(data++) << 8; |
407 | pixel |= *(data++) << 16; | |
408 | *(out++) = pixel; | *(out++) = pixel; |
409 | } | } |
410 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |