Line 0
Link Here
|
|
|
1 |
--- fbquant.c.orig |
2 |
+++ fbquant.c |
3 |
@@ -131,6 +131,10 @@ |
4 |
|
5 |
int outtype = DEF_8BIT; /* Output format desired */ |
6 |
|
7 |
+static void clr_quantize (FBM *input, FBM *output, COLOR *cmap, int colors); |
8 |
+static void split_box (PIXEL *box, int boxlen, int clr, int numclr, COLOR *cmap); |
9 |
+static void load_config (char *filenm); |
10 |
+ |
11 |
/**************************************************************** |
12 |
* main |
13 |
****************************************************************/ |
14 |
@@ -319,8 +323,7 @@ |
15 |
* load_config: Read a series of fixed/ignore color settings from a file |
16 |
****************************************************************/ |
17 |
|
18 |
-load_config (filenm) |
19 |
-char *filenm; |
20 |
+static void load_config (char *filenm) |
21 |
{ FILE *infile = NULL; |
22 |
char buf[BUFSIZ]; |
23 |
int aindx, ard, agr, abl; /* Get 'i' arguments from sscanf */ |
24 |
@@ -530,10 +533,7 @@ |
25 |
* algorithm. |
26 |
****************************************************************/ |
27 |
|
28 |
-split_box (box, boxlen, clr, numclr, cmap) |
29 |
-PIXEL *box; |
30 |
-int boxlen, clr, numclr; |
31 |
-COLOR *cmap; |
32 |
+static void split_box (PIXEL *box, int boxlen, int clr, int numclr, COLOR *cmap) |
33 |
{ int maxv[3], minv[3], numv[3]; |
34 |
int pcnt[3][CUBSID]; |
35 |
int sbox, snum, split, half, maxdif, dif; |
36 |
@@ -841,10 +841,7 @@ |
37 |
* clr_quantize: Do Floyd Steinberg quantizing on the image |
38 |
****************************************************************/ |
39 |
|
40 |
-clr_quantize (input, output, cmap, colors, fmap, fixedcolors) |
41 |
-FBM *input, *output; |
42 |
-COLOR *cmap, *fmap; |
43 |
-int colors, fixedcolors; |
44 |
+static void clr_quantize (FBM *input, FBM *output, COLOR *cmap, int colors) |
45 |
{ int **cerr, **lerr, **terr; |
46 |
int width = input->hdr.cols, height = input->hdr.rows; |
47 |
int rowlen = input->hdr.rowlen, plnlen = input->hdr.plnlen; |