#include <stdio.h>
#include "PixelBuffer.h"
Go to the source code of this file.
|
void | create_gif (FILE *outfile, PixelBuffer *buffer, int dither, int sort, int interlace, int transparency) |
|
◆ MAX_GIFCOLORS
#define MAX_GIFCOLORS 256 |
◆ PPM_ASSIGN
#define PPM_ASSIGN |
( |
|
p, |
|
|
|
red, |
|
|
|
grn, |
|
|
|
blu |
|
) |
| (p) = ((pixel)(red) << 20) | ((pixel)(grn) << 10) | (pixel)(blu) |
◆ PPM_DEPTH
#define PPM_DEPTH |
( |
|
newp, |
|
|
|
p, |
|
|
|
oldmaxval, |
|
|
|
newmaxval |
|
) |
| |
Value:
((
int)
PPM_GETR(p) * (newmaxval) + (oldmaxval) / 2) / (oldmaxval), \
((
int)
PPM_GETG(p) * (newmaxval) + (oldmaxval) / 2) / (oldmaxval), \
((
int)
PPM_GETB(p) * (newmaxval) + (oldmaxval) / 2) / (oldmaxval))
Definition at line 35 of file gl2gif.h.
◆ PPM_EQUAL
#define PPM_EQUAL |
( |
|
p, |
|
|
|
q |
|
) |
| ((p) == (q)) |
◆ PPM_GETB
#define PPM_GETB |
( |
|
p | ) |
((p)&0x3ff) |
◆ PPM_GETG
#define PPM_GETG |
( |
|
p | ) |
(((p)&0xffc00) >> 10) |
◆ PPM_GETR
#define PPM_GETR |
( |
|
p | ) |
(((p)&0x3ff00000) >> 20) |
◆ PPM_LUMIN
◆ code_int
◆ count_int
◆ pixel
typedef unsigned long pixel |
◆ pixval
◆ create_gif()
void create_gif |
( |
FILE * |
outfile, |
|
|
PixelBuffer * |
buffer, |
|
|
int |
dither, |
|
|
int |
sort, |
|
|
int |
interlace, |
|
|
int |
transparency |
|
) |
| |