// Name: gifdecod.h
// Purpose: wxGIFDecoder, GIF reader for wxImage and wxAnimation
// Author: Guillermo Rodriguez Garcia <guille@iies.es>
-// Version: 3.0
-// Last rev: 1999/08/10
-// Copyright: (c) Guillermo Rodriguez Garcia
+// Version: 3.02
+// CVS-ID: $Id$
+// Copyright: (c) 1999 Guillermo Rodriguez Garcia
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/setup.h"
-#if wxUSE_STREAMS
+#if wxUSE_STREAMS && wxUSE_GIF
+
#include "wx/stream.h"
#include "wx/image.h"
unsigned int left; /* x coord (in logical screen) */
unsigned int top; /* y coord (in logical screen) */
int transparent; /* transparent color (-1 = none) */
- int disposal; /* disposal method */
+ int disposal; /* disposal method (-1 = unspecified) */
long delay; /* delay in ms (-1 = unused) */
unsigned char *p; /* bitmap */
unsigned char *pal; /* palette */
/* error codes */
#define E_OK 0 /* everything was OK */
-#define E_ARCHIVO -1 /* error opening file */
-#define E_FORMATO -2 /* error in gif header */
-#define E_MEMORIA -3 /* error allocating memory */
-
+#define E_FORMATO 1 /* error in gif header */
+#define E_MEMORIA 2 /* error allocating memory */
-class wxGIFDecoder
+class WXDLLEXPORT wxGIFDecoder
{
private:
/* logical screen */
// constructor, destructor, etc.
wxGIFDecoder(wxInputStream *s, bool anim = FALSE);
~wxGIFDecoder();
+ bool CanRead();
int ReadGIF();
void Destroy();
};
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAM && wxUSE_GIF
#endif // _WX_GIFDECOD_H