Wykres commitów

5796 Commity (a94c17175f2bd3bf541fc62ff1036351c44eefa0)

Autor SHA1 Wiadomość Data
Michael Niewöhner e8ae2ca16f backend/avision: fix: use fabs instead of abs for double values
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:20:03 +02:00
Michael Niewöhner fa6dfcc44e backend/avision: i1120: finally set correct offsets for duplex
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:19:56 +02:00
Michael Niewöhner 7d7184a209 backend/avision: add missing offsets for bry
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:19:12 +02:00
Michael Niewöhner 6a6927b198 backend/avision: implement ADF first-sheet offset compensation
i1120 has another offset. When scanning in ADF multi-page mode (the
default), the very first sheet is moved 1.5mm down. That leads to 1.5mm
being cut off at the bottom.
This implements the (hopefully last) offset setting for multi-sheet ADF
scans.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:07 +02:00
Michael Niewöhner e96ce8887e backend/avision: add ADF front-only offset compensation
This adds offset compensation for ADF front-only scans, which may
have different offsets than ADF duplex scans.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:07 +02:00
Michael Niewöhner 58a3cdd042 backend/avision: Rewrite offset compensation
This is a complete rewrite of the offset compensation using a
combination of overscan and line skipping. It replaces the option
AV_REAR_OFFSET by specifying exact offset values for each scanner.
This was needed for Kodak i1120 which needs bottom line skipping.
The old implementation could not skip bottom lines since we could
not know how many lines we will get in the end from ADF.
The new implementation redirects the output file descriptor to a
temporary file. After the current page is completely scanned,
offsets are applied and the output is passed to the original
output file descriptor.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:07 +02:00
Michael Niewoehner b4716f6264 backend/avision: i1120: Add option AV_MULTI_SHEET_SCAN
Kodak i1120 has single-sheet and multi-sheet scan modes. This option sets
bitset3[7] which enables multi-sheet scan by default so there is no pause
of 1s between two sheets in ADF scan mode. This also fixes some offsets
when scanning multiple sheets.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner e54c9602e9 backend/avision: i1120: add option AV_GAMMA_UINT16
Kodak i1120 has a different gamma table format that looks like a
uint16/double array. Implement it and add an option for it.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner d8bf392424 backend/avision: i1120: add option AV_GAMMA_10
Kodak i1120 needs gamma to be set to 1.0 to give decent scan results.
Add an option for this.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner 886bf85d88 backend/avision: i1120: add option AV_NO_QCALIB_MODE
i1120 does not have an explicit "quality-calibration" mode. Add an
option to disable this mode.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner de19ebc61a backend/avision: i1120: add option AV_FASTFEED_ON_CANCEL
Some scanners like i1120 support fast feed-out of the sheet when
cancelling a running scan. Add a new option for this release type.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner 8b467b248e backend/avision: i1120: set AV_NO_REAR
Kodak broke rear-only scan (bitset3[3]) when they modified the Avision
firmware. It would be possible to add a work-around that drops front data and
writes rear data only. Because of deinterlacing, offsets etc. this is way too
complicated. The simpliest solution to scan rear-only is to turn around the
paper stack and use front scan instead.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner 692f87389b backend/avision: i1120: add option AV_OVERSCAN_OPTDPI
i1120 uses optical DPI for overscan calculation. Add an option for it.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner 74e94e6901 backend/avision: i1120: add option AV_NO_QSCAN_MODE
i1120 does not have an explicit quality-scan mode. Add an option to disable it.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner aff30cbb21 backend/avision: ability[3] seems to be a typo since ability[2] is dark cal indicator
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner de1a873cb7 backend/avision: i1120: use AV_SOFT_SCALE
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner c1c8ee8ea6 backend/avision: i1120: Enable gray filter to match windows driver
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner f393f8f246 backend/avision: i1120: add option AV_FORCE_CALIB
Add option AV_FORCE_CALIB to force calibration when scanner claims it is
not needed but it is.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner 196ce0b046 backend/avision: Add basic support for KODAK i1120
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Olaf Meeuwissen 890eb452b9 Merge branch 'Add-gamma-tables-to-test-backend' into 'master'
Add gamma test options

