Wykres commitów

176 Commity (brother_mfp_backend)

Autor SHA1 Wiadomość Data
Povilas Kanapickas de7375c7bb genesys: Remove legacy buffer handling code 2020-02-16 10:41:20 +02:00
Povilas Kanapickas 294db2a616 genesys: Fix host-side calibration when calibration data is shifted 2020-02-14 19:08:30 +02:00
Povilas Kanapickas 26eec0ba57 genesys: Remove uses of calib_channels 2020-02-03 01:00:47 +02:00
Povilas Kanapickas 10fb42cd68 genesys: Use calib_session to retrieve pixel counts 2020-02-03 01:00:34 +02:00
Povilas Kanapickas 9fc3b38a9b genesys: Use fixed float utilities instead of SANE_{FIX,UNFIX} 2020-02-02 15:23:21 +02:00
Povilas Kanapickas 03d50b5e64 Merge branch 'genesys-model-flag-enum' into 'master'
genesys: Move model flags to separate enum

See merge request sane-project/backends!325
2020-02-02 12:25:16 +00:00
Povilas Kanapickas e59401ed6b genesys: Move model flags to a separate enum 2020-02-02 14:08:52 +02:00
Olaf Meeuwissen 5e5cdad7dd Merge branch 'release/1.0.29' 2020-02-02 21:06:46 +09:00
Povilas Kanapickas e5e8ea3d3f genesys: Add motor profile information to motors table 2020-01-31 20:13:13 +02:00
Olaf Meeuwissen 8bc98d0f7d testsuite/backend/genesys: Fix include path for out-of-tree builds 2020-01-13 18:37:21 +09:00
Olaf Meeuwissen ba84a8f69c testsuite/backend/genesys: Fix [-Wcatch-value=] compiler warning
Exceptions ought to be caught by reference.
2020-01-13 18:35:33 +09:00
Ralph Little c4a88e6bf4 genesys: renamed HP ScanJet 3670C to 3670. Model has no C suffix 2020-01-07 22:52:14 -08:00
Povilas Kanapickas 69067f2f7f genesys: Remove no longer used final_exposure 2019-12-22 17:07:24 +02:00
Povilas Kanapickas 3d9113997f genesys: Switch remaining legacy curve uses to physical curves 2019-12-14 10:20:12 +02:00
Povilas Kanapickas dec9962773 genesys: Make the size of slope tables configurable by asic type 2019-12-14 10:20:09 +02:00
Povilas Kanapickas 8731a6cc5d genesys: Return MotorSlopeTable out of *_create_slope_table3() 2019-12-14 10:20:07 +02:00
Povilas Kanapickas 7c6229f272 genesys: Rename MotorSlopeTable::{scan_steps -> steps_count} 2019-12-14 10:20:06 +02:00
Povilas Kanapickas f6f27e0539 genesys: Implement building of motor tables based on physical slope 2019-11-23 12:38:46 +02:00
Povilas Kanapickas b43a21d25a genesys: Add new motor slope type 2019-11-23 12:38:44 +02:00
Povilas Kanapickas 15819a7d12 genesys: Add tests for sanei_genesys_create_slope_table3() 2019-11-23 12:38:43 +02:00
Povilas Kanapickas ce59a69224 genesys: Record motor slope tables in the config test 2019-11-23 12:38:40 +02:00
Povilas Kanapickas eadfdb57a4 genesys: Add a way to record backend internals using test scanner iface 2019-10-26 12:42:48 +02:00
Povilas Kanapickas 3ac009abe2 genesys: Add more debug printers 2019-10-26 12:42:46 +02:00
Povilas Kanapickas f4f58f6c18 genesys: Remove no longer used Genesys_Current_Setup 2019-11-10 10:32:05 +02:00
Povilas Kanapickas f9d36d1a1b genesys: Add utility to compute percentille of columns in image 2019-10-17 22:07:00 +03:00
Povilas Kanapickas 051ff59e0c testsuite: Add a way to test exception throwing 2019-10-17 22:06:59 +03:00
Povilas Kanapickas f4a2957541 genesys: Use unsigned for resolution in various places 2019-10-13 06:18:50 +03:00
Povilas Kanapickas 68e5f8a912 genesys: Put the backend code into a separate namespace 2019-10-12 22:33:57 +03:00
Povilas Kanapickas b5e4d86eb2 genesys: Use separate translation unit for conversion functions 2019-10-12 18:17:17 +03:00
Povilas Kanapickas d4ca0177a1 genesys: Use strong enum for ADC id 2019-09-30 13:52:01 +03:00
Povilas Kanapickas df14234297 genesys: Use strong enum for sensor id 2019-09-30 13:52:00 +03:00
Povilas Kanapickas 6971301590 genesys: Rename Genesys_Sensor::{CCD -> ccd}_start_xoffset 2019-09-30 13:51:58 +03:00
Povilas Kanapickas 323f37753a genesys: Implement support for host-side calibration 2019-09-18 03:54:52 +03:00
Povilas Kanapickas c3e7411aca genesys: Allow limiting the amount of data read from pipeline sources 2019-09-16 09:34:11 +03:00
Povilas Kanapickas 2e10f4ac17 genesys: Report failures to produce full lines in pipeline 2019-09-16 09:34:09 +03:00
Povilas Kanapickas 6ced865d53 genesys: Move pixel-related functionality to separate file 2019-09-29 20:03:48 +03:00
Povilas Kanapickas 0b1bfa3f12 genesys: Swap 16-bit pixel endian on big endian machines 2019-09-28 07:33:27 +03:00
Povilas Kanapickas af17797d3c genesys: Use new image pipeline for handling segmented sensors 2019-09-13 15:37:32 +03:00
Povilas Kanapickas 1c7ef4b55e genesys: Implement image data source that mimics current reading from USB 2019-09-13 10:38:05 +03:00
Povilas Kanapickas 7d7a395277 genesys: Implement library for image manipulation 2019-09-13 10:38:04 +03:00
Povilas Kanapickas 9b7ab93727 genesys: Add unit test for genesys_fill_segmented_buffer() 2019-09-12 22:39:22 +03:00
Povilas Kanapickas 38b97f1402 genesys: Include full session description into the device struct 2019-07-27 05:12:31 +03:00
Povilas Kanapickas 57d8eb565f genesys: Add missing dependencies to the unit tests 2019-08-09 09:40:54 +03:00
Olaf Meeuwissen 1be824f2c5 Merge branch 'sanei-usb-testing-mode' into 'master'
sanei: Support capture and replay of USB data for testing

