Lines Matching +full:scan +full:- +full:build
1 /* sane - Scanner Access Now Easy.
7 Parts copyright (C) 2001 Henning Meier-Geinitz <henning@meier-geinitz.de>
44 #define BUILD 2 macro
68 #include "umax1220u-common.c"
82 UMAX_Handle scan; member
94 0, /* Number of bytes returned per scan line: */
95 0, /* Number of pixels per scan line. */
96 0, /* Number of lines for the current scan. */
113 This read-only option returns the number of options available for
145 This option lets the user select the scan resolution. The UMAX
182 sanei_constrain_value (option->descriptor, (void *) &autoValue, info); in optionResolutionCallback()
200 This option lets the user select a gray scale scan
206 SANE_I18N ("Grayscale scan"),
207 SANE_I18N ("Do a grayscale rather than color scan"),
245 "lamp-off",
272 res = UMAX_set_lamp_state (&scanner->scan, UMAX_LAMP_OFF); in optionLampOffCallback()
290 This option controls the top-left-x corner of the scan
332 This option controls the top-left-y corner of the scan
374 This option controls the bot-right-x corner of the scan
417 This option controls the bot-right-y corner of the scan
498 ((op->descriptor->cap & SANE_CAP_SOFT_SELECT) == 0)) in dispatch_control_option()
502 ((op->descriptor->cap & SANE_CAP_SOFT_DETECT) == 0)) in dispatch_control_option()
506 ((op->descriptor->cap & SANE_CAP_AUTOMATIC) == 0)) in dispatch_control_option()
511 status = sanei_constrain_value (op->descriptor, value, &myinfo); in dispatch_control_option()
516 status = (op->callback) (op, handle, action, value, &myinfo); in dispatch_control_option()
527 UMAX_Handle scan; in attach_scanner() local
533 for (dev = first_dev; dev; dev = dev->next) in attach_scanner()
535 if (strcmp (dev->sane.name, devicename) == 0) in attach_scanner()
550 status = UMAX_open_device (&scan, devicename); in attach_scanner()
557 dev->name = strdup (devicename); in attach_scanner()
558 dev->sane.name = dev->name; in attach_scanner()
559 dev->sane.vendor = "UMAX"; in attach_scanner()
560 dev->sane.model = UMAX_get_device_name (&scan); in attach_scanner()
561 dev->sane.type = "flatbed scanner"; in attach_scanner()
562 UMAX_close_device (&scan); in attach_scanner()
565 dev->next = first_dev; in attach_scanner()
596 SANE_CURRENT_MAJOR, SANE_CURRENT_MINOR, BUILD, PACKAGE_STRING); in sane_init()
599 *version_code = SANE_VERSION_CODE (SANE_CURRENT_MAJOR, SANE_CURRENT_MINOR, BUILD); in sane_init()
607 /* no config-file: try /dev/scanner and /dev/usbscanner. */ in sane_init()
645 next = dev->next; in sane_exit()
646 free (dev->name); in sane_exit()
672 for (dev = first_dev; i < num_devices; dev = dev->next) in sane_get_devices()
673 devlist[i++] = &dev->sane; in sane_get_devices()
695 for (dev = first_dev; dev; dev = dev->next) in sane_open()
696 if (strcmp (dev->sane.name, devicename) == 0) in sane_open()
720 scanner->device = dev; in sane_open()
722 status = UMAX_open_device (&scanner->scan, dev->sane.name); in sane_open()
732 scanner->next = first_handle; in sane_open()
756 for (scanner = first_handle; scanner; scanner = scanner->next) in sane_close()
771 prev->next = scanner->next; in sane_close()
773 first_handle = scanner->next; in sane_close()
775 UMAX_close_device (&scanner->scan); in sane_close()
809 SANE_UNFIX (optionBotRightXValue - in sane_get_parameters()
812 SANE_UNFIX (optionBotRightYValue - in sane_get_parameters()
845 res = UMAX_set_scan_parameters (&scanner->scan, in sane_start()
851 SANE_UNFIX (optionBotRightXValue - in sane_start()
854 SANE_UNFIX (optionBotRightYValue - in sane_start()
863 if (scanner->scan.model == ASTRA_1220U) in sane_start()
864 return UMAX_start_scan (&scanner->scan); in sane_start()
866 return UMAX_start_scan_2100U (&scanner->scan); in sane_start()
883 if (scanner->scan.done) in sane_read()
885 res = UMAX_finish_scan (&scanner->scan); in sane_read()
887 if (scanner->scan.model == ASTRA_1220U) in sane_read()
888 res = UMAX_park_head (&scanner->scan); in sane_read()
890 res = UMAX_park_head_2100U (&scanner->scan); in sane_read()
899 while (!scanner->scan.done && (max_length >= 3)) in sane_read()
901 res = UMAX_get_rgb (&scanner->scan, rgb); in sane_read()
910 max_length -= 3; in sane_read()
916 while (!scanner->scan.done && max_length) in sane_read()
918 res = UMAX_get_rgb (&scanner->scan, rgb); in sane_read()
925 max_length--; in sane_read()