David Ward
a519a3529a
mustek_usb2: Replace STATUS type with SANE_Status
...
In some cases, a return value with type SANE_Status was assigned to a
variable with type STATUS. It is easiest to remove the redundant type
here.
2022-03-02 21:16:47 -05:00
Wolfram Sang
eb42ad08d5
treewide: use SANE_CURRENT_* macros consistently
...
Backends use a mixture of SANE_CURRENT_{MAJOR | MINOR} and V_{MAJOR |
MINOR} with all kind of permutations. I was confused by this and one
comment in pieusb.c tells me I was not alone. Some items in old
changelogs suggest to use the SANE_CURRENT_ macros in backends, so let's
switch to do that with the exception of net.c and dll.c. Done with:
$ find backend -name '*.[ch]' | xargs sed -i '/nearly every/ ! { s/\<V_M/SANE_CURRENT_M/g }'
$ git checkout backend/net.c backend/dll.c
And manually removing the comment from pieusb.c. Everything still builds
fine.
2021-06-08 19:01:41 +02:00
Olaf Meeuwissen
e79adde8b2
Use URL to refer users to copies of the GPL and LGPL
...
With the exception of use in three quotes as well as our inlcuded copy
of the GPL, all use of the Free Software Foundation's postal address
has been removed.
Re #320 .
2021-02-12 17:41:38 +09:00
Peter Marschall
493ed0a533
spelling fixes for mustek_usb2 backend
2020-08-29 09:18:03 +02:00
Olaf Meeuwissen
23891a2646
.editorconfig: trim trailing whitespace
2017-05-29 21:14:29 +09:00
Olaf Meeuwissen
220429ff9e
mustek_usb2: fix [-Wunused-but-set-variable] compiler warnings
2015-12-27 18:41:54 +09:00
m. allan noah
e6a249e042
revert mustek_usb2 backend upgrade
...
Instead of 100+ revert commits, I've lumped everything into a
single commit. This removes all of dedf0ac30
through db7f038f1
,
plus the parts of 497d59180
which were specific to mustek_usb2
2015-11-12 21:10:49 -05:00
Jan Hauffa
98248f6088
properly add new handle to linked list
2015-11-08 16:54:49 -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
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
e1c00bd9ab
Introduce SetMotorCurrentAndPhase for Microtek scanner, fix old bug in simplification of Mustek variant.
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
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
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
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
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
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
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
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
033ebe6d9b
Made error handling in mustek_usb2_asic.c more consistent.
2015-11-08 16:54:43 -05:00