See merge request sane-project/backends!55
2019-08-08 14:01:30 +00:00
Povilas Kanapickas a8a5f58f21 genesys: Add tests for serialization of calibration data 2019-07-23 02:00:44 +03:00
Povilas Kanapickas baa4eb3048 testsuite: Add missing libs to `make check` programs 2019-06-30 22:18:11 +03:00
Olaf Meeuwissen 9b109a7bd7 Fix typo 2019-06-30 12:45:03 +09:00
Olaf Meeuwissen adc64520ee Fix test suite, following bf00b9f49c 2019-06-30 12:45:03 +09:00
Povilas Kanapickas 1c3e1aa184 autotools: Remove files generated by autotools from version control 2019-06-01 14:38:36 +03:00
Olaf Meeuwissen be9736020f autofoo: Sync generated files
The AX_CXX_COMPILE_STDCXX* macros that were embedded in aclocal.m4
have been replaced with the versions found in the autoconf-archive
package from Debian 9.
2019-05-21 22:14:46 +09:00
Povilas Kanapickas 9e3b5d6381 Update generated files 2019-05-11 00:03:26 +03:00
Povilas Kanapickas 2653cbaec7 Run autoreconf and automake 2019-03-20 23:09:07 +02:00
Olaf Meeuwissen c6bfe88c31 Update mailing lists addresses to new location 2018-04-18 21:36:00 +09:00
Olaf Meeuwissen 4ade295ab1 Update mail archive links to point to new location 2018-04-18 21:12:44 +09:00
Olaf Meeuwissen a78969384b autotools: Sync derived files
This was done by running

  libtoolize --copy
  autoreconf --force --install

on Debian GNU/Linux 9.3.
2018-03-17 10:35:57 +09:00
Olaf Meeuwissen 9b0db823ed Make absolute URLs in the sane-desc HTML output site-relative 2018-03-07 21:38:56 +09:00
Olaf Meeuwissen 8849137abb Make root-relative hrefs/src properties site-relative
This allows for hosting content on any level below a domain.
2018-03-05 20:21:58 +09:00
Olaf Meeuwissen baec9c4e26 autofoo: Sync with configure.ac, Makefile.am changes 2017-06-07 22:50:56 +09:00
Olaf Meeuwissen fc4b250a09 .editorconfig: use utf-8 charset throughout 2017-05-29 21:14:30 +09:00
Olaf Meeuwissen f0f187f995 .editorconfig: trim trailing blank lines 2017-05-29 21:14:30 +09:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Olaf Meeuwissen 02037adb13 Fix unused parameter compiler warnings in check tools 2017-05-14 19:47:31 +09:00
Olaf Meeuwissen bfd1626c4b Sync autofoo 2016-07-13 23:44:26 +09:00
Olaf Meeuwissen 2481e1e98b Sync autofoo 2016-07-10 21:54:24 +09:00
Olaf Meeuwissen c962368626 Sync autofoo 2016-07-01 23:45:43 +09:00
Olaf Meeuwissen a9c813944e Make libusb-1.0 the default for USB support
When libusb-1.0 is not found, libusb-0.1 will be tried.  On BeOS and
OS2, nothing should have changed in terms of detection of USB support.

