#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) |
|
◆ ABS
#define ABS |
( |
|
x | ) |
((x) > 0 ? (x) : (-(x))) |
◆ BITS_PER_PRIM_COLOR
#define BITS_PER_PRIM_COLOR 5 |
◆ COLOR_ARRAY_SIZE
#define COLOR_ARRAY_SIZE 32768 |
◆ GIF_ERROR
◆ GIF_OK
◆ MAX_PRIM_COLOR
#define MAX_PRIM_COLOR 0x1f |
◆ byte
typedef unsigned char byte |
◆ GifColorType
typedef struct GifColorType GifColorType |
◆ NewColorMapType
typedef struct NewColorMapType NewColorMapType |
◆ QuantizedColorType
typedef struct QuantizedColorType QuantizedColorType |
◆ GIFquantize()
int GIFquantize |
( |
unsigned int |
Width, |
|
|
unsigned int |
Height, |
|
|
int * |
ColorMapSize, |
|
|
byte * |
RedInput, |
|
|
byte * |
GreenInput, |
|
|
byte * |
BlueInput, |
|
|
byte * |
OutputBuffer, |
|
|
GifColorType * |
OutputColorMap |
|
) |
| |
◆ SortCmpRtn()
static int SortCmpRtn |
( |
const void * |
Entry1, |
|
|
const void * |
Entry2 |
|
) |
| |
|
static |
◆ SubdivColorMap()
static int SubdivColorMap |
( |
NewColorMapType * |
NewColorSubdiv, |
|
|
unsigned int |
ColorMapSize, |
|
|
unsigned int * |
NewColorMapSize |
|
) |
| |
|
static |
◆ SortRGBAxis