Wykres commitów

5926 Commity (c28c9843ed12f0fe2697d66c3dad724f68d0e576)

Autor SHA1 Wiadomość Data
Ralph Little 7946a14cfb po: Added en_GB translations.
Note: also fixed a minor grammar point in the pixma backend.
2021-01-24 10:04:47 -08:00
Ordissimo 6f90442641 Fix sleep mode 2021-01-24 07:17:36 +00:00
Thierry HUCHARD 9dd8319a01 Utilise MakeAndModel pour le device au hack. 2021-01-17 17:23:56 +01:00
Ordissimo af445c2e9c Fix syntax in escl.conf.in 2021-01-16 22:11:36 +00:00
Thierry HUCHARD 4b6418476e Allows to activate the hack from the configuration file, only the first form supports it. 2021-01-16 23:01:31 +01:00
Thierry HUCHARD cb8b6d2ace Fixed variable initialization. 2021-01-16 09:06:01 +01:00
Thierry HUCHARD b24907c8a9 Fix scanjob for LaserJet FlowMFP M578 and LaserJet MFP M630. 2021-01-16 09:03:14 +01:00
Timo Teräs 891ccac3b6 escl: fix char_to_array memory allocation calculations
Too little memory allocated due to incorrect calculation.

Fixes #425
2021-01-15 16:46:12 +02:00
thierry1970 0293e662cf Fix check poppler-glib, (see issue #422). 2021-01-14 13:20:17 +01:00
Thierry HUCHARD fefc6f1818 The order of the parameters does not change the result. 2021-01-04 19:47:08 +01:00
Thierry HUCHARD 17023afb99 Get device informations with avahi. 2020-12-29 11:33:55 +01:00
Thierry HUCHARD ffc2bbb1ff pixma: Add models 2020-12-26 15:40:07 +02:00
Olaf Meeuwissen 77a3173e90
epson2: Add ET-2600 as supported
See https://gitlab.com/sane-project/backends/-/issues/395
2020-12-26 12:03:15 +09:00
thierry1970 1dbc316327 Fix messages and variable. 2020-12-22 16:14:44 +01:00
Ordissimo 4aa767327d Choose the format according to availability and options. 2020-12-21 20:17:03 +00:00
thierry1970 c0dae7e8f5 refactoring options code 2020-12-21 18:16:31 +01:00
Ralph Little e111c48562 avision: added increment of the line variable in non-interpolated case 2020-12-19 17:28:36 -08:00
Ralph Little 15e200a981 avision: added some brackets to silence warnings about precedence ambiguity 2020-12-19 17:27:23 -08:00
Thierry HUCHARD a5181be71b Fix a crash when asking for the list of options: scanimage -A 2020-12-19 22:04:30 +01:00
thierry1970 841680f610 Fix : Fixes the crash of devices that do not have a tray, discovered on the HP Deskjet 3760 device. 2020-12-16 13:41:31 +01:00
Povilas Kanapickas bb84652c3c Merge branch 'origin/pixma_bug_fixes' into 'master'
General pixma backend fixes

See merge request sane-project/backends!548
2020-12-07 13:21:30 +00:00
Olaf Meeuwissen f1154375f5 Merge branch 'master' into 'master'
drop CVS keywords

See merge request sane-project/backends!547
2020-11-30 11:07:40 +00:00
m. allan noah 7f7a4778be canon_dr backend v60
- add new gray and color interlacing options for DR-C120
- initial support for DR-C120 and C130
- enable fine calibration for P-208 (per @sashacmc in !546)
2020-11-29 18:03:23 -05:00
Mikolaj Kucharski cbf9627fd8 final Revision CVS keyword removal 2020-11-29 09:19:26 +00:00
Mikolaj Kucharski 4196d204f1 drop more tricky Revision CVS keyword 2020-11-29 09:17:33 +00:00
Mikolaj Kucharski 7de7c051fa more CVS keywords removed, Log and Revision 2020-11-29 09:06:48 +00:00
Ralph Little a388c3abc1 pixma: avoid structure copy on every read by using cinfo address. 2020-11-28 19:34:52 -08:00
Ralph Little 410f954f3b pixma: assignment must be inside the loop to be effective. 2020-11-28 19:29:06 -08:00
Ralph Little 08eaf1a22e pixma: MX490 series returns JPEG from ADF scans. 2020-11-28 19:19:26 -08:00
Mikolaj Kucharski 65f1131541 drop CVS keywords 2020-11-28 12:48:32 +00:00
RICCIARDI-Adrien 862ca098ae Fixed Artec AstraSlim SE configuration. 2020-11-21 11:58:17 +01:00
Iskren Chernev d0695c1470 pixma: Add --calibrate option
Feature was discussed in https://gitlab.com/sane-project/backends/-/issues/321
2020-11-02 22:50:48 +02:00
Olaf Meeuwissen e4ef0548bf Merge branch 'leak_fix' into 'master'
Fix memory leaks in dll and test backends

See merge request sane-project/backends!537
2020-10-20 09:01:15 +00:00
Fletcher Woodruff 6fe222ed29 test: do not leak initial values of string options
The default values for string options are set using static (i.e.
non-malloced) strings. Later, if new values are loaded from the config
file, those SANE_Strings will then point to dynamically allocated memory
which is eventually leaked.

Change the initial values for the string options to NULL, and initialize
them to the proper values within sane_init() using strdup(). This way,
whenever the value for the string is changed, we can safely free() the
previous value.

This eliminates the other main source of memory leaks in the test backend.

This patch also updates sane_init for the test backend to properly cleanup
memory if it fails.
2020-10-19 09:48:49 -06:00
Fletcher Woodruff f71ac6126f test: free memory used for string options
Inside Test_Device, track whether we've already called init_options().
If we have, don't call it again when calling sane_open() again.

Add a function cleanup_options() which frees the memory used for these
options, and call it in sane_exit() if we previously called
init_options().

Change Test_Devices to be initialized with calloc instead of malloc,
so that we can assume that uninitialized fields are NULL, and can safely
call free() on them unconditionally.

This eliminates some larger memory leaks within the test backend.
2020-10-19 09:48:36 -06:00
Olaf Meeuwissen 519c300ff0 Merge branch 'brightness_on_12000xl' into 'master'
epson2: fix lower brightness limit for DS-G20000/12000XL

See merge request sane-project/backends!529
2020-10-18 01:47:29 +00:00
Ralph Little 014c307e02 pixma: MX320 machine will not perform 1200 dpi scan from the ADF
600 dpi maximum from ADF.
2020-10-13 09:03:45 -07:00
Fletcher Woodruff de903b84c4 dll: fix memory leak in load
In the case where we are unable to get a path for loading libs, and
instead just use LIBDIR, we set 'src = strdup(LIBDIR)'. However, we
never update orig_src to point to src before tokenizing the path with
strsep(), so the memory is never freed.

Update load to always set orig_src to src so that we don't leak memory.
2020-10-12 16:25:07 -06:00
Gerhard Jäger 7f38f0f71c Merge branch 'canoscan_n650u_plustek_usb_workaround' into 'master'
[plustek] Add 1ms delay before writing to register 0x59 during reseting registers

Closes #137

See merge request sane-project/backends!535
2020-10-12 09:14:04 +00:00
Ralph Little 7e6231fe57 Merge branch '358-gt68xx-1-0-31-breaks-mustek-1248ub-after-first-scan' into 'master'
Resolve "gt68xx: 1.0.31 breaks Mustek 1248UB after first scan"

Closes #358

See merge request sane-project/backends!533
2020-10-10 19:22:41 +00:00
Ralph Little 42520aeaa9 gt68xx: added flag to fix stop scan bug
Some scanners (notably the Mustek 1248UB) doesn't like receiving a
STOP scan command when it is not scanning. Flag prevents it my making
sure that START/STOP commands are only ever paired up.
2020-10-10 12:01:33 -07:00
Thierry HUCHARD 8885312711 Fixes device discovery 2020-10-10 18:01:55 +02:00
Zdenek Dohnal 6af85ec669 plustek-usbhw.c: Add 1ms sleep before writing to register 0x59
Works around discovery problem for CanoScan N650U, fixes #137.
2020-10-09 08:55:41 +02:00
Ralph Little 6886cf6e80 gt68xx: Added temporary fix to avoid stop scan during cancel.
Calling this function upsets some scanners in this family.
This temporary sticking plaster permits the Mustek 1248UB scanner to
scan after cancelling. We need to look into this much more when a
scanner becomes available for investigation.
2020-10-03 10:38:50 -07:00
Nikolai Kostrigin 5ef217b19d add ID information for Avision AV186+ and AV188 sheetfed USB scanners
backend/avision.c: add AV186+ as 'good',
                       AV188 as 'untested'
doc/descriptions/avision.desc: add AV186+ as 'good',
                                   AV188 as 'untested'
2020-09-28 18:31:56 +03:00
Wolfram Sang 7139d6decf epson2: add autofocus
Enable autofocus support on my Epson 12000XL. The middle of the scan
area will be used as the focus point. An arbitrary X,Y is possible but
not implemented yet

Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-09-26 17:14:47 +02:00
Wolfram Sang 5d706c2c35 epson2: implement full range manual focus settings
Allow the whole range of manual focus settings as an expert option. This
is also now independent of a TPU being installed or not. The old default
values are applied if the user changes the source type (either FLATBED
or TPU). Adding a focus group here because autofocus options will come
with later patches.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-09-26 16:48:51 +02:00
Wolfram Sang f9f75ca068 saneopts: add entries for focus/autofocus
coolscan2 has focus entries already reused in coolscan3. Because I want
to add the same options to epson2, it makes sense to make them available
globally. Add i18n while here.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-09-26 16:48:51 +02:00
Wolfram Sang a0e68f7de9 epson2: enable focus for all scanner types
Even with USB based scanners, we need to send the esci command to set
the focus. There is no byte in the extended scanning parameters for it.
So, move the code to a place where it is called for all cases.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-09-26 11:48:10 +02:00
Wolfram Sang 1653b0f80c Merge branch 'zdohnal/esci_set_focus_retval' into focus_on_12000XL 2020-09-26 11:47:57 +02:00