Lines Matching defs:slope
231 - rewrite contrast slope math for readability
6194 default is linear table of slope 1 or 1/4 resp.
6197 contrast rotates slope of line around central input val
6221 double b, slope, offset;
6239 /* contrast is converted to a slope [0,90] degrees:
6242 * then take the tangent to get slope (T.O.A)
6243 * then multiply by the normal linear slope
6245 slope = tan(((double)s->contrast+127)/254 * M_PI/2) * 256/bytes;
6247 /* contrast slope must stay centered, so figure
6249 offset = 127.5-(slope*bytes/2);
6257 s->contrast, slope, offset);
6273 j=slope*i + offset + b;