home *** CD-ROM | disk | FTP | other *** search
- /* internal.h
- * AUTHOR: Cy Booker, cy@cheepnis.demon.co.uk
- * LICENSE: FreeWare, Copyright (c) 1995 Cy Booker
- * PURPOSE: common code
- */
-
- #ifndef internal_h
- #define internal_h
-
-
-
- #include "16bpp_48bit.h"
-
- #include "gif2rpc:map16bpp.h"
-
-
-
- #define INPUT \
- t = palette[rove[x]]; /* source pixel palette entry */\
- red = (t >> (1 * 8)) & 0xff; red |= red << 8; /* scale to internal representation */\
- grn = (t >> (2 * 8)) & 0xff; grn |= grn << 8;\
- blu = (t >> (3 * 8)) & 0xff; blu |= blu << 8
-
-
-
- #define PROCESS \
- t = (*fn)(&error, red, grn, blu);\
- *(((short *)rove) + x) = t; /* write pixel */\
- red = error.colour.red; /* error */\
- grn = error.colour.grn;\
- blu = error.colour.blu
-
-
-
- #endif /* internal_h */
-