Lines Matching defs:scanner
41 flatbed scanner under linux.
46 which is an LM9830 parallel-port scanner-on-a-chip.
86 scanner chip on the other side of the bridge. */
155 setup is an apparently scanner-specific sequence:
179 setup is an apparently scanner-specific sequence:
203 parallel-port scanner-on-a-chip.
449 int fd; /* scanner fd */
495 was the first time the scanner was plugged in, 0 afterward, and
537 /* Returns 1 if this was the first time the scanner was plugged in. */
720 /* This is the calibration routine Win2k goes through when the scanner is
850 scanner. */
931 /* Read in cal strip at bottom of scanner (to adjust gain/offset
985 regions (but there are only 2 on this scanner.)
1249 const int left_edge = 0x004b; /* Just for my scanner, or is this
1523 /* We have opened the device. Check that it is a USB scanner. */
1528 /* This is not a USB scanner, or SANE or the OS doesn't support it. */
1534 /* Make sure we have a CANON scanner */
1550 CANON_get_device_name (CANON_Handle * scanner)
1552 (void) scanner; /* Eliminate warning about unused parameters */
1558 CANON_finish_scan (CANON_Handle * scanner)
1561 if (scanner->fp)
1562 fclose (scanner->fp);
1563 scanner->fp = NULL;
1566 if (scanner->fname)
1568 DBG (4, "removing temp file %s\n", scanner->fname);
1569 unlink (scanner->fname);
1570 free (scanner->fname);
1572 scanner->fname = NULL;
1579 CANON_start_scan (CANON_Handle * scanner)
1586 scanner->fname = strdup ("/tmp/scan.XXXXXX");
1589 int fd = mkstemp (scanner->fname);
1595 rv = init (scanner->fd);
1602 || (scanner->flags & FLG_FORCE_CAL)) {
1603 plugin_cal (scanner);
1604 wait_for_return (scanner->fd);
1608 if ((status = scan (scanner)) != SANE_STATUS_GOOD)
1610 CANON_finish_scan (scanner);
1615 scanner->fp = fopen (scanner->fname, "r");
1616 DBG (4, "reading %s\n", scanner->fname);
1617 if (!scanner->fp)
1619 DBG (1, "open %s", scanner->fname);
1627 CANON_read (CANON_Handle * scanner, SANE_Byte * data,
1634 if (!scanner->fp)
1636 red_len = fread (data, 1, max_length, scanner->fp);
1647 if (feof (scanner->fp))
1658 CANON_finish_scan (scanner);