Wykres commitów

6294 Commity (b31b82c8bd99e890835b0ab8f42cbf118481784e)

Autor SHA1 Wiadomość Data
Ralph Little b31b82c8bd Merge branch 'brother_mfp_backend' into 'master'
Draft: Brother MFP backend

See merge request sane-project/backends!751
2024-04-21 06:52:43 +00:00
ThierryFR 113be50f6b Escl force idle status 2024-04-16 20:45:49 +00:00
Cyp bc54b0990f Random minor cleanup. 2024-04-02 19:56:11 +02:00
Wolfram Sang ee5f9a89e1 Merge branch 'epson2/ignore_cancel' into 'master'
epson2: ignore 'cancel request' status bit for more scanners

Closes #716

See merge request sane-project/backends!823
2024-02-04 19:07:33 +00:00
Alex Belkin 05c770546f Merge branch 'xerox_mfp-adf' into 'master'
xerox_mfp: When scanning from ADF, do not stop the device at page completion

Closes #537 and #47

See merge request sane-project/backends!655
2024-02-04 01:06:13 +00:00
Wolfram Sang fc6516afc1 epson2: ignore 'cancel request' status bit for more scanners
Not only the Perfection1650, but other scanners need to ignore the
FSG_STATUS_CANCEL_REQ bit as well. Thanks to @matc for debugging and
providing a list. Should fix #716. Remove the hardcoded bitmask while
here.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
2024-01-28 14:58:32 +01:00
Wolfram Sang 9266b647c5 Merge branch 'add-l360' into 'master'
Add support for epson L360

See merge request sane-project/backends!816
2024-01-26 14:23:06 +00:00
Artur Shepilko 86bb976ad6 xerox_mfp: When scanning from ADF, do not stop the device at page completion
- Stopping and releasing the device causes the ADF to purge any remaining pages,
thus only the first page gets properly scanned (observed with Samsung
SCX-4729FW).
- Instead, when sourcing from the ADF, at each page's completion it should
continue and issue "OBJECT POSITION" command to proceed to the next page.
- Once all pages have been processed, the subsequent "OBJECT POSITION" command
returns the proper "CHECK CONDITION" status  (ADF is empty) and triggers the
device stop and release.
- Additionally, the status of the ADF (loaded/empty) needs to be requeried
at the `sane_start()` for proper handling of the "Auto" mode. Otherwise,
the scanning session retains the ADF state from the start of the session,
even though ADF will become empty. Thus the "Auto" mode will not properly
switch to Flatbed as intended in the client application (observed in
Simple-Scan).

> NOTE: the initial "READ" command in `sane_start()` is extraneous and
> appears to always return STATUS_BUSY (indeed, the scanner is usually
> busy loading the page). The actual READ is correctly done in
> `dev_acquire()`. It may appear benign in a single page scan mode, however,
> it becomes malfunctioning in the mutipage ADF mode. The initial READ,
> when successful, will cause the skipping of the read block from processing,
> as the actual processing is tied to content read from `dev_acquire()`.
>
> Therefore, the initial READ command in the `sane_start()` is removed.
2024-01-25 17:20:03 -06:00
Artur Shepilko 8fe58ab678 xerox_mfp: Use doc source macros for clarity 2024-01-25 17:20:13 -06:00
Artur Shepilko 0a9bf84d3c xerox_mfp: Add support for Samsung SCX-4729FW (network mode) 2024-01-25 17:20:03 -06:00
Ben Olden-Cooligan ec3eacfbcb Remove obsolete pixma macOS workaround
Without this change, pixma scanning is currently broken (tested with Canon MP495). The stated reason for the workaround (libusb not supporting timeouts for interrupts) hasn't been true since 2010:
67d9ef7b68
2024-01-11 20:21:36 -08:00
Ralph Little bff8d25007 Merge branch 'master' into 'master'
Fix hpljm1005 #723

See merge request sane-project/backends!819
2024-01-11 21:54:21 +00:00
ThierryFR 77059fe3d4 Merge branch 'escl_fix_option_without_poppler' into 'master'
escl: Fix option without poppler.

See merge request sane-project/backends!820
2024-01-11 18:23:04 +00:00
Ordissimo cc13a4986d escl: Fix option without poppler. 2024-01-11 19:13:45 +01:00
Tarwirdur Turon 829b11b72e Fix hpljm1005 #723
1. Fixed scan to jpeg/png
2. Fixed bottom part of the image
3. Removed white pixels from the right part of the image
4. Adjusted physical dimensions of the scanning area
2024-01-06 18:45:25 +03:00
Ralph Little 22e3de3642 net: fix trailing whitespace from previous merge. 2023-12-31 18:46:24 -08:00
Jonathan Schulz 8a57a6934f Refactor deprecated getlogin() 2023-12-31 21:35:26 +00:00
beeduh 4750093faa Add support for epson L360 2023-12-13 06:07:06 +00:00
Dianne Skoll 3f612c1277 Update DMC author's contact details
My legal name and my email address have changed.
2023-12-11 22:15:30 -05:00
Ralph Little c6b0b1871c brother_mfp: Fix for 1-sided ADF selection
Also added definition for new family 4 machine MFC 8910DW with can do
duplex ADF.
2023-12-11 13:06:26 -08:00
Ralph Little 32be74e1f6 brother_mfp: Added first draft of brother5 family decoder. 2023-12-11 13:06:26 -08:00
Ralph Little 45416ffe03 brother_mfp: start of network driver.
We start with SNMP experiments for button registration and general
network driver framework.
2023-12-11 13:06:26 -08:00
Ralph Little ceb7342877 brother_mfp: corrections for ADF cap flags and model definitions. 2023-12-11 13:02:32 -08:00
Ralph Little cc4ad6be99 brother_mfp: Added ADF duplex function for supported devices. 2023-12-11 13:02:32 -08:00
Ralph Little 4173926d3b brother_mfp: Added additional test suites for brother2 and brother3
Also some encoder tests and general code tidy up.
2023-12-11 13:02:32 -08:00
Ralph Little b64b8c13bb brother_mfp: Added support for source option.
Can now select Flatbed or ADF for supported machines.
2023-12-11 13:02:32 -08:00
Ralph Little ca760d54b3 brother_mfp: General tidy up ready for next stage. 2023-12-11 13:02:32 -08:00
Ralph Little a8a9e895b9 brother_mfp: added query block and error conditions
Now detects cover open and paper jam.
Also formalised the query packet which occurs during initialization.
Hopefully, we will be able to decode this for useful information.
2023-12-11 13:02:32 -08:00
Ralph Little 40de9f87b8 brother_mfp: added preliminary ADF multisheet support.
I don't have a brother4 machine with an ADF so could not test this.
Quite a bit of refactoring to the encoder infrastructure to
accommodate this.
2023-12-11 13:02:32 -08:00
Ralph Little d95166777f brother_mfp: added split resolution option
By detail, user can now select a single resolution value or split x
and y resolutions with an additional "split resolution" option.

