#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Defines | |
#define | BITS 12 |
#define | TSIZE 4096 |
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 byte * | ptr1 |
static byte * | ptr2 |
static int | CurCodeSize |
static int | CurMaxCode |
static long | CurBit |
#define BITS 12 |
Definition at line 7 of file gifdecode.c.
#define TSIZE 4096 |
Definition at line 8 of file gifdecode.c.
typedef unsigned char byte |
Definition at line 10 of file gifdecode.c.
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.
References b, BITS, BitsPixel, ClearCode, CurBit, CurCodeSize, CurMaxCode, EOFCode, fprintf(), FreeCode, i, IniCodeSize, long, OutCode, OutPixel(), Prefix, ptr1, ptr2, ReadCode(), Suffix, TSIZE, and x80.
int GIFinfo | ( | byte * | GIFarr, | |
int * | Width, | |||
int * | Height, | |||
int * | Ncols | |||
) |
static void OutPixel | ( | byte | pix | ) | [static] |
static int ReadCode | ( | ) | [static] |
Definition at line 22 of file gifdecode.c.
int CurCodeSize [static] |
Definition at line 19 of file gifdecode.c.
int CurMaxCode [static] |
Definition at line 19 of file gifdecode.c.
Definition at line 14 of file gifdecode.c.
int Prefix[TSIZE] [static] |
Definition at line 12 of file gifdecode.c.
Definition at line 16 of file gifdecode.c.
Definition at line 16 of file gifdecode.c.
Definition at line 13 of file gifdecode.c.