See merge request sane-project/backends!301
2020-07-26 09:39:23 +00:00
Kåre Särs 5683aab66b Add gamma test options 2020-07-26 09:39:23 +00:00
m. allan noah e7fc728e28 fujitsu: add USB IDs for fi-7800 and fi-7900 2020-07-18 21:12:52 -04:00
Rolf Bensch 8bdd27d149 pixma: remove auto generated files @ 'make clean'
See merge request sane-project/backends!491
2020-07-14 19:36:17 +02:00
Rolf Bensch e390b351a0 pixma: backend version 0.28.3 2020-07-14 18:10:45 +02:00
Rolf Bensch 1da5ae889a pixma: add new button options
some scanners return more options from push-button:
document-type, adf-status and adf-orientation
2020-07-14 17:39:18 +02:00
Rolf Bensch ec918e5c74 pixma: TR4500 Series supports max. 600dpi 2020-07-14 17:28:06 +02:00
Rolf Bensch 0febc81665 pixma: add button support for TR4500 Series
this scanner provides additional button information
2020-07-14 17:27:48 +02:00
Rolf Bensch 1943d34d60 pixma: TR4500 Series returns JPEG images from ADF scans 2020-07-14 17:27:23 +02:00
Rolf Bensch 7481254f1b pixma: auto generate options files with python[23]
see issue sane-project/backends#327
2020-07-14 17:13:06 +02:00
Rolf Bensch 819cc8cd61 pixma: add comment how to generate new pixma_sane_options.[ch] 2020-07-11 20:04:46 +02:00
Rolf Bensch 684efcef23 pixma: add "do not edit" comment on top of generated files 2020-07-11 19:51:26 +02:00
Olaf Meeuwissen 4a2cabe3be
pixma: Fix sane options file generation
This now generates files in the source tree and includes them in the
source tarball together with the script used.  Explicit dependencies
are added to trigger generation.  Rules have been rewritten to use
implicit variables for brevity.
2020-07-11 16:58:24 +09:00
Rolf Bensch b957674f65 pixma: auto generate sane options files
This prevents from fixing stuff in generated files.

Generated from pixma.c, bottom comment area.
2020-07-07 22:29:34 +02:00
Rolf Bensch 537fbc9bf6 pixma: backend version 0.28.2 2020-07-06 23:39:51 +02:00
Rolf Bensch 0b22eecf86 Merge branch '318-canoscan-lide-400-potentially-supports-48-bit-depth' into 'master'
Resolve "CanoScan LiDE 400 potentially supports 48-bit depth"

Closes #318

See merge request sane-project/backends!486
2020-07-06 21:38:06 +00:00
Rolf Bensch 8f93b4cc62 pixma_mp800: remove TODO for 16-bit scans
mp800 scanners need min. 150dpi for 16-bit scans
2020-07-06 23:17:02 +02:00
Rolf Bensch 3a18629f11 pixma: in dpi list set min. scan resolution for 16-bit scans 2020-07-06 23:17:02 +02:00
Rolf Bensch 0f1850fe4f pixma: new parameter to set min. xdpi for 16-bit scans
16-bit scans have different min. scan resolutions: 75 and 150dpi
2020-07-06 23:17:02 +02:00
Rolf Bensch b0efdd89cb pixma_mp150: scan 48bit color and convert 2020-07-06 23:17:02 +02:00
Rolf Bensch c4f0d4505e pixma_mp150: enable 48bit support for LiDE 400 2020-07-06 23:17:02 +02:00
Povilas Kanapickas b0c42c0f5f genesys: Implement support for LiDE 90 2020-06-27 00:48:06 +03:00
Povilas Kanapickas ea15fb29b7 genesys: Simplify motor table upload on gl842 2020-06-27 00:47:19 +03:00
Povilas Kanapickas d948f5eb69 genesys: Fix cis scanner support on gl842 2020-06-27 00:47:18 +03:00
Povilas Kanapickas 02782651a3 genesys: Add model option to disable fast feeding 2020-06-27 00:47:17 +03:00
Povilas Kanapickas 86c15ff4a0 genesys: Add option to fill dark calibration with constant 2020-06-27 00:47:16 +03:00
Povilas Kanapickas 6fdc5e6e1f genesys: Throw an exception when motor speed is too low 2020-06-27 00:47:15 +03:00
Povilas Kanapickas f6f891bd93 genesys: Call update_home_sensor_gpio() for all chip types 2020-06-27 00:47:14 +03:00
Michael Cronenworth 9793d4f64e MinGW build fixes
- Fix define check on S_IFSOCK, looked like a typo
- Need a define check around syslog usage
- libdll_preload already has sanei_usb symbols and linking fails with
  duplicate symbol errors if this is left in