Default is to enable combine resolution.
2023-12-11 13:02:32 -08:00
Ralph Little 76481920c3 brother_mfp: Added preview option.
Also fixed some warnings that affected the pipeline.
2023-12-11 13:02:32 -08:00
Ralph Little a484c6ad93 brother_mfp: added device cancel and compression option
Some devices can compress colour (JPEG) and also provide raw data
in uncompressed form. The two devices that I have supply raw data
not in RBG but in YCbCr form.
Now applications have the option to choose compressed or uncompressed
colour scans if supported by the device.

Cancel from the device by pressing STOP is now handled properly.
2023-12-11 13:02:32 -08:00
Ralph Little a6f4f816b1 brother_mfp: Added draft for brother3 driver.
Test machine MFC-290C seems to support JPEG and RAW colour data.
However, the raw colour data has what appears to be a strong green
component leading to very green images. Maybe some post processing
is required to generate a proper image. Dunno. JPEG looks perfectly fine.
2023-12-11 13:02:32 -08:00
Ralph Little fbe872ae86 brother_mfp: brother2 driver requires uncompressed gray decoder also
Noticed in lineart output.
2023-12-11 13:02:32 -08:00
Ralph Little 0055214614 brother_mfp: Added brother2 decoder + button support
Also:
- Fixed major issue in gray decoder that caused data loss.
- Button support added for Brother2 decoder.
2023-12-11 13:02:32 -08:00
Ralph Little 437bfd27f3 brother_mfp: colour scan now fully functional.
Also:
- Init recovery for when previous crash left a session open.
- Small corrections for gray scans
2023-12-11 13:02:32 -08:00
Ralph Little 3fae2e561d brother_mfp: corrected some decoding bugs.
Still one rare illusive issue that causes loss of a bit of a line's
data, resulting in a sliding of the image to the left. It doesn't
happen very often, very difficult to reproduce.
2023-12-11 13:02:32 -08:00
Ralph Little 22d8ab2b49 brother_mfp: first set of unit tests for decoder.
Looks like we found the rare lost data issue in gray decoding.
Yayy! for unit tests.
2023-12-11 13:02:32 -08:00
Ralph Little 6eb9e1cc43 brother_mfp: Added basic test framework and moved source into brother_mfp directory 2023-12-11 13:02:32 -08:00
Ralph Little 8280db1eef brother_mfp: compile out test scan dump to file. Also fix up some bugs.
Hopefully, the fussy pipeline likes this version.
2023-12-11 13:02:31 -08:00
Ralph Little 79a9b6ac44 brother_mfp: fixes to hopefully satisfy the pipeline. 2023-12-11 13:02:31 -08:00
Ralph Little 7f763c0763 brother_mfp: silence temp. parameter warnings upsetting the pipeline. 2023-12-11 13:02:31 -08:00
Ralph Little 4f060d6cea brother_mfp: fix for makefile and other small enhancements. 2023-12-11 13:02:31 -08:00
Ralph Little a7d6a553ee brother_mfp: First C++ draft.
This version is a refactor using bits and pieces from the prototype.
Converted from C to C++ to make code reuse easier.
Will do gray/errdif/text scanning on the test MFC-J4320DW machine.
Cancel function added.
2023-12-11 13:02:31 -08:00
Ralph Little a9853d1bb8 brother_mfp: first draft prototype
Supports only grey/dithered_gray and text on MFC-4320DW.
Supports only USB.
2023-12-11 13:02:31 -08:00
Ralph Little 8096f84a6f Merge branch 'lexmark_X2670_backend' into 'master'
Lexmark x2600 backend

See merge request sane-project/backends!769
2023-12-10 18:36:08 +00:00
Benoit JUIN c1e9a341ab memory leak fix 2023-12-03 08:08:07 +01:00
Benoit JUIN 7efa04ff78 white spaces 2023-12-03 07:12:11 +01:00
Benoit JUIN daebecd216 fix memory leak 2023-12-03 07:11:41 +01:00
Benoit JUIN 84c94b8368 handle usb plug/unplug correctly 2023-12-03 07:03:39 +01:00