gif_consume_comment
} gstate;
+/* "Disposal" method indicates how the image should be handled in the
+ framebuffer before the subsequent image is displayed. */
+typedef enum
+{
+ DISPOSE_NOT_SPECIFIED = 0,
+ DISPOSE_KEEP = 1, /* Leave it in the framebuffer */
+ DISPOSE_OVERWRITE_BGCOLOR = 2, /* Overwrite with background color */
+ DISPOSE_OVERWRITE_PREVIOUS = 3 /* Save-under */
+} gdispose;
+
struct GIFFrameReader {
/* LZW decoder state machine */
unsigned char *stackp; /* Current stack pointer */
unsigned int x_offset, y_offset; /* With respect to "screen" origin */
unsigned int height, width;
int tpixel; /* Index of transparent pixel */
- WebCore::RGBA32Buffer::FrameDisposalMethod disposal_method; /* Restore to background, leave in place, etc.*/
+ gdispose disposal_method; /* Restore to background, leave in place, etc.*/
unsigned char *local_colormap; /* Per-image colormap */
int local_colormap_size; /* Size of local colormap array. */
x_offset = y_offset = width = height = 0;
tpixel = 0;
- disposal_method = WebCore::RGBA32Buffer::DisposeNotSpecified;
+ disposal_method = DISPOSE_NOT_SPECIFIED;
local_colormap = 0;
local_colormap_size = 0;