On all systems the --enable-libusb* flags are now ignored.  Instead, the
--with-usb and --without-usb flags now control support.  When neither is
given USB support will be enable if possible and disabled otherwise.  If
--with-usb is requested but not possible, ./configure will fail.  There
is no support to prefer libusb-0.1 over libusb-1.0.
2016-07-01 23:44:37 +09:00
Olaf Meeuwissen 418fbb987d Sync autofoo, once again ... 2016-06-30 21:50:33 +09:00
Olaf Meeuwissen 828cd013e9 Compile getopt replacement functions only if needed
This ought to get rid of the last empty compilation unit warnings.  This
merges libfelib.la with liblib.la.  The former was always used together
with the latter.  The latter was only ever used without the former when
linking backends and tools.

Tools might want to use the getopt functions, backends might just want
to use MD5.
2016-06-30 21:38:04 +09:00
Olaf Meeuwissen f03f1f66d4 Sync autofoo files 2016-06-29 22:15:06 +09:00
Olaf Meeuwissen cb4924f210 Stop distclean from removing files willy-nilly
The distclean target should only remove files that make creates.  If
there are any that need taking care of, they should be added in on a
per file basis in the Makefile.am that creates it.
2016-06-26 10:24:30 +09:00
Olaf Meeuwissen bdade6bb07 Sync derived files with previous changes 2016-06-26 10:24:29 +09:00
Olaf Meeuwissen d853463ef1 Sync derived files
This was done with

  AUTOMAKE="automake --add-missing --copy" autoreconf --force

on Debian GNU/Linux 8.5.
2016-06-14 06:30:48 +09:00
Olaf Meeuwissen 87e12bbf2e Sync derived files with autoreconf --force
For the record, this was done on Debian GNU/Linux 8.5.
2016-06-13 22:24:21 +09:00
Olaf Meeuwissen 2d6fad58b4 Respect GNU Standards user variables
Several variables are considered "user variables" by the GNU Standards.
This means that the user can pass these to their ./configure and make
invocations as they see fit.  These variables include CPPFLAGS, CFLAGS
and LDFLAGS.

This changeset pushes our use of these variables to the automake shadow
variables, AM_CPPFLAGS, AM_CFLAGS and AM_LDFLAGS, so that user variables
will no longer clobber flags required in order to build.
2016-06-13 22:03:14 +09:00
Olaf Meeuwissen 7a2b112d20 Prefer make variables over literal substitutions
The AC_SUBST and PKG_CHECK_MODULE invocations in configure.ac as well as
acinclude.m4 are sufficient to trigger automake to insert initialization
logic for the variables these introduce.  There is no need to do this by
hand.  Wherever these values are needed, it is better to use a variable.
This allows for one-off overrides on the make command-line (without the
need to run ./configure) for one thing.
2016-06-13 21:50:36 +09:00
Volker Diels-Grabsch baec5e0395 Use consistently __func__ instead of __FUNCTION__
Some parts of SANE used __FUNCTION__ while other parts used __func__.
Now, __func__ is used consistently throughout the SANE sources.  This
fixes all occurrences of the following GCC warning:

warning: ISO C does not support '__FUNCTION__' predefined identifier
2015-12-20 15:27:45 +09:00
Olaf Meeuwissen d7516a11eb Fix sane-desc testsuite logic
This fixes test failures for release tarballs (pointed out by Mike
Frysinger), clamps down on wildcards and prints a failure message
when a test does not succeed.
2015-11-08 18:16:17 +09:00
m. allan noah 2ecf18f6fb autoheader and automake
After recent PNG and SNMP changes, need to run autoheader and automake
2015-10-02 21:53:14 -04:00
m. allan noah 87bfd53512 Run autofoo for recent changes 2015-09-19 13:39:38 -04:00
m. allan noah 7566619e53 rebuild with automake 1.14.1 2015-08-31 20:58:30 -04:00
Yuri Chornoivan 648d933c56 Fix minor typos in messages and comments 2015-08-31 20:31:54 -04:00
Alessandro Zummo ccd15dc966 Revert "epsonds: enable double feed detection"
This reverts commit 005c3928a5.
2015-04-26 23:09:08 +02:00
Alessandro Zummo 005c3928a5 epsonds: enable double feed detection 2015-04-26 22:44:01 +02:00
Stéphane Voltz b0133c1ed2 fix #314694
- make sanei_config testsuite handle out of source builds by using
  SANE_CONFIG_DIR