2020-06-19 09:34:27 -05:00
Rolf Bensch e859ea108a pixma: backend version 0.28.1 2020-06-06 13:16:54 +02:00
Rolf Bensch e58ccba918 pixma: TR8500 Series returns JPEG images from ADF scans
See issue sane-project/backends#270
2020-06-06 13:16:16 +02:00
Rolf Bensch dc25c9f48d pixma: backend version 0.28.0 2020-06-05 23:20:41 +02:00
Rolf Bensch d2ae0ee697 pixma: update coryright 2020-06-05 23:19:21 +02:00
Rolf Bensch edace214b2 Merge branch 'pixma/gamma_table' into 'master'
Pixma: fix internal generated gamma table

See merge request sane-project/backends!295
2020-06-05 20:58:07 +00:00
Rolf Bensch 4b9dddb763 remove debug outputs from send gamma table 2020-06-05 22:41:32 +02:00
Rolf Bensch 0118111c6f use capability to select gamma table size 2020-06-05 22:07:19 +02:00
thierry1970 f52f4917e5 Error syntax 2020-06-05 11:45:21 +02:00
thierry1970 641c736c37 Replacement of printf by DBG. 2020-06-05 10:20:21 +02:00
Rolf Bensch 16ddd3b972 get 1024 and 4096 size gamma tables from frontend
Default gamma table has 1024 entries of 16 bits values. Only generation 1
scanners need a gamma table with 4096 entries of 8 bits values.
2020-05-30 23:41:06 +02:00
Rolf Bensch 1486b81dd9 pixma: fix description of adf-wait 2020-05-30 16:22:00 +02:00
Rolf Bensch 16ff7c0bba generate gamma table from control option
we need to generate gamma table only once, after getting gamma from the frontend
2020-05-30 16:18:20 +02:00
Rolf Bensch 057aa02b34 new capability for scanner generation 1 4096 bytes gamma table 2020-05-30 16:04:25 +02:00
Rolf Bensch 11126468ef calculate 16-bit gamma table
Generation 1 scanners need a 8-bit gamma table, with 4096 bytes size.
All other scanners need a 16-bit gamma table, with 1024 bytes size. For
these scanners values of the generated gamma table are close by the values
used from the manufacturers proprietary driver.
2020-05-30 16:02:01 +02:00
Rolf Bensch 103c77ddee new global variable for gamma
get gamma value from 'opt_gamma'
2020-05-30 15:27:42 +02:00
Rolf Bensch 24c016f408 pixma_gen_options.py: fix print whitespace 2020-05-30 15:12:46 +02:00
Povilas Kanapickas 96f60115df genesys: Bump calibration version 2020-05-26 01:51:23 +03:00
Povilas Kanapickas 23079e0061 genesys: Increase timeout in wait_until_has_valid_words() 2020-05-26 01:51:20 +03:00
Povilas Kanapickas 3cca2593fc genesys: Add support for Canon 5600F 2020-05-26 01:51:19 +03:00
Povilas Kanapickas b9e4113ef0 genesys: Add functions to write to register according to mask 2020-05-26 01:51:18 +03:00
Povilas Kanapickas 7c74cb7ce9 genesys: Remove no longer used code 2020-05-26 01:32:45 +03:00
Povilas Kanapickas 8ec6bc2e5d genesys: Deduplicate move_to_ta() 2020-05-26 01:32:44 +03:00
Povilas Kanapickas c4135d63a7 genesys: Simplify move_to_ta() on gl843 2020-05-26 01:32:43 +03:00
Povilas Kanapickas bc973a21c2 genesys: Simplify move_to_ta() on gl842 2020-05-26 01:32:42 +03:00
Povilas Kanapickas b8a24ee409 genesys: Remove useless debug statements 2020-05-26 01:32:41 +03:00
Povilas Kanapickas 57a398888d genesys: Deduplicate init_regs_for_scan() 2020-05-26 01:32:40 +03:00
Povilas Kanapickas 66ba92cfb6 genesys: Don't throw exception in non-exceptional circumstances 2020-05-26 01:32:39 +03:00
Povilas Kanapickas 7c378476e8 Merge branch 'genesys-gl847-transparency' into 'master'
genesys: Implement transparency support on gl847

