#include <stdio.h>
#include <stdlib.h>
|
int | GIFquantize (unsigned int Width, unsigned int Height, int *ColorMapSize, byte *RedInput, byte *GreenInput, byte *BlueInput, byte *OutputBuffer, GifColorType *OutputColorMap) |
|
static int | SortCmpRtn (const void *Entry1, const void *Entry2) |
|
static int | SubdivColorMap (NewColorMapType *NewColorSubdiv, unsigned int ColorMapSize, unsigned int *NewColorMapSize) |
|
#define ABS |
( |
|
x | ) |
((x) > 0 ? (x) : (-(x))) |
#define BITS_PER_PRIM_COLOR 5 |
#define COLOR_ARRAY_SIZE 32768 |
#define MAX_PRIM_COLOR 0x1f |
typedef unsigned char byte |
typedef struct GifColorType GifColorType |
typedef struct NewColorMapType NewColorMapType |
typedef struct QuantizedColorType QuantizedColorType |
int GIFquantize |
( |
unsigned int |
Width, |
|
|
unsigned int |
Height, |
|
|
int * |
ColorMapSize, |
|
|
byte * |
RedInput, |
|
|
byte * |
GreenInput, |
|
|
byte * |
BlueInput, |
|
|
byte * |
OutputBuffer, |
|
|
GifColorType * |
OutputColorMap |
|
) |
| |
static int SortCmpRtn |
( |
const void * |
Entry1, |
|
|
const void * |
Entry2 |
|
) |
| |
|
static |
static int SubdivColorMap |
( |
NewColorMapType * |
NewColorSubdiv, |
|
|
unsigned int |
ColorMapSize, |
|
|
unsigned int * |
NewColorMapSize |
|
) |
| |
|
static |