+// --------------------------------------------------------------------------
+// constants
+// --------------------------------------------------------------------------
+
+// disposal method
+enum
+{
+ wxGIF_D_UNSPECIFIED = -1, /* not specified */
+ wxGIF_D_DONOTDISPOSE = 0, /* do not dispose */
+ wxGIF_D_TOBACKGROUND = 1, /* restore to background colour */
+ wxGIF_D_TOPREVIOUS = 2 /* restore to previous image */
+};
+
+// error codes
+enum
+{
+ wxGIF_OK = 0, /* everything was OK */
+ wxGIF_INVFORMAT = 1, /* error in gif header */
+ wxGIF_MEMERR = 2 /* error allocating memory */
+};
+
+#define MAX_BLOCK_SIZE 256 /* max. block size */
+
+
+// --------------------------------------------------------------------------
+// wxGIFDecoder class
+// --------------------------------------------------------------------------
+
+// internal class for storing GIF image data
+class GIFImage