+ virtual int DoGetImageCount(wxInputStream& stream);
+ virtual bool DoCanRead(wxInputStream& stream);
+
+ bool DoSaveFile(const wxImage&, wxOutputStream *, bool verbose,
+ bool first, int delayMilliSecs, bool loop,
+ const wxRGB *pal, int palCount,
+ int mask_index);
+#endif // wxUSE_STREAMS
+protected:
+
+ // Declarations for saving
+
+ unsigned long m_crntShiftDWord; /* For bytes decomposition into codes. */
+ int m_pixelCount;
+ struct GifHashTableType *m_hashTable;
+ wxInt16
+ m_EOFCode, /* The EOF LZ code. */
+ m_clearCode, /* The CLEAR LZ code. */
+ m_runningCode, /* The next code algorithm can generate. */
+ m_runningBits, /* The number of bits required to represent RunningCode. */
+ m_maxCode1, /* 1 bigger than max. possible code, in RunningBits bits. */
+ m_crntCode, /* Current algorithm code. */
+ m_crntShiftState; /* Number of bits in CrntShiftDWord. */
+ wxUint8 m_LZBuf[256]; /* Compressed input is buffered here. */
+
+ bool InitHashTable();
+ void ClearHashTable();
+ void InsertHashTable(unsigned long key, int code);
+ int ExistsHashTable(unsigned long key);
+
+#if wxUSE_STREAMS
+ bool CompressOutput(wxOutputStream *, int code);
+ bool SetupCompress(wxOutputStream *, int bpp);
+ bool CompressLine(wxOutputStream *, const wxUint8 *line, int lineLen);