ROOT  6.06/08
Reference Guide
Macros | Typedefs | Functions | Variables
gifdecode.c File Reference
#include <stdio.h>
#include <string.h>
+ Include dependency graph for gifdecode.c:

Go to the source code of this file.

Macros

#define BITS   12 /* largest code size */
 
#define TSIZE   4096 /* tables size */
 

Typedefs

typedef unsigned char byte
 

Functions

static int ReadCode ()
 
static void OutPixel (byte pix)
 
int GIFinfo (byte *GIFarr, int *Width, int *Height, int *Ncols)
 
int GIFdecode (byte *GIFarr, byte *PIXarr, int *Width, int *Height, int *Ncols, byte *R, byte *G, byte *B)
 

Variables

static int Prefix [TSIZE]
 
static byte Suffix [TSIZE]
 
static byte OutCode [TSIZE]
 
static byteptr1
 
static byteptr2
 
static int CurCodeSize
 
static int CurMaxCode
 
static long CurBit
 

Macro Definition Documentation

§ BITS

#define BITS   12 /* largest code size */

Definition at line 7 of file gifdecode.c.

Referenced by GIFdecode().

§ TSIZE

#define TSIZE   4096 /* tables size */

Definition at line 8 of file gifdecode.c.

Referenced by GIFdecode().

Typedef Documentation

§ byte

typedef unsigned char byte

Definition at line 10 of file gifdecode.c.

Function Documentation

§ GIFdecode()

int GIFdecode ( byte GIFarr,
byte PIXarr,
int *  Width,
int *  Height,
int *  Ncols,
byte R,
byte G,
byte B 
)

Definition at line 149 of file gifdecode.c.

Referenced by TGX11::ReadGIF(), and TGWin32::ReadGIF().

§ GIFinfo()

int GIFinfo ( byte GIFarr,
int *  Width,
int *  Height,
int *  Ncols 
)

Definition at line 80 of file gifdecode.c.

Referenced by TGX11::ReadGIF(), and TGWin32::ReadGIF().

§ OutPixel()

static void OutPixel ( byte  pix)
static

Definition at line 60 of file gifdecode.c.

Referenced by GIFdecode().

§ ReadCode()

static int ReadCode ( )
static

Definition at line 27 of file gifdecode.c.

Referenced by GIFdecode().

Variable Documentation

§ CurBit

long CurBit
static

Definition at line 22 of file gifdecode.c.

Referenced by GIFdecode(), and ReadCode().

§ CurCodeSize

int CurCodeSize
static

Definition at line 19 of file gifdecode.c.

Referenced by GIFdecode(), and ReadCode().

§ CurMaxCode

int CurMaxCode
static

Definition at line 19 of file gifdecode.c.

Referenced by GIFdecode(), and ReadCode().

§ OutCode

byte OutCode[TSIZE]
static

Definition at line 14 of file gifdecode.c.

Referenced by GIFdecode().

§ Prefix

int Prefix[TSIZE]
static

Definition at line 12 of file gifdecode.c.

Referenced by GIFdecode().

§ ptr1

byte* ptr1
static

Definition at line 16 of file gifdecode.c.

Referenced by GIFdecode(), GIFinfo(), and ReadCode().

§ ptr2

byte * ptr2
static

Definition at line 16 of file gifdecode.c.

Referenced by GIFdecode(), and OutPixel().

§ Suffix

byte Suffix[TSIZE]
static

Definition at line 13 of file gifdecode.c.

Referenced by GIFdecode().