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
311a38c76f
brother_mfp: added first draft of man page for backend.
2023-12-11 13:05:54 -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
9bbf24cf97
brother_mfp: updated unit tests for changes to decoder API
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
Benoit JUIN
068714ef6e
fix ifs
2023-12-03 06:14:03 +01:00
Benoit JUIN
f7dd8e224d
memoy leak fix
2023-12-03 06:00:23 +01:00
Benoit JUIN
7631c15c5e
Mem alloc checks, typo and handle cancel scan correctly
2023-12-03 05:51:50 +01:00
Benoit JUIN
80478c865b
add licence & author note
2023-11-30 06:47:40 +01:00
Benoit JUIN
0255c74669
free buffers
2023-11-30 04:53:35 +01:00
Ralph Little
65779d6b59
Merge branch 'libxml2-2.12' into 'master'
...
sanei_usb: Fix build with libxml2 2.12
See merge request sane-project/backends!814
2023-11-29 06:40:36 +00:00
Benoit JUIN
ec9efba602
compile/typo fix
2023-11-29 06:39:17 +01:00
Benoit JUIN
0661fe9d89
fix warnings
2023-11-29 06:31:31 +01:00
Benoit JUIN
1fb0a78dd8
simple scan sends cancel on page finish ...
2023-11-29 06:23:32 +01:00
Benoit JUIN
c9e8d812df
reposition readPtr correctly
2023-11-29 06:10:05 +01:00
Jürg Billeter
3f727cfb8f
sanei_usb: Fix build with libxml2 2.12
2023-11-28 21:35:01 +01:00
Benoit JUIN
d022fa9c1b
use buffers
2023-11-27 05:52:00 +01:00
Benoit JUIN
1513839238
whitespace cleanup
2023-11-26 06:43:53 +01:00
Benoit JUIN
fc8e03ef69
cleanup logs
2023-11-26 06:08:37 +01:00
Benoit JUIN
6ee3558990
add color channel swap
2023-11-25 09:23:42 +01:00
Benoit JUIN
768fa3bf59
refactor more readable
2023-11-25 07:18:22 +01:00
Benoit JUIN
94b67794a5
handle high dpi and use a buffer to read data
2023-11-25 06:15:33 +01:00