Lines Matching refs:color

141 	      SANE_Byte color = 0;
159 color = 0x0;
161 color = 0x1;
164 color = (rand ()) & 0x01;
165 value |= (SANE_Byte) (color << x1);
180 color = 0x0;
182 color = 0x1;
185 color = (rand ()) & 0x01;
186 value |= (SANE_Byte) (color << x1);
197 color = 0x00;
199 color = 0xff;
201 color = (SANE_Byte) ((rand ()) & 0xff);
204 b[line_count * bpl + x + x1] = color;
286 SANE_Byte color;
292 color =
295 color = (SANE_Byte) ((x / (pattern_size + pattern_distance)) & 0xff);
296 memset (b + line_count * bpl + x, color, (size_t) width);
366 /* 1 bit color */
382 DBG (3, "(child) init_picture_buffer: drawing color lineart test "
389 SANE_Byte color = 0, color_r = 0, color_g = 0, color_b = 0;
392 color = 7;
402 color_b = (color & 1) * 0xff;
403 color_g = ((color >> 1) & 1) * 0xff;
404 color_r = ((color >> 2) & 1) * 0xff;
414 ++color;
415 if (color >= 8)
416 color = 0;
420 if (color == 0)
421 color = 8;
422 --color;
433 /* 1 bit color three-pass */
449 DBG (3, "(child) init_picture_buffer: drawing color lineart three-pass "
456 SANE_Byte color = 0, color_r = 0, color_g = 0, color_b = 0;
459 color = 7;
469 color_b = (color & 1) * 0xff;
470 color_g = ((color >> 1) & 1) * 0xff;
471 color_r = ((color >> 2) & 1) * 0xff;
484 ++color;
485 if (color >= 8)
486 color = 0;
490 if (color == 0)
491 color = 8;
492 --color;
501 /* 8 bit color */
517 DBG (3, "(child) init_picture_buffer: drawing 8 bit color test picture "
531 SANE_Byte color = 0, color_r = 0, color_g = 0, color_b = 0;
539 color =
543 color = (SANE_Byte) ((x / ((pattern_size + pattern_distance) * 3)) & 0xff);
547 color_r = color;
554 color_g = color;
561 color_b = color;
581 /* 8 bit color three-pass */
597 DBG (3, "(child) init_picture_buffer: drawing 8 bit color three-pass "
611 SANE_Byte color = 0;
618 color = (SANE_Byte)
621 color = (SANE_Byte) ((x / (pattern_size + pattern_distance)) & 0xff);
626 color = 0x00;
631 color = 0x00;
636 color = 0x00;
638 memset (b + line_count * bpl + x, color, (size_t) width);
647 /* 16 bit color */
664 "(child) init_picture_buffer: drawing 16 bit color test picture "
753 /* 16 bit color three-pass */
769 DBG (3, "(child) init_picture_buffer: drawing 16 bit color three-pass "