]> git.saurik.com Git - wxWidgets.git/commitdiff
Performance optimizations
authorGuillermo Rodriguez Garcia <guille@iies.es>
Wed, 8 Dec 1999 14:39:28 +0000 (14:39 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Wed, 8 Dec 1999 14:39:28 +0000 (14:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gifdecod.h

index 922ac29777b62124ee176d565932a9bfc71d6cba..3d4fb9bc0eb489c5160c9016cde6395f2e585994 100644 (file)
@@ -50,6 +50,8 @@ typedef struct _IMAGEN
 #define E_FORMATO       1           /* error in gif header */
 #define E_MEMORIA       2           /* error allocating memory */
 
 #define E_FORMATO       1           /* error in gif header */
 #define E_MEMORIA       2           /* error allocating memory */
 
+#define MAX_BLOCK_SIZE  256         /* max. block size */
+
 class WXDLLEXPORT wxGIFDecoder
 {
 private:
 class WXDLLEXPORT wxGIFDecoder
 {
 private:
@@ -70,6 +72,8 @@ private:
     int           m_restbits;       /* remaining valid bits */
     unsigned int  m_restbyte;       /* remaining bytes in this block */
     unsigned int  m_lastbyte;       /* last byte read */
     int           m_restbits;       /* remaining valid bits */
     unsigned int  m_restbyte;       /* remaining bytes in this block */
     unsigned int  m_lastbyte;       /* last byte read */
+    unsigned char m_buffer[MAX_BLOCK_SIZE];     /* buffer for reading */
+    unsigned char *m_bufp;          /* pointer to next byte in buffer */
 
     wxInputStream *m_f;             /* input file */
 
 
     wxInputStream *m_f;             /* input file */