Lines Matching refs:scan

441             fb630u calibration and scan
451 int width, height; /* at scan resolution */
461 #define FLG_BUF 0x04 /* save scan to buffer instead of file */
464 #define FLG_PPM_HEADER 0x10 /* include PPM header in scan file */
494 /* Scanner init, called at calibration and scan time. Returns 1 if this
555 /* Do the scan and save the resulting image as r,g,b interleaved PPM
596 /* begin scan */
608 DBG (12, "scan line %d %dk\n", line, datasize - 1);
609 /* Read may cause scan head to move */
698 DBG (6, "created scan file %s\n", s->fname);
872 Interestingly, the scan head never moves, no matter how many rows
970 /* Repeatedly send this every 1 second. Button scan? FIXME */
983 strip widths; I try to figure out the regions based on the scan data.
1198 /* 8.5in at 600dpi = 5104 pixels in scan head
1244 scan coordinates in 600-dpi pixels */
1246 scan (CANON_Handle * opt)
1336 scan resolution. 0-position is 0x004b */
1338 /* Data pixel end. Measured at 600dpi regardless of scan
1437 CANON_set_scan_parameters (CANON_Handle * scan,
1479 scan->resolution = res;
1480 scan->x1 = left;
1481 scan->x2 = right - /* subtract 1 pixel */ 600 / scan->resolution;
1482 scan->y1 = top;
1483 scan->y2 = bottom;
1484 scan->gain = gain;
1485 scan->gamma = gamma;
1486 scan->flags = forceCal ? FLG_FORCE_CAL : 0;
1493 CANON_close_device (CANON_Handle * scan)
1496 sanei_usb_close (scan->fd);
1502 CANON_open_device (CANON_Handle * scan, const char *dev)
1510 scan->fname = NULL;
1511 scan->fp = NULL;
1512 scan->flags = 0;
1514 res = sanei_usb_open (dev, &scan->fd);
1524 if (sanei_usb_get_vendor_product (scan->fd, &vendor, &product) !=
1529 sanei_usb_close (scan->fd);
1530 scan->fd = -1;
1539 sanei_usb_close (scan->fd);
1540 scan->fd = -1;
1585 /* choose a temp file name for scan data */
1586 scanner->fname = strdup ("/tmp/scan.XXXXXX");
1607 /* scan */
1608 if ((status = scan (scanner)) != SANE_STATUS_GOOD)