Wykres commitów

40 Commity (brother_mfp_backend)

Autor SHA1 Wiadomość Data
Ordissimo aa3fc1cad8 escl: Fix version of pwf:Version 2023-04-16 19:49:45 +00:00
Ordissimo 7431b65974 Escl: set option if necessary 2022-05-11 13:18:17 +00:00
Ordissimo 024ae3b5fa Escl: normalize spec 2022-05-11 09:59:20 +00:00
thierry1970 d77743b243 Search for the TLS version used by the device, then force the TLS version if necessary.
Check constant curl_ssl

Fix build
2021-12-16 00:30:56 +01:00
Ordissimo 88934578ec The name of the device, allows to disable the use of the PDF format. 2021-09-26 06:35:31 +00:00
thierry1970 667d8f7acc The job URL is adapted to the information provided by the value of the Location property. 2021-06-12 00:57:07 +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
Thierry HUCHARD 9dd8319a01 Utilise MakeAndModel pour le device au hack. 2021-01-17 17:23:56 +01: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 b24907c8a9 Fix scanjob for LaserJet FlowMFP M578 and LaserJet MFP M630. 2021-01-16 09:03:14 +01:00
Thierry HUCHARD 17023afb99 Get device informations with avahi. 2020-12-29 11:33:55 +01: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 fcbeeccbf0 Added options: Brightness, Threshold, Sharpen and Contrast. 2020-09-17 18:50:33 +02:00
thierry1970 0abdfa483f If no data then the status is NO-DOCS. 2020-05-15 10:21:56 +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
thierry1970 a931e0df57 Refactoring of the adf status. 2020-05-07 19:19:55 +02:00
Thierry HUCHARD ba5f992737 Fix all conflicts. 2020-04-04 17:11:16 +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
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 7caf928797 Correction of the return value of the scanner status 2020-03-17 23:42:53 +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 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 f650f470b2 Replacing roundl by round. 2020-02-12 12:12:15 +01:00
thierry1970 87ff6c494a Fix convert size. 2020-02-12 11:51:02 +01:00
Ordissimo bae9f0a3d3 Apply suggestion to backend/escl/escl.h 2020-02-10 08:45:21 +00:00
Thierry HUCHARD 6a9a0beee8 Clarification and factoring of the code 2020-02-09 09:30:43 +01:00
Thierry HUCHARD 7ea6af0624 Replacing unit conversion functions with macros. 2020-02-08 22:16:16 +01:00
Thierry HUCHARD 8c15724b43 Added milimeter-to-pixel and pixel-to-milimeter conversion function. 2020-01-31 17:19:42 +01:00
Thierry HUCHARD d8f983bbd9 Log message improvements. 2020-01-11 08:56:46 +01:00
Thierry HUCHARD 925bf77419 Removing the png and tiff test from the header. 2019-12-29 10:50:43 +01:00
thierry1970 65470e95aa Addition of the TIFF decoder. 2019-12-26 14:01:00 +01:00
Thierry HUCHARD d3efc20a0b Decoding files in one phase. 2019-12-25 18:36:23 +01:00
Thierry HUCHARD c6e8d381e0 Fix syntax. 2019-12-25 00:49:52 +01:00
Thierry HUCHARD 5c15d37248 Adding png support. The decompressors (Jpeg and Png) are in separate files. 2019-12-25 00:39:04 +01:00
Touboul Nathane 7c34046a39 Add escl backend 2019-12-14 08:13:54 +00:00