diff options
author | Sean Fox <dyntryx@gmail.com> | 2008-06-25 02:52:49 +0000 |
---|---|---|
committer | Sean Fox <dyntryx@gmail.com> | 2008-06-25 02:52:49 +0000 |
commit | a4f26c71a5cdc0047070488ea99f243b3cbf9e3e (patch) | |
tree | b251afbbe57cb78864be6b66f3e5c3f2f31fe402 /libnsgif.h | |
parent | c45ff6e96f4c87431a9e98394149212fd699703a (diff) | |
download | libnsgif-a4f26c71a5cdc0047070488ea99f243b3cbf9e3e.tar.gz libnsgif-a4f26c71a5cdc0047070488ea99f243b3cbf9e3e.tar.bz2 |
Improved functions handling gif extensions; added several constants for gif flags
svn path=/branches/dynis/libnsgif/; revision=4438
Diffstat (limited to 'libnsgif.h')
-rw-r--r-- | libnsgif.h | 17 |
1 files changed, 4 insertions, 13 deletions
@@ -39,18 +39,6 @@ typedef enum { GIF_FRAME_NO_DISPLAY = -6 } gif_result; -/* Maximum colour table size -*/ -#define GIF_MAX_COLOURS 256 - -/* Maximum LZW bits available -*/ -#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 { @@ -60,6 +48,9 @@ typedef struct gif_frame { 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 */ + char disposal_method; /**< how the previous frame should be disposed; affects plotting */ + bool transparency; /**< whether we acknoledge transparency */ + unsigned char transparency_index; /**< the index designating a transparent pixel */ unsigned int redraw_x; /**< x co-ordinate of redraw rectangle */ unsigned int redraw_y; /**< y co-ordinate of redraw rectangle */ unsigned int redraw_width; /**< width of redraw rectangle */ @@ -108,7 +99,7 @@ typedef struct gif_animation { unsigned int *local_colour_table; /**< local colour table */ int dirty_frame; /**< the current dirty frame, or -1 for none */ void *frame_image; /**< currently decoded image; stored as bitmap from bitmap_create callback */ - int current_error; /**< current error type, or 0 for none*/ + gif_result current_error; /**< current error type, or 0 for none*/ } gif_animation; gif_result gif_initialise(struct gif_animation *gif, gif_bitmap_callback_vt *bitmap_callbacks); |