Lines Matching defs:gamma

147 static void gamma_n (double gamma, int brightness, int contrast,
218 /* Initialize gamma tables */
224 DBG (DL_MINOR_INFO, "%s: using 4*%d bytes for gamma table\n",
246 u_char *gamma;
248 gamma = (u_char*) malloc(ps->gamma_length * sizeof(u_char) * 2);
250 if (!gamma)
256 gamma_n (SANE_UNFIX(ps->gamma_gs), ps->bright, ps->contrast, gamma, ps->bpp, 1);
257 gamma_to_sane (ps->gamma_length, gamma, ps->gamma_table_gs);
259 gamma_n (SANE_UNFIX(ps->gamma_r), ps->bright, ps->contrast, gamma, ps->bpp, 1);
260 gamma_to_sane (ps->gamma_length, gamma, ps->gamma_table_r);
262 gamma_n (SANE_UNFIX(ps->gamma_g), ps->bright, ps->contrast, gamma, ps->bpp, 1);
263 gamma_to_sane (ps->gamma_length, gamma, ps->gamma_table_g);
265 gamma_n (SANE_UNFIX(ps->gamma_b), ps->bright, ps->contrast, gamma, ps->bpp, 1);
266 gamma_to_sane (ps->gamma_length, gamma, ps->gamma_table_b);
268 free (gamma);
289 /* gamma table computation */
290 static void gamma_n (double gamma, int brightness, int contrast,
294 double i_gamma = 1.0/gamma;
1330 /* Some epson scanners need the gamma table twice */
1335 /* 5150 needs the gamma table twice, with dtc = 0x04 for the second one */
1385 DBG (DL_DATA_TRACE, "%s: Sending 8bit gamma table for %d bpp\n", me, pss->bpp);
1394 DBG (DL_DATA_TRACE, "%s: Sending 16bit gamma table for %d bpp\n", me, pss->bpp);
1403 DBG (DL_DATA_TRACE, "%s: Sending 8bit gamma table for %d bpp\n", me, pss->bpp);
1413 DBG (DL_DATA_TRACE, "%s: Sending 16bit gamma table for %d bpp\n", me, pss->bpp);
1422 DBG (DL_DATA_TRACE, "%s: Sending 8bit gamma table for %d bpp\n", me, pss->bpp);
1430 DBG (DL_DATA_TRACE, "%s: Sending 8bit gamma table for %d bpp\n", me, pss->bpp);
1444 /* Use greyscale gamma for all rgb channels */
1482 /* Use greyscale gamma for all rgb channels */
1695 /* download the gamma and halftone tables */
2001 * Added 12 bit gamma tables for Epson Stylus CX-1500
2061 * Fix for allocation of gamma tables by Simon Munton
2090 * Send gamma table twice for Epson Perfection 1670
2281 * Added Scan Mode, Geometry, Enhancement and Advanced groups. Implemented brightness and contrast controls with gamma tables. Added Quality Calibration, Analog Gamma Bind, Custom Gamma and Gamma Vector GS,R,G,B options.
2535 * Now have RGB gamma correction and dispersed-dot dither halftoning
2537 * option interactions a bit better (e.g. halftoning and GS gamma