home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Graphics / Anim2gif-GUI / WhirlGif / src.201-sasc / whirlgif.h < prev   
C/C++ Source or Header  |  1996-11-01  |  2KB  |  122 lines

  1.  
  2. /*
  3.  * whirlgif.h
  4.  *
  5.  * Copyright (C) 1995,1996 by Kevin Kadow
  6.  * Copyright (C) 1990,1991,1992 by Mark Podlipec. 
  7.  * All rights reserved.
  8.  *
  9.  * This software may be freely copied, modified and redistributed
  10.  * without fee provided that this copyright notice is preserved 
  11.  * intact on all copies and modified copies.
  12.  * 
  13.  * There is no warranty or other guarantee of fitness of this software.
  14.  * It is provided solely "as is". The author(s) disclaim(s) all
  15.  * responsibility and liability with respect to this software's usage
  16.  * or its effect upon hardware or computer systems.
  17.  *
  18.  */
  19.  
  20. /* Default amount of inter-frame time */
  21. #define DEFAULT_TIME 10
  22. /* If set to 1, Netscape 'loop' code will be added by default */
  23. #define DEFAULT_LOOP 0
  24. /* If set to 1, use the colormaps from all images, not just the first */
  25. #define DEFAULT_USE_COLORMAP 0
  26.  
  27. #include <stdio.h>
  28.  
  29. #define BIGSTRING 256
  30. #define LONG int
  31. #define ULONG unsigned int
  32. #define BYTE char
  33. #define UBYTE unsigned char
  34. #define SHORT short
  35. #define USHORT unsigned short
  36. #define WORD short int
  37. #define UWORD unsigned short int
  38.  
  39. #ifndef TRUE
  40. #define TRUE 1
  41. #endif
  42. #ifndef FALSE
  43. #define FALSE 0
  44. #endif
  45.  
  46. /* Used in calculating the transparent color */
  47. #define TRANS_NONE 1
  48. #define TRANS_RGB 2
  49. #define TRANS_MAP 3
  50.  
  51. #define DISP_NONE 0
  52. #define DISP_NOT  1
  53. #define DISP_BACK 2
  54. #define DISP_PREV 4
  55. /* set default disposal method here to any of the DISP_XXXX values */
  56. #define DEFAULT_DISPOSAL DISP_NONE
  57.  
  58. typedef struct
  59. {
  60.  int type;
  61.  UBYTE valid;
  62.  UBYTE map;
  63.  UBYTE red;
  64.  UBYTE green;
  65.  UBYTE blue;
  66.  } Transparency;
  67.  
  68. typedef struct
  69. {
  70.  Transparency trans;
  71.  int left;
  72.  int top;
  73.  unsigned int time;
  74.  unsigned short disposal;
  75. } Global;
  76.  
  77. typedef struct
  78. {
  79.  int width;
  80.  int height;
  81.  UBYTE m;
  82.  UBYTE cres;
  83.  UBYTE pixbits;
  84.  UBYTE bc;
  85. } GIF_Screen_Hdr; 
  86.  
  87. typedef union 
  88. {
  89.  struct
  90.  {
  91.   UBYTE red;
  92.   UBYTE green;
  93.   UBYTE blue;
  94.   UBYTE pad;
  95.  } cmap;
  96.  ULONG pixel;
  97. } GIF_Color;
  98.  
  99. typedef struct
  100. {
  101.  int left;
  102.  int top;
  103.  int width;
  104.  int height;
  105.  UBYTE m;
  106.  UBYTE i;
  107.  UBYTE pixbits;
  108.  UBYTE reserved;
  109. } GIF_Image_Hdr;
  110.  
  111. typedef struct 
  112. {
  113.  UBYTE valid;
  114.  UBYTE data;
  115.  UBYTE first;
  116.  UBYTE res;
  117.  int last;
  118. } GIF_Table;
  119.  
  120.  
  121. #include "whirlgif_protos.h"
  122.