See merge request sane-project/backends!475
2020-05-25 22:30:48 +00:00
Povilas Kanapickas 64b69331d3 Merge branch 'genesys-misc-fixes' into 'master'
genesys: Miscellaneous fixes

See merge request sane-project/backends!474
2020-05-25 22:29:03 +00:00
Povilas Kanapickas 786442d9c7 Merge branch 'genesys-pixel-offsets' into 'master'
genesys: Pixel offset calculation adjustments

See merge request sane-project/backends!473
2020-05-25 22:26:23 +00:00
Povilas Kanapickas 6bf26b3882 Merge branch 'genesys-host-side-calibration' into 'master'
genesys: Reimplement simplier host-side calibration

See merge request sane-project/backends!472
2020-05-25 22:25:47 +00:00
Povilas Kanapickas f3b04b374a genesys: Implement transparency support on gl847 2020-05-26 01:14:43 +03:00
Povilas Kanapickas 8a66829057 genesys: Simplify access to nodes that are newly added to image pipeline 2020-05-26 01:13:20 +03:00
Povilas Kanapickas c9182dc606 genesys: Ensure ImagePipelineStack nodes are destroyed in reverse order 2020-05-26 01:13:19 +03:00
Povilas Kanapickas 3282c5a654 genesys: Fix TIFF file writing 2020-05-26 01:13:18 +03:00
Povilas Kanapickas ba91fc844d genesys: Fix start pixel calculation when optical resolution is not max 2020-05-26 01:10:52 +03:00
Povilas Kanapickas 56db2b988a genesys: Adjust host side calibration by shading pixel offset 2020-05-26 01:10:51 +03:00
Povilas Kanapickas 8a10e33a13 genesys: Move all pixel adjustment calculations to a single function 2020-05-26 01:10:50 +03:00
Povilas Kanapickas b569e6cbb9 genesys: Reimplement simplier host-side calibration 2020-05-26 01:09:23 +03:00
Olaf Meeuwissen 08613aad26 gt68xx: Remove @PACKAGEVERSION@ from configuration filey 2020-05-25 20:48:35 +09:00
Povilas Kanapickas 92bf0c6623 genesys: Remove broken interpolation support 2020-05-24 20:44:26 +03:00
Povilas Kanapickas 6a495f9725 genesys: Remove duplicate align_int_up() 2020-05-24 20:44:25 +03:00
Povilas Kanapickas e7e5322003 genesys: Remove dead code 2020-05-24 20:44:24 +03:00
Povilas Kanapickas 33fc7cfb29 genesys: Retrieve output parameters out of the actual pipeline 2020-05-24 18:36:48 +03:00
Povilas Kanapickas a12083c8c4 genesys: Remove support for generating lineart within the backend 2020-05-24 18:20:17 +03:00
Povilas Kanapickas a23d61c26b genesys: Allow pipeline to be created without mutating device 2020-05-24 18:02:03 +03:00
Povilas Kanapickas 28e6ad89b8 genesys: Simplify read buffer size calculation 2020-05-24 16:35:59 +03:00
Povilas Kanapickas ec5af18239 genesys: Remove no longer used ImageBufferGenesysUsb 2020-05-24 16:35:59 +03:00
Povilas Kanapickas d172b9cc4d genesys: Remove read buffer after image processing 2020-05-24 16:35:59 +03:00
Povilas Kanapickas f5af633263 genesys: Simplify data buffering in main image pipeline 2020-05-23 10:39:09 +03:00
Povilas Kanapickas 9873fdf922 genesys: Don't read too much data when segment count is more than one 2020-05-23 10:39:08 +03:00
Povilas Kanapickas 55691ece2c genesys: Merge ImagePipelineNodeBuffered{CallableSource and GenesysUsb} 2020-05-23 10:39:07 +03:00