Lines Matching refs:line_count
51 SANE_Word line_count;
134 for (line_count = 0; line_count < lines; line_count++)
157 ^ (!(line_count >
167 b[line_count * bpl + x] = value;
179 ^ (line_count > (SANE_Word) (p_size + 0.5)))
189 b[line_count * bpl + x + x1] = value;
196 ^ (line_count > (SANE_Int) (p_size + 0.5)))
204 b[line_count * bpl + x + x1] = color;
234 for (line_count = 0; line_count < lines; line_count++)
238 if (line_count >= lines / 2)
248 memset (b + line_count * bpl + x, 0x00, (size_t) width);
275 for (line_count = 0; line_count < lines; line_count++)
279 if (line_count % (pattern_size + pattern_distance)
291 if (line_count > (pattern_size + pattern_distance))
296 memset (b + line_count * bpl + x, color, (size_t) width);
324 for (line_count = 0; line_count < lines; line_count++)
328 if (line_count % (pattern_size + pattern_distance)
342 (SANE_Byte) (((line_count - pattern_distance)
349 b[line_count * bpl + x + x1 + 0] = pattern_lo;
350 b[line_count * bpl + x + x1 + 1] = pattern_hi;
354 b[line_count * bpl + x + x1 + 0] = pattern_hi;
355 b[line_count * bpl + x + x1 + 1] = pattern_lo;
386 for (line_count = 0; line_count < lines; line_count++)
391 if (line_count >= lines / 2)
408 b[line_count * bpl + x + x2 + 0] = color_r;
409 b[line_count * bpl + x + x2 + 1] = color_g;
410 b[line_count * bpl + x + x2 + 2] = color_b;
412 if (line_count < lines / 2)
453 for (line_count = 0; line_count < lines; line_count++)
458 if (line_count >= lines / 2)
476 b[line_count * bpl + x + x2] = color_r;
478 b[line_count * bpl + x + x2] = color_g;
480 b[line_count * bpl + x + x2] = color_b;
482 if (line_count < lines / 2)
520 for (line_count = 0; line_count < lines; line_count++)
524 if (line_count % (pattern_size + pattern_distance)
538 if ((line_count / (pattern_size + pattern_distance)) & 1)
545 if (line_count / (pattern_size + pattern_distance) < 2)
551 else if (line_count / (pattern_size + pattern_distance) < 4)
566 b[line_count * bpl + x + x1 + 0] = color_r;
567 b[line_count * bpl + x + x1 + 1] = color_g;
568 b[line_count * bpl + x + x1 + 2] = color_b;
600 for (line_count = 0; line_count < lines; line_count++)
604 if (line_count % (pattern_size + pattern_distance)
617 if ((line_count / (pattern_size + pattern_distance)) & 1)
623 if (line_count / (pattern_size + pattern_distance) < 2)
628 else if (line_count / (pattern_size + pattern_distance) < 4)
638 memset (b + line_count * bpl + x, color, (size_t) width);
667 for (line_count = 0; line_count < lines; line_count++)
671 if (line_count % (pattern_size + pattern_distance)
692 (((line_count + pattern_size)
726 b[line_count * bpl + x + x1 + 0] = color_lo_r;
727 b[line_count * bpl + x + x1 + 1] = color_hi_r;
728 b[line_count * bpl + x + x1 + 2] = color_lo_g;
729 b[line_count * bpl + x + x1 + 3] = color_hi_g;
730 b[line_count * bpl + x + x1 + 4] = color_lo_b;
731 b[line_count * bpl + x + x1 + 5] = color_hi_b;
735 b[line_count * bpl + x + x1 + 0] = color_hi_r;
736 b[line_count * bpl + x + x1 + 1] = color_lo_r;
737 b[line_count * bpl + x + x1 + 2] = color_hi_g;
738 b[line_count * bpl + x + x1 + 3] = color_lo_g;
739 b[line_count * bpl + x + x1 + 4] = color_hi_b;
740 b[line_count * bpl + x + x1 + 5] = color_lo_b;
772 for (line_count = 0; line_count < lines; line_count++)
776 if (line_count % (pattern_size + pattern_distance)
794 (((line_count + pattern_size)
826 b[line_count * bpl + x + x1 + 0] = color_lo;
827 b[line_count * bpl + x + x1 + 1] = color_hi;
831 b[line_count * bpl + x + x1 + 0] = color_hi;
832 b[line_count * bpl + x + x1 + 1] = color_lo;