Wykres commitów

8448 Commity (38153b33e1657137e6956e63a9fcb76d665f86f2)

Autor SHA1 Wiadomość Data
Olaf Meeuwissen 38153b33e1 Fix "discards 'const' qualifier from pointer target type" warning
The device2 variable is not modified so let's make that clear.
2015-11-11 22:41:42 +09:00
Olaf Meeuwissen d2576bbb94 Fix "discards 'const' qualifier from pointer target type" warnings
The cs3_xfree() functions is really just a checked call to free() so its
signature has been changed to match that.  The warnings that causes have
been fixed in the same way and on the same grounds as the previous commit.
2015-11-11 22:41:33 +09:00
Olaf Meeuwissen e65fd1b4cb Fix "discards 'const' qualifier from pointer target type" warnings
The resources pointed to have been acquired by the backend.  It is safe
to cast away the 'const' qualifier when releasing these resources.
2015-11-11 22:41:22 +09:00
m. allan noah 497d591806 automake for recent changes
updates to mustek_usb2, canon_dr and umax_pp require automake run
2015-11-08 17:17:37 -05:00
Jan Hauffa db7f038f10 Fix a bug introduced during refactoring that caused discolored stripes to appear at the left and right sides of the scan area. 2015-11-08 16:54:49 -05:00
Jan Hauffa a64477bf1a Remove USB 2.0 mode, as it causes horrible backtracking for resolutions > 300 dpi. 2015-11-08 16:54:49 -05:00
Jan Hauffa 98248f6088 properly add new handle to linked list 2015-11-08 16:54:49 -05:00
Jan Hauffa 3b48a6d105 fix integer overflow bug in image data conversion 2015-11-08 16:54:49 -05:00
Jan Hauffa d0ea79f000 Add model-specific functions for computing the number of motor steps. 2015-11-08 16:54:49 -05:00
Jan Hauffa 15fbbf60a6 Split SetMotorSteps into a function that computes the number of steps for the various motor states and and a function that writes the step counts to the controller's registers. 2015-11-08 16:54:49 -05:00
Jan Hauffa 70dcfa4ced Simplify SetMotorStepTable*. 2015-11-08 16:54:49 -05:00
Jan Hauffa 27b636d294 Provide model-specific function for computing the motor current. 2015-11-08 16:54:49 -05:00
Jan Hauffa 8f405f5a93 Update motor table generation according to new dumps. 2015-11-08 16:54:48 -05:00
Jan Hauffa 2fa054456e Detect USB controller type. 2015-11-08 16:54:48 -05:00
Jan Hauffa d8a203a693 Add function to compute scan motor table for 4800H48U, rearrange code in Asic_SetWindow. 2015-11-08 16:54:48 -05:00
Jan Hauffa ceb7d29690 Fix some misuse of SENSOR_DPI constant. 2015-11-08 16:54:48 -05:00
Jan Hauffa 30e3907156 Allow for model-specific parameters in mustek_usb2_high.c. 2015-11-08 16:54:48 -05:00
Jan Hauffa 47c56e3f19 Add some motor-related code for the Microtek 4800H48U. 2015-11-08 16:54:48 -05:00
Jan Hauffa 7b26e0e3fa Simplify SimpleMotorMove. 2015-11-08 16:54:48 -05:00
Jan Hauffa 0a1125895b Add some information about the values retrieved by GetChipStatus. 2015-11-08 16:54:48 -05:00
Jan Hauffa c691b02241 Remove restriction to 8-bit color in negative mode.
The only reason for that restriction was that the histogram stretching code, which has been removed earlier, could only handle 8-bit color.
2015-11-08 16:54:48 -05:00
Jan Hauffa 4ced7a900a Improve debug logging and fix a bug in TestDRAM. 2015-11-08 16:54:48 -05:00
Jan Hauffa e1c00bd9ab Introduce SetMotorCurrentAndPhase for Microtek scanner, fix old bug in simplification of Mustek variant. 2015-11-08 16:54:48 -05:00
Jan Hauffa 96b4950499 Register related fixes. 2015-11-08 16:54:48 -05:00
Jan Hauffa 5d556cd5e6 Introduce structure for specifying model-specific parameters on the ASIC level. 2015-11-08 16:54:48 -05:00
Jan Hauffa 529b6a1d6d Fix bug in device list handling. 2015-11-08 16:54:47 -05:00
Jan Hauffa 877f250b5c Resolve issue with debug logging. 2015-11-08 16:54:47 -05:00
Jan Hauffa 272c1d6fde Add preliminary model entry for the Microtek 4800H48U. 2015-11-08 16:54:47 -05:00
Jan Hauffa 7fda9bbf93 Introduce support for multiple scanners.
Keep all state local and ensure that all resources are freed by sane_exit. Ensure that each function returns only those error codes that are valid according to the SANE standard.
2015-11-08 16:54:47 -05:00
Jan Hauffa 6865eaf6ed Simplify sane_read, other fixes to mustek_usb2.c. 2015-11-08 16:54:47 -05:00
Jan Hauffa 63793907e2 Minor fixes to image processing. 2015-11-08 16:54:47 -05:00
Jan Hauffa bc203e8aa1 Sanitize option handling and add support for scanner buttons. 2015-11-08 16:54:47 -05:00
Jan Hauffa b2b3cf767a Use standard macros for byte swapping. 2015-11-08 16:54:47 -05:00
Jan Hauffa 281f53aa18 Remaining endian safety fixes. 2015-11-08 16:54:47 -05:00
Jan Hauffa 80b7249ebf Resolve minor thread safety problem. 2015-11-08 16:54:47 -05:00
Jan Hauffa de84f51270 Simplify row stride calculation in Asic_SetWindow(). 2015-11-08 16:54:47 -05:00
Jan Hauffa 7cd88d4122 Remove Scanner_ScanSuggest. 2015-11-08 16:54:47 -05:00
Jan Hauffa 3f5592ef8e Move global state variables of mustek_usb2_high.c into scanner structure. 2015-11-08 16:54:47 -05:00
Jan Hauffa 60a244ed1e Store size of shading table in ASIC structure. 2015-11-08 16:54:46 -05:00
Jan Hauffa ed1997b22f Do not test for NULL before calling free(). 2015-11-08 16:54:46 -05:00
Jan Hauffa 35c6a52834 Fix error propagation in mustek_usb2_high.c and a layering violation. 2015-11-08 16:54:46 -05:00
Jan Hauffa babee51689 Fix indentation of debug macros. 2015-11-08 16:54:46 -05:00
Jan Hauffa c0e44738a4 Simplify debug output in mustek_usb2.c. 2015-11-08 16:54:46 -05:00
Jan Hauffa c377a02453 Simplify debug output in mustek_usb2_high.c. 2015-11-08 16:54:46 -05:00
Jan Hauffa eebbe92c4e Simplify debug logging in mustek_usb2_asic.c. 2015-11-08 16:54:46 -05:00
Jan Hauffa 2c712f27c9 Remove uninformative function name prefixes, move gamma table creation into separate function. 2015-11-08 16:54:46 -05:00
Jan Hauffa c1dc16d709 Extensive changes to reduce the amount of global variables in mustek_usb2_high.c.
Might have made MustScanner_SetupScan less readable, though.
2015-11-08 16:54:46 -05:00
Jan Hauffa 9444bf1156 Reorganize some MustScanner_* functions. 2015-11-08 16:54:46 -05:00
Jan Hauffa bd7107ca05 Remove some unneeded global variables from mustek_usb2_high.c. 2015-11-08 16:54:46 -05:00
Jan Hauffa 589d6e15ee Endian-safe macros; moved remaining ASIC state into structure. 2015-11-08 16:54:46 -05:00