pike.git / src / modules / Image / togif.c

version» Context lines:

pike.git/src/modules/Image/togif.c:1:   /*      togif      Pontus Hagland, law@infovav.se    - $Id: togif.c,v 1.16 1997/09/01 14:18:17 per Exp $ + $Id: togif.c,v 1.17 1997/10/07 03:33:33 grubba Exp $      */      /*   **! module Image   **! note - **! $Id: togif.c,v 1.16 1997/09/01 14:18:17 per Exp $<br> + **! $Id: togif.c,v 1.17 1997/10/07 03:33:33 grubba Exp $<br>   **! class image   */      #include "global.h"      #include <math.h>   #include <ctype.h>      #include "stralloc.h"   #include "global.h"
pike.git/src/modules/Image/togif.c:82:   #define WEIGHT_DOWNBACK(X) (((X)*0)/20)      static int floyd_steinberg_add(rgbl_group *errl,    rgbl_group *errlfwd,    rgbl_group *errlback,    rgbl_group *err,    rgb_group rgb,    struct colortable *ct,    int closest)   { +  /* NOTE: +  * This code MUST be MT-SAFE! +  */    rgb_group rgb2,rgb3;    rgbl_group cerr;    int c;    rgb2.r=testrange((long)rgb.r+err->r/FS_SCALE);    rgb2.g=testrange((long)rgb.g+err->g/FS_SCALE);    rgb2.b=testrange((long)rgb.b+err->b/FS_SCALE);   #ifdef FS_DEBUG    fprintf(stderr,"%g,%g,%g+%g,%g,%g=%g,%g,%g ",    1.0*rgb.r, 1.0*rgb.g, 1.0*rgb.b,    err->r*1.0/FS_SCALE, err->g*1.0/FS_SCALE, err->b*1.0/FS_SCALE,