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
Thierry HUCHARD
8885312711
Fixes device discovery
2020-10-10 18:01:55 +02:00
thierry1970
cd768b3692
Check options scan and fix xml.
2020-09-18 15:47:45 +02:00
thierry1970
e281dfb0cd
Fix style.
2020-09-17 18:55:03 +02:00
thierry1970
fcbeeccbf0
Added options: Brightness, Threshold, Sharpen and Contrast.
2020-09-17 18:50:33 +02:00
Peter Marschall
950aded610
Apply 1 suggestion(s) to 1 file(s)
2020-09-06 07:29:49 +00:00
Peter Marschall
6e16f45b76
Apply 1 suggestion(s) to 1 file(s)
2020-09-06 07:29:44 +00:00
Peter Marschall
4f4278ab2d
spelling fixes for escl backend
2020-08-29 09:18:03 +02:00
pobrn
45f84a569c
respect 'local_only' parameter of sane_get_devices()
...
Certain backends do network scans even if the 'local_only'
parameter for 'sane_get_devices()' is true. Fix that.
Changes:
1. Modify 'sanei_configure_attach()' so that backend specific
data may be passed to the 'attach()' function.
2. Use this in certain backends to pass the value of the
'local_only' parameter so that network related activities
are only carried out when the value is false.
2020-08-12 12:29:38 +02:00
thierry1970
f52f4917e5
Error syntax
2020-06-05 11:45:21 +02:00
thierry1970
641c736c37
Replacement of printf by DBG.
2020-06-05 10:20:21 +02:00
thierry1970
0abdfa483f
If no data then the status is NO-DOCS.
2020-05-15 10:21:56 +02:00
thierry1970
1027e8aae0
Fix build.
2020-05-14 15:31:10 +02:00
thierry1970
bd8cb0e6aa
Code cleanup.
2020-05-14 14:03:20 +02:00
thierry1970
287a6bb88a
Test status device before scan and after.
2020-05-14 13:05:08 +02:00
Thierry HUCHARD
d9c377cf09
Fix style
2020-05-13 22:24:51 +02:00
Thierry HUCHARD
c66efc0faf
Allows the X and Y offset to be set to 0.
2020-05-13 22:20:55 +02:00
Thierry HUCHARD
29866b0b19
Fix status sane_read.
2020-05-13 20:33:01 +02:00
Ordissimo
5ad7708381
Merge branch 'escl-fix-status-adf' into 'master'
...
Refactoring of the adf status.
See merge request sane-project/backends!434
2020-05-11 14:58:38 +00:00
thierry1970
36ece1de84
Fix status for all vendors
2020-05-11 10:25:27 +02:00
Thierry HUCHARD
dc2b9aeade
JobState, if it exists, decides whether to proceed to the next page.
2020-05-10 22:20:30 +02:00
Thierry HUCHARD
70daed5132
Fix error name variable.
2020-05-10 15:11:30 +02:00
Thierry HUCHARD
64c1c8a865
Logic correction.
2020-05-10 01:28:49 +02:00
Thierry HUCHARD
c1d302f3d7
Adjuste status adf.
2020-05-09 23:48:48 +02:00
Thierry HUCHARD
296e73ae6b
escl get sane_cancel output
2020-05-09 15:42:33 +02:00
Thierry HUCHARD
f233792702
Update Adf status.
2020-05-09 10:03:39 +02:00
Thierry HUCHARD
c4d8cc424e
Update Adf status.
2020-05-09 09:50:15 +02:00
Thierry HUCHARD
73bf5533f9
release memory and close descriptor.
2020-05-08 08:35:50 +02:00
thierry1970
a931e0df57
Refactoring of the adf status.
2020-05-07 19:19:55 +02:00
Ordissimo
6689104f01
Merge branch 'fix-status-returned-by-sane-start' into 'master'
...
escl: Add support for SANE_STATUS_NO_DOCS and SANE_STATUS_DEVICE_BUSY to sane_start
Closes #283
See merge request sane-project/backends!433
2020-05-06 18:29:07 +00:00
Ordissimo
e8e9577c12
Merge branch 'add-more-logs' into 'master'
...
Make curl error message more informative, to help debug issues
See merge request sane-project/backends!431
2020-05-06 18:10:33 +00:00
Bartosz Kosiorek
878197a00e
escl: Add support for SANE_STATUS_NO_DOCS and SANE_STATUS_DEVICE_BUSY to sane_start
...
Fixes : #283
2020-05-06 18:25:44 +02:00
thierry1970
fc14edf69e
Fix build.
2020-05-06 16:22:11 +02:00
thierry1970
646ee990d3
Reduces the number of entries on offer.
2020-05-06 16:08:53 +02:00
Bartosz Kosiorek
adbbdc8a69
Make curl error message more informative, to help debug issues
2020-05-06 16:01:01 +02:00
thierry1970
c9fdb62060
The duplex tag is only sent to the device if the device supports AdfDuplex.
2020-05-06 10:44:31 +02:00
thierry1970
9b3d7dc8b6
Fix name of sources.
2020-05-06 10:12:52 +02:00
Thierry HUCHARD
0efee9ddd6
Fix model name cropping.
2020-05-06 00:14:12 +02:00
Thierry HUCHARD
cd18ba69de
Add vendor
2020-05-06 00:13:37 +02:00
Thierry HUCHARD
8e2d335653
Put the vendor corresponding to the device used.
2020-05-05 22:29:03 +02:00
Ordissimo
bd482b6365
Merge branch 'escl-fixe-descriptor-size' into 'master'
...
Fixe descriptor size.
See merge request sane-project/backends!424
2020-05-04 11:39:19 +00:00
thierry1970
2ed753b3fe
Fixe descriptor size.
2020-05-04 13:19:03 +02:00
Thierry HUCHARD
855cc408d3
Fix the status of the scanner in case of failure.
2020-05-02 11:05:49 +02:00
Thierry HUCHARD
2190739b31
Fixed source argument.
2020-05-01 11:59:58 +02:00
Bartosz Kosiorek
24ffce93fd
Don't use the uninitialized data during getting capabilities and print capabilities
2020-04-30 22:36:00 +02:00
thierry1970
32083172ea
Allows you to move to the next page.
2020-04-21 14:49:40 +02:00
thierry1970
111d8d2aab
Fix invalide image with scanimage.
2020-04-21 12:47:07 +02:00
Thierry HUCHARD
6a0e0eb568
Fix build
2020-04-12 10:28:55 +02:00
Thierry HUCHARD
3d02d2f1be
Changes the status when the trays are empty.
2020-04-12 10:17:33 +02:00
Thierry HUCHARD
ba5f992737
Fix all conflicts.
2020-04-04 17:11:16 +02:00
Thierry HUCHARD
4ed0b0fd59
Fix conflicts
2020-04-04 16:29:41 +02:00
Ordissimo
fa75c94b24
Merge branch 'master' into 'escl-adf-support'
...
# Conflicts:
# backend/escl/escl.c
# backend/escl/escl.h
# backend/escl/escl_capabilities.c
# backend/escl/escl_crop.c
# backend/escl/escl_newjob.c
# backend/escl/escl_scan.c
# backend/escl/escl_status.c
2020-04-04 14:04:18 +00:00
thierry1970
59824f3d83
Fix style.
2020-04-03 09:37:49 +02:00
thierry1970
8f5f815be1
Moves to the next page for the ADF.
2020-04-03 09:33:55 +02:00
thierry1970
4f8a6991a9
Calculates the cropping offset with the ratio.
2020-04-03 09:23:49 +02:00
thierry1970
dd9e30c814
Adjusts the cropping offset.
2020-04-03 09:22:51 +02:00
thierry1970
7f10387ab0
Calculates the cropping offset with the ratio.
2020-04-02 10:41:59 +02:00
thierry1970
6c0c360ce7
Adjusts the cropping offset.
2020-04-02 10:40:27 +02:00
Olaf Meeuwissen
22b548bf22
Merge branch 'escl-fix-capabilities' into 'master'
...
escl - fix capabilities
See merge request sane-project/backends!384
2020-03-30 11:42:02 +00:00
Thierry HUCHARD
d06e42b08c
Correction of the zone cropping.
2020-03-29 21:42:38 +02:00
Thierry HUCHARD
c6a8a54111
Offset correction
2020-03-29 21:42:10 +02:00
Thierry HUCHARD
d5fdbb0c7d
Revert "Offset correction"
...
This reverts commit d7df235a7e
.
2020-03-29 21:37:35 +02:00
Thierry HUCHARD
062fb40cf4
Revert "Correction of the zone cropping."
...
This reverts commit 67c7ef9c4e
.
2020-03-29 21:37:25 +02:00
Thierry HUCHARD
67c7ef9c4e
Correction of the zone cropping.
2020-03-29 21:35:28 +02:00
Thierry HUCHARD
d7df235a7e
Offset correction
2020-03-29 21:30:21 +02:00
Thierry HUCHARD
6c855b7662
Fix build.
2020-03-29 16:20:16 +02:00
Thierry HUCHARD
b4b1f2c748
Fix build.
2020-03-29 16:12:19 +02:00
Ordissimo
9afdd20776
Fix initialisation variable.
2020-03-29 13:53:42 +00:00
Thierry HUCHARD
3066241e90
Sets the capabilities of the device according to the output format.
2020-03-29 15:47:44 +02:00
Olaf Meeuwissen
ee54d3935f
Merge branch 'escl-formatext-pdf' into 'master'
...
Add FormatExt for PDF.
See merge request sane-project/backends!356
2020-03-29 12:32:33 +00:00
Olaf Meeuwissen
dd78511072
Merge branch 'escl-unix-socket' into 'master'
...
Add unix socket support to ESCL
See merge request sane-project/backends!348
2020-03-24 12:22:38 +00:00
Thierry HUCHARD
81325dc773
Fix build.
2020-03-22 16:41:53 +01:00
Thierry HUCHARD
f4e6677fc1
Fix build.
2020-03-22 16:29:34 +01:00
Thierry HUCHARD
79f7463366
Refactoring the ADF mode.
2020-03-22 16:14:23 +01:00
Thierry HUCHARD
7caf928797
Correction of the return value of the scanner status
2020-03-17 23:42:53 +01:00
Thierry HUCHARD
136024355d
Fix open device.
2020-03-17 11:04:18 +01:00
Thierry HUCHARD
505a2c2208
Fix typo.
2020-03-17 09:51:34 +01:00
Thierry HUCHARD
41541da8ff
Fix few arguments to function 'print_xml_s'
2020-03-16 00:37:28 +01:00
Thierry HUCHARD
9315ad2ce6
Fix build.
2020-03-16 00:29:37 +01:00
Thierry HUCHARD
f62f9be1dd
Fix variable type.
2020-03-16 00:21:49 +01:00
Thierry HUCHARD
682d238c08
Fix build.
2020-03-16 00:13:42 +01:00
Thierry HUCHARD
0440234c36
Fix function proto.
2020-03-16 00:01:58 +01:00
Thierry HUCHARD
54136b8deb
If Adf, acquisition of the next page, if it exists.
2020-03-15 23:50:40 +01:00
Thierry HUCHARD
cf94e585f5
Full definition of ADF support.
2020-03-15 16:57:14 +01:00
Thierry HUCHARD
8ecd54e8d2
Add FormatExt for PDF.
2020-03-14 22:17:34 +01:00
Thierry HUCHARD
22416dece7
Fix style.
2020-03-14 16:42:15 +01:00
Thierry HUCHARD
beaba44385
Merge branch 'escl-adf-support' of gitlab.com:sane-project/backends into escl-adf-support
2020-03-14 16:38:40 +01:00
Thierry HUCHARD
749fe19feb
Fix build
2020-03-14 16:19:18 +01:00
thierry1970
1b3f0c9bc0
Call explicitly cancel.
2020-03-14 15:43:29 +01:00
Ordissimo
2c12635b23
Remove debug.
2020-03-14 15:42:26 +01:00
Thierry HUCHARD
fd0a8a0026
Add support adf.
2020-03-14 15:41:15 +01:00
Ordissimo
5dcd770e5e
.gitlab-ci.yml: Revert poppler related changes
...
The Docker images used by CI have been updated to include the required
packages.
2020-03-14 09:01:17 +00:00
Benjamin Gordon
48bc45f46b
escl: Add unix socket support
...
Curl can pass HTTP traffic through a unix socket instead of TCP with the
CURLOPT_UNIX_SOCKET_PATH option. This is useful if you have a proxy
listening on a local socket between your computer and the scanner. Now
that URL parsing is centralized, take advantage of this to support an
extended name scheme: escl:unix:/path/to/socket:URL
These names won't be picked up on the network when avahi scans, but they
can be passed manually with -d or added to /etc/sane.d/escl.conf. If
the existing escl:URL syntax is used, the socket is not set and the curl
option is not used, so existing network connections work the same as
before.
Since local sockets are optional, the current conf parsing scheme
becomes order dependent. To avoid this, also add an additional "device"
line type to the config parser. If a line starts with "device", the
remainder of the line is treated as a complete device name/URL and
parsed with the URL parsing added in the previous commit.
2020-03-12 13:06:53 -06:00
Benjamin Gordon
f6832f2a89
escl: Refactor name handling
...
Scanners are currently passed around by name, which is actually a URL.
Each function parses the URL a little bit, depending on what it needs,
and then sets the same curl options.
This refactors parsing out into a single escl_parse_name() function
called from sane_open and then passes around the resulting ESCL_Device
instead of the raw name. To set up the curl handle, the new
escl_curl_url() reconstructs a URL from the parsed ESCL_Device and sets
the appropriate options on the handle. Each place that makes a curl
call is updated to use the new function.
2020-03-12 11:02:29 -06:00
thierry1970
2739969661
Fix error parsing Location job.
2020-03-06 10:58:31 +01:00
Thierry HUCHARD
acfab5b702
renaming the function with a more descriptive name.
2020-03-01 14:54:00 +01:00
Thierry HUCHARD
d572db2044
code readability.
2020-03-01 14:48:08 +01:00
Thierry HUCHARD
5503bf8e67
Fix the 0x0 geometry problem.
2020-02-21 22:50:23 +01:00
thierry1970
c23cc87e52
Reshaping the loading of the device configuration from escl.conf.
2020-02-20 09:25:42 +01:00