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 |
Jan Hauffa
|
f89a7962de
|
Fix indentation.
|
2015-11-08 16:54:46 -05:00 |
Jan Hauffa
|
df045634cb
|
Misc fixes.
|
2015-11-08 16:54:46 -05:00 |
Jan Hauffa
|
86f399bd21
|
Code in mustek_usb2.c should not use global state of mustek_usb2_high.c.
|
2015-11-08 16:54:45 -05:00 |
Jan Hauffa
|
74effd61fd
|
Remove histogram stretching for negative images.
|
2015-11-08 16:54:45 -05:00 |
Jan Hauffa
|
4962b35abd
|
Use prefix 'p' instead of 'lp', fix other style issues.
|
2015-11-08 16:54:45 -05:00 |
Jan Hauffa
|
9e2aabc976
|
If g_isCanceled is true, the thread has already been canceled.
|
2015-11-08 16:54:45 -05:00 |
Jan Hauffa
|
a75bd3e8f7
|
Improve error handling in mustek_usb2_high.c.
|
2015-11-08 16:54:45 -05:00 |
Jan Hauffa
|
1d0f3ca42e
|
Fix remaining comments.
|
2015-11-08 16:54:45 -05:00 |
Jan Hauffa
|
9226162537
|
Normalize naming of constants, structures, and enums.
|
2015-11-08 16:54:45 -05:00 |
Jan Hauffa
|
d7ebb1553b
|
Remove USB host type enum.
|
2015-11-08 16:54:45 -05:00 |
Jan Hauffa
|
41ac627e5f
|
Get rid of unnecessary forward declarations.
|
2015-11-08 16:54:45 -05:00 |
Jan Hauffa
|
da64a1fc1e
|
First hack to build mustek_usb2* source files separately.
|
2015-11-08 16:54:45 -05:00 |
Jan Hauffa
|
3479acf538
|
Merge mustek_usb2_reflective/transparent.c into mustek_usb2_high.c.
|
2015-11-08 16:54:45 -05:00 |
Jan Hauffa
|
a45931dd11
|
Remove MustScanner_GetScannerState.
|
2015-11-08 16:54:44 -05:00 |
Jan Hauffa
|
c9516d5365
|
Merge Reflective_Reset, Transparent_Reset, and MustScanner_Prepare into new function MustScanner_Reset.
|
2015-11-08 16:54:44 -05:00 |
Jan Hauffa
|
b2f52afa32
|
Further cleanup of mustek_usb2.c.
|
2015-11-08 16:54:44 -05:00 |
Jan Hauffa
|
ccce2d4a9a
|
Further cleanup of mustek_usb2.c.
|
2015-11-08 16:54:44 -05:00 |
Jan Hauffa
|
39141a4c02
|
Return SANE_STATUS_UNSUPPORTED unconditionally in sane_set_io_mode and sane_get_select_fd.
|
2015-11-08 16:54:44 -05:00 |
Jan Hauffa
|
d9c1df0bb8
|
Remove vestigial support for custom gamma tables.
|
2015-11-08 16:54:44 -05:00 |
Jan Hauffa
|
acf84e0c94
|
Clean up function StopScan.
|
2015-11-08 16:54:44 -05:00 |
Jan Hauffa
|
9158d10df9
|
Further simplification of MustScanner_Get*Line functions.
|
2015-11-08 16:54:44 -05:00 |
Jan Hauffa
|
1f6b405451
|
First attempt at simplifying the Get*Line functions.
|
2015-11-08 16:54:44 -05:00 |
Jan Hauffa
|
a6b15f18cc
|
Break remaining long lines.
|
2015-11-08 16:54:44 -05:00 |
Jan Hauffa
|
25242ff9c8
|
Clean up mustek_usb2_high.c.
|
2015-11-08 16:54:44 -05:00 |
Jan Hauffa
|
c8982a9939
|
Do not use prefix "by" for byte variable names.
|
2015-11-08 16:54:44 -05:00 |
Jan Hauffa
|
d7b4e02780
|
Use SANE_Status and SANE_TRUE/SANE_FALSE consistently.
|
2015-11-08 16:54:44 -05:00 |
Jan Hauffa
|
8b3c78838a
|
Create common helper function for Asic_CarriageHome and Asic_MotorMove, remove MotorBackHome.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
ed5dc8a7cd
|
Further refactoring of Asic_SetWindow.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
82a40d5dca
|
Refactoring of Asic_SetWindow.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
93a79af5d3
|
Fix indentation.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
b43f0688db
|
Use symbolic constants in more places.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
3c87b646b5
|
First attempt at merging Asic_SetCalibrate into Asic_SetWindow.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
033ebe6d9b
|
Made error handling in mustek_usb2_asic.c more consistent.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
96c6ee1dae
|
Cleaned up firmware state handling.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
c1f22ef9a9
|
Clean up Asic_SetCalibrate, make Asic_SetCalibrate and Asic_SetWindow more similar.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
3cd05dacca
|
Refactoring the smaller high level ASIC functions.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
de5b647c4a
|
Refactored medium level ASIC functions.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
693da258ce
|
Move some definitions from mustek_usb2_asic.h to more appropriate headers.
|
2015-11-08 16:54:43 -05:00 |
Jan Hauffa
|
2776b336d1
|
Simplify LLFSetMotorCurrentAndPhase.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
dea59ee824
|
Refactored all low-level motor functions except LLFSetMotorCurrentAndPhase.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
e47fee8dcc
|
Simplified computation of motor current, removed a redundant register assignment.
|
2015-11-08 16:54:42 -05:00 |
Jan Hauffa
|
5688a78ace
|
Simplify low-level ASIC functions, add missing error checks.
|
2015-11-08 16:54:42 -05:00 |