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

version» Context lines:

pike.git/src/modules/Image/layers.c:1:   /*   **! module Image   **! note - **! $Id: layers.c,v 1.64 2001/03/26 21:15:22 mirar Exp $ + **! $Id: layers.c,v 1.65 2001/03/27 12:30:22 grubba Exp $   **! class Layer   **! see also: layers   **!      **!   **!   **! <add_appendix name="layers" title="Image.Layer modes">   **! <dl compact>   **! <dt><i>The variables in the expression:</i>   **! <dt>L<dd><i>The active layer</i>
pike.git/src/modules/Image/layers.c:209:   **! }   **!   **! </execute>   **! </add_appendix>   */      #include "global.h"      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.64 2001/03/26 21:15:22 mirar Exp $"); + RCSID("$Id: layers.c,v 1.65 2001/03/27 12:30:22 grubba Exp $");      #include "image_machine.h"      #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "array.h"
pike.git/src/modules/Image/layers.c:797:    double h, l, s;    int min, max;    int delta;       r = color.r;    g = color.g;    b = color.b;       if (r > g)    { -  max = MAX (r, b); -  min = MIN (g, b); +  max = MAXIMUM(r, b); +  min = MINIMUM(g, b);    }    else    { -  max = MAX (g, b); -  min = MIN (r, b); +  max = MAXIMUM(g, b); +  min = MINIMUM(r, b);    }       l = (max + min) / 2.0;       if (max == min)    {    s = 0.0;    h = 0.0;    }    else