2014-07-01 22:39:35 +02:00
Nils Philippsen aa8d117c2a fix "make check"
Regenerate testsuite reference data which was necessary after these
fixes:

- commit 3b96baef65
  "sane-desc: fix udev hwdb generation"
- commit 758731489d
  "sane-desc: fix faulty udev logic for SCSI devices"
2013-12-03 15:26:53 +01:00
Stéphane Voltz febae63aa3 handle version number change in testsuite 2013-11-21 06:06:17 +01:00
Chris Bagwell af10791227 Improve libusb's error code for permission issues.
libusb on my Linux box is returning EACCES error when invalid
permissions exist.  Modify open to translate that into
SANE_STATUS_ECCESS_DENIED since that error description is
used for this case.

Modify sanei_usb_test.c to not treat access denied or busy
error codes as real failures since its expected to occur on
boxes that USB device is already claimed by another driver
and if that device uses default root only permissions.
2013-08-26 21:21:20 -05:00
Chris Bagwell 321a982875 Fixes to tools testsuite for distcheck target
Add missing data files to distribution.
Use $srcdir so tests work when build and source directory are not
the same.
2013-08-16 13:39:23 -05:00
Chris Bagwell 43da1e64c1 Add fake names to fake devices
strcmp() does not protect against NULL pointers and is
crashing on at least OS X for the fake devices we are creating
by setting device_number to MAX value.

Add a fake empty string to prevent this.
2013-08-16 13:10:32 -05:00
Chris Bagwell 317626116f Update sanei_config_test to use full config path
This lets test pass even when ran from a different location.

Also, added missing data files to distribution list.
These two things lets this test case pass when ran using "make distcheck".
2013-08-16 11:10:59 -05:00
Chris Bagwell bc2dc68fa5 Improve snmp detection when cross compiling.
Improving here means do not set LIBS/CFLAGS if library is not detected.
This prevents some unknown options based to ld when host is Linux and
target is mingw32/64.  Further improvements are needed if one wants this
snmp support when cross compiling to really work.

Also, to make commit bisectable, updated all autofoo files using
'autoreconf -i -f' and repatching ltmain.sh.

Also, test-driver was missing from git repo but the Makefile.in
checked in expected it to exist.
2013-08-15 13:10:39 -05:00
Stéphane Voltz b10f87f7ed fixed range overflow due to rounding in sanei_constrain_value
- fixed a bug in sanei_constrain_value spotted by
  viresh_shirol@yahoo.co.uk where range max was exceeded due to rounding
  in quantization
- added test case for sane fixed values range
2013-08-04 09:04:47 +02:00
Stéphane Voltz 77a7cc4443 changelog entry for hwdb patch, minor cleanups, copyright notice 2013-08-02 22:51:58 +02:00
Tom Gundersen 3087a5efb5 sane-desc: add support for udev's hwdb
udev now comes with a hardware database (hwdb) which is meant to replace large
rule files as the one typically shipped with sane. This should significantly
speed up the processing of usb add events.

Add the required output format and add a special udev output mode which is
produces the udev file to be used with hwdb.

Sample hwdb file: <https://dev.archlinux.org/~tomegun/20-sane.hwdb>.
Sample udev+hwdb rules file:
                       <https://dev.archlinux.org/~tomegun/53-sane.rules>.

Similar support was recently added to gphoto2:
                            <http://sourceforge.net/p/gphoto/code/14490/>.

The new udev rules file does not support old udev/kernels as these anyway
don't support hwdb.

Moreover, it does not come with GROUP=/MODE= or ACL support as this can easily
be done externally by hooking into the libsane_matched envvar. In particular
systemd-logind uses this to do its own ACL handling.
2013-08-02 22:18:11 +02:00
Stéphane Voltz 234d6f1320 add missing Makefile.in 2013-08-02 22:16:34 +02:00
Stéphane Voltz fdadecc509 add testsuite for sane-desc
- add a tools sudbir in testsuite
- add a desc test file
- record test references
- add check in Makefile to run and compare output
2013-08-02 22:16:33 +02:00
Stéphane Voltz f5b8a0af80 add unit tests for sanei_constraint, sanei_config and sanei_check 2013-03-24 14:53:40 +01:00
Stéphane Voltz 88e04fbb4d move test_wire.c from sanei to testsuite/sanei
- move sanei_w_* functions test program to test directory to keep
  production code separated from test code
2013-03-24 14:50:17 +01:00
Stéphane Voltz 8b3674a516 add testsuite/sanei for sanei test programs
- add sanei_usb_test to test sanei_usb functions
 - update SUBDIRS so the check target is ran on testsuite/sanei
2013-03-24 14:50:17 +01:00
Louis Lagendijk 8d64ae0413 Missed one Makefile.in in last commit 2013-01-10 21:08:15 +01:00