Wykres commitów

12625 Commity (40de9f87b83b491b1eead262cdd1972b0bdba9a2)

Autor SHA1 Wiadomość Data
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
Benoit JUIN 51aaef6d81 WIP: fill a buffer instead of messy sync read/write 2023-11-24 06:09:27 +01:00
Benoit JUIN 6e9f4b3785 fix debug line 2023-11-23 09:40:54 +01:00
Benoit JUIN 0a0afc2a71 fix typo 2023-11-23 09:13:29 +01:00
Benoit JUIN 5360166729 Merge remote-tracking branch 'origin/lexmark_X2670_backend' into lexmark_X2670_backend 2023-11-23 09:07:22 +01:00
Benoit JUIN 35aed3072c add debug info 2023-11-23 09:06:12 +01:00
Ralph Little 0098b1c58b Apply 2 suggestion(s) to 1 file(s) 2023-11-23 08:05:14 +00:00
Ralph Little 02f1a624f3 Apply 1 suggestion(s) to 1 file(s) 2023-11-23 08:03:57 +00:00
Ralph Little 15795b8071 Merge branch '715-have_libsnmp-redefinition' into 'master'
Resolve "HAVE_LIBSNMP redefinition"

Closes #715

See merge request sane-project/backends!812
2023-11-14 17:54:40 +00:00
Ralph Little bb8155804c configure.ac: Fixes to remove #define redefinitions from config.log
Involves a simple rearrange for some clauses to avoid #define
duplication in the config log.
2023-11-14 09:46:11 -08:00
Alex Belkin 0327a5c954 Merge branch 'fix-ci-no-tags' into 'master'
autogen.sh: Reconstruct version from ChangeLog files (for CI)

See merge request sane-project/backends!811
2023-11-08 20:30:00 +00:00
Alex Belkin 02a417721f autogen.sh: Reconstruct version from ChangeLog files (for CI)
When repos are forked on GitLab tags aren't copied (0 Tags) thus making
git-version-gen producing incorrect version ("UNKNOWN") which in turn
causes CI build failures (not helpful for people trying to make Merge
Requests). To workaround this issue reconstruct version from ChangeLogs
files (handy updated on every release). If git describe is not working
and we are not in dist package - take version from the top-most
ChangeLog file.

Example of error messages:

  ../libtool: line 1168: UNKNOWN + : syntax error: operand expected (error token is "+ ")

  In file included from net.c:83:
  net.c: In function 'connect_dev':
  <command-line>: error: 'UNKNOWN' undeclared (first use in this function)
  ../include/sane/sane.h:31:21: note: in definition of macro 'SANE_VERSION_CODE'
     31 |   (  (((SANE_Word) (major) &   0xff) << 24) \
	|                     ^~~~~
  net.c:485:41: note: in expansion of macro 'V_MAJOR'
    485 |   req.version_code = SANE_VERSION_CODE (V_MAJOR, V_MINOR,
	|                                         ^~~~~~~
2023-11-07 23:34:24 +03:00