Lines Matching defs:slope
2257 offset and slope inputs are -127 to +127
2259 slope rotates line around central input/output val,
2289 int slope, int offset)
2300 /* slope is converted to rise per unit run:
2304 * then multiply by the normal linear slope
2306 rise = tan((double)slope/127 * M_PI/2) * max_out_val / max_in_val;
3314 /* calculate the per pixel slope of pixel value delta over gain delta */
3326 /* limit this slope to 1 or less, to avoid overshoot if the lightcal ref input is clipped at 255 */
3336 /* keep track of the last iteration's pixel error. If we overshoot, we can reduce the value of the gain slope */
3367 /* gather statistics and calculate new fine gain parameters based on observed error and the value/gain slope */
3444 /* release the memory for the reference slope data */
3586 default is linear table of slope 1
3589 contrast rotates slope of line around central input val
3622 double b, slope, offset;
3648 /* contrast is converted to a slope [0,90] degrees:
3651 * then take the tangent to get slope (T.O.A)
3652 * then multiply by the normal linear slope
3654 slope = tan(((double)s->contrast+127)/254 * M_PI/2);
3656 /* contrast slope must stay centered, so figure
3658 offset = height/2 - slope*width/2;
3663 b = ((double)s->brightness/127) * (slope*(width-1) + offset);
3666 s->contrast, slope, offset);
3669 j=slope*i + offset + b;