diff options
author | Sean Fox <dyntryx@gmail.com> | 2008-06-22 07:54:03 +0000 |
---|---|---|
committer | Sean Fox <dyntryx@gmail.com> | 2008-06-22 07:54:03 +0000 |
commit | 3f57700ce0383cf29528b1d9a1c8db6fcabe8f21 (patch) | |
tree | 814185d24ad35eebcd6f0f029621fa7b1280cc2e /libnsgif.h | |
parent | e1a2b0ad24d1d1284bd73c7f5afd43819dcd0cab (diff) | |
download | libnsgif-3f57700ce0383cf29528b1d9a1c8db6fcabe8f21.tar.gz libnsgif-3f57700ce0383cf29528b1d9a1c8db6fcabe8f21.tar.bz2 |
Made a constant for the GIF trailer (0x3b) so it's more obvious what that byte does
svn path=/branches/dynis/libnsgif/; revision=4416
Diffstat (limited to 'libnsgif.h')
-rw-r--r-- | libnsgif.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -33,6 +33,7 @@ #define GIF_INSUFFICIENT_DATA -3 #define GIF_DATA_ERROR -4 #define GIF_INSUFFICIENT_MEMORY -5 +#define GIF_FRAME_NO_DISPLAY -6 /* Maximum colour table size */ @@ -42,11 +43,16 @@ */ #define GIF_MAX_LZW 12 +/* 1-byte GIF Trailer "[indicates] the end of the GIF Data Stream" (fixed value: 0x3b) +*/ +#define GIF_TRAILER 0x3b + /* The GIF frame data */ typedef struct gif_frame { unsigned int frame_pointer; /**< offset (in bytes) to the GIF frame data */ unsigned int frame_delay; /**< delay (in cs) before animating the frame */ + bool display; /**< whether the frame should be displayed/animated */ bool virgin; /**< whether the frame has previously been used */ bool opaque; /**< whether the frame is totally opaque */ bool redraw_required; /**< whether a forcable screen redraw is required */ |