Wykres commitów

284 Commity (28d1b2e4d68fdbf1262b51fd19eb356bf63425d8)

Autor SHA1 Wiadomość Data
Stéphane Voltz e72d6c1007 working version for KV-SS080
- offset and gain calibration are tuned
2010-08-31 21:39:21 +02:00
Stéphane Voltz 2dd8d2d765 wip 10 : uncalibrated scans are ok 2010-08-28 08:09:35 +02:00
Stéphane Voltz 4d9852b3fe gl843 wip : uncalibrated scan about to work
- lperiod=sensor pixels
- park needs fixing
/bin/bash: q : commande introuvable
2010-08-08 08:59:55 +02:00
Stéphane Voltz c2db12d9e5 gl843 wip, motor is running 2010-08-02 06:36:27 +02:00
Stéphane Voltz 084efdb37c about to reach first light state
- fe is set
- slope tables are written (but not table 2)
- compile warnings are fixed
2010-08-02 06:36:26 +02:00
Stéphane Voltz 69aec86537 tuned register definition for gl843 2010-08-02 06:36:26 +02:00
Stéphane Voltz 5810169cde first gl843 steps
- clone gl847
- add KV-SS080 entry with provisional values
2010-08-02 06:36:26 +02:00
Julien BLACHE f20bacec71 genesys: kill unused variables 2010-06-23 18:21:35 +02:00
Stéphane Voltz e84e265f14 geometry fine tuning 2010-06-21 07:10:05 +02:00
Stéphane Voltz 9f6fd50dfc gl847 scan quality improvement
- improve scan quality by doubling x resolution internally at low dpi
- tune y offset of scan area
2010-06-20 22:04:51 +02:00
Stéphane Voltz 198eda5cdc Canon LiDE 100/200 support improvments
- add 100, 200 and 400 DPI resolutions
- disable true since it isn't working yet
- man page update
2010-06-18 06:42:44 +02:00
Stéphane Voltz 197b8e602b up build number 2010-06-15 21:09:13 +02:00
Stéphane Voltz ee0c0e8c44 fix calibration file name free 2010-06-10 21:48:38 +02:00
Stéphane Voltz 81ae37a603 LiDE 100 support polishing
- tune motor tables
2010-06-06 21:40:36 +02:00
Stéphane Voltz b2a0344885 last minute fix for hang after feeding to scan position 2010-06-03 22:16:43 +02:00
Stéphane Voltz 3ad7a8cf09 increase genesys build number 2010-06-03 20:58:21 +02:00
Stéphane Voltz 70bd6e6470 fix shading coefficients corruption 2010-06-03 06:56:12 +02:00
Stéphane Voltz 42497554ba make shading calibration work
- shading calibration is working
- scan mode set to deletion
- led calibration tune up
2010-05-31 06:47:57 +02:00
Stéphane Voltz 86bf317607 fix disable lineart description 2010-05-30 07:54:34 +02:00
Stéphane Voltz e4ae5224ed sync point before making shading calibration work 2010-05-30 07:43:59 +02:00
Stéphane Voltz 22fd7ed54c gl847 nearing completion
- used_res given is not hte right one 80 dpi instead of 75
- slope table can't be created so scan hangs if no calibration first
- first scanned byte are black
2010-05-29 07:58:27 +02:00
Stéphane Voltz bc944cbc3a close to final version for gl847
- feed to scan area
- revert data reading for shading calibration
- tuned geometry
2010-05-28 06:48:16 +02:00
Stéphane Voltz aec8271689 shadarea improvements 2010-05-26 21:07:13 +02:00
Stéphane Voltz 6bcc1fb121 handling of x start position is working 2010-05-26 06:23:58 +02:00
Stéphane Voltz d6c2184999 working SHDAREA
- offset in data reading remians to be fixed
- data is read line by line
2010-05-25 22:01:55 +02:00
Stéphane Voltz a78b0edee7 odd/even handling step2
- shading coefficients are too short and truncate picture
- need to compute startx
- SHDAREA should be doable
2010-05-22 14:24:37 +02:00
Stéphane Voltz 304d84d5e1 even/odd pixels handling frist step 2010-05-22 10:22:48 +02:00
Stéphane Voltz adc2060579 gl847 shading calibration refactor 2010-05-20 06:17:51 +02:00
Stéphane Voltz b02acbd283 working calibration (led and shading) 2010-05-19 06:01:43 +02:00
Stéphane Voltz 89de65c6cd work ing full width uncalibrated scans for GL847 2010-05-16 07:37:00 +02:00
Stéphane Voltz 96b29ca201 working full width 1200 dpi scan 2010-05-10 06:16:51 +02:00
Stéphane Voltz e726900b56 park after scan working ! 2010-05-09 09:06:04 +02:00
Stéphane Voltz fdd4fefde6 slow_back_home working
- bulk data read fails on read remainder
2010-04-29 22:01:34 +02:00
Stéphane Voltz 530ebc8d3e about to scan: slow back home to tackle 2010-04-28 07:28:10 +02:00
Stéphane Voltz 3dba8c1d66 WIP setup optical regs ~OK 2010-04-25 21:32:44 +02:00
Stéphane Voltz f91ceaddf4 working transparency support for gl646 based scanners
- add move to transparency adapter function to command set
- no warmup when using transparency adapter
- increase maximum warmup time to match HP3670 requirements
- tune HP3670's transparency adapter geometry
- handle calibration area geometry in gain calibration
- add simple move head function for gl646 based scanners
2010-03-15 06:24:23 +01:00
Stéphane Voltz 7e95fd8365 fixed ta size handling and gl646 calibration 2010-03-09 22:22:43 +01:00
Stéphane Voltz 84ef34005f enforce source geometry based on device description on source change
- dynamically allocate SANE_Range for geometry
- recompute ranges when source change using flatbed or xpa description
2010-03-02 06:38:19 +01:00
Stéphane Voltz bc652842a5 enable warming up and calibration caching for HP3670 2010-03-01 21:42:38 +01:00
Stéphane Voltz 56107960af tune shading offset at 1200 dpi for HP3670 2010-02-26 13:59:42 +01:00
Stéphane Voltz cd310cdcc8 make shading calibration work for HP3670
- enable calibration flag
- tune offset for shading data
- compute resolution to use for shading using cksel
2010-02-26 13:34:08 +01:00
Stéphane Voltz 12c408ba5a fix COLOR_FILTER issues by adding 'None' value at end of list
- restore correct gamma table size for gl841 scanners
- add 'None' value at the and of the possible filter list so we don't
  break existing code
2010-02-23 08:09:42 +01:00
Stéphane Voltz b8a7f1ec2f button support for HP3670
- button support for hp3670
- fix visibility of gl646_public_set_fe
- scanning area fix
2010-02-16 06:44:36 +01:00
Stéphane Voltz a0fd2c5012 HP3670 working uncalibrated at all resolutions 2010-02-12 13:49:26 +01:00
Stéphane Voltz 43512a7a0a hp3670/hp2400 like scanners progress
- managed to get AFE working for HP2400/HP3670
- cleaned up gpio usage
- add custom gamma for GL841 models
- turned default lineart to 'dynamyc'
2010-02-08 06:19:17 +01:00
Stéphane Voltz 166c6219ff HP3670 WIP 2010-02-03 06:23:40 +01:00
Stéphane Voltz 421b1fe240 about to get HP3670 fe working 2010-02-03 06:23:39 +01:00
Stéphane Voltz 586153f5ae make sure TL_X and TL_Y are always lesser than BR_X and BR_Y 2010-01-27 05:45:59 +01:00
Stéphane Voltz 6cb3d76966 minor options cleanup
- enable dynamic lineart only when lineart enabled
- no desc for buttons option group
2010-01-26 21:31:24 +01:00
Stéphane Voltz f42cb07d8d enable dynamic rasterization for lineart scans
- use emulated lineart mode to apply binarize function pulled from
the epjitsu backend (by m. allan noah).
2010-01-26 21:31:23 +01:00
Stéphane Voltz db46aac928 add an option to use software lineart for GL841 based scanners 2010-01-19 21:39:29 +01:00
Stéphane Voltz 260c917e6d fix shading calibration for CCD GL646 scanners
- for CCD scanners, shading calibration is always done in color mode
2010-01-17 14:49:57 +01:00
Stéphane Voltz ab33e9a4d1 make threshold option active 2010-01-14 06:51:02 +01:00
Stéphane Voltz 9cf351b43b true gray improvements
- fixed true gray resetting
- make GL646 parts use the option filter for true gray
2010-01-13 06:55:42 +01:00
Stéphane Voltz 7724df7c8b modified color filter option to enable true gray for cis GL841 scanners 2010-01-13 06:55:42 +01:00
Stéphane Voltz e6dd25adb7 fix image size when document shorter than expected for gl841 scanners
- add a function to read count of lined scanned
- use real scanned count line to compute the number of line to read to
  flush the current scan
2009-12-09 20:54:42 +01:00
Stéphane Voltz 4e7c47fa33 handle unattended document height for sheetfed scanners
- make sheefed scanners report a -1 line number to allow for variable
  document height
2009-12-05 08:33:27 +01:00
Stéphane Voltz ef4c5102ca add support for Ambir/Syscan DS685 2009-12-05 07:26:25 +01:00
Stéphane Voltz d4079557e4 sheetfed calibration tuning
- use sensor max resolution to do led/offset/gain calibration
- use different thresholds when detecting white/black pixels in search
  strip function
- tune device flags for DP485, DP487 and XP100
2009-11-16 06:37:15 +01:00
Stéphane Voltz c348e5af7e calibrate and clear calibration set reload params 2009-11-06 21:24:43 +01:00
Stéphane Voltz 3c8b10d16b remove some special cases for shading calibration computing - remove DSMOBILE600 special case for calling compute_planar_coefficient - remove special case to compute words_per_color 2009-11-06 21:24:43 +01:00
Stéphane Voltz 6668b38d2c fix shading coefficient computing at dpi higher than sensor's one 2009-11-06 21:24:43 +01:00
Stéphane Voltz e0e9d639fd add soft sensor to signal that the scanner needs calibration 2009-11-06 21:24:42 +01:00
Stéphane Voltz 6c8052f54d duplicate shading data on all channels for gray scans 2009-11-06 21:24:42 +01:00
Pierre Willenbrock 5f3625ad7a Add Calibration for Visioneer Roadwarrior and DocketPort 665 2009-11-06 21:24:41 +01:00
Pierre Willenbrock 17c0aa77ad Add offset/gain/led calibration for sheetfed scanners 2009-11-06 21:24:40 +01:00
Pierre Willenbrock cc77c4fa88 Fix usage of words_per_color.
I really don't know what i was thinking.
2009-11-06 21:24:40 +01:00
Pierre Willenbrock 6dddc67eb9 Add save_power calls where they belong 2009-11-06 21:24:40 +01:00
Stéphane Voltz 2ffe52857b enable shading calibration for XP300
- add the needed flags to XP300
- tune shading line number
- setup shading calibration computing parameters
2009-11-06 21:24:39 +01:00
Stéphane Voltz 142498bca3 make DS600 use planar coefficient computing function
- improve compute_planar_coefficient to handle an averaging factor
- make DS600 call it with proper parameters
2009-11-06 21:24:38 +01:00
Stéphane Voltz eab45d5245 DS600 allways send coefficients for all color channels 2009-11-06 21:24:38 +01:00
Stéphane Voltz b57f0fd362 sheetfed scanners don't (can't) calibrate at each sane_start() 2009-11-06 21:24:38 +01:00
Julien BLACHE 561a2c8fe2 Fix missing check in genesys for raw debug data
Patch by Tollef Fog Heen <tfheen@err.no>
2009-09-26 11:39:29 +02:00
Stéphane Voltz 2c38397142 fix shading hp2300 shading calibration at dpi <= 300 2009-08-05 07:51:11 +02:00
Stéphane Voltz fc11d2ebea don't use color filter for gl646 cis scanners since we're using true gray 2009-08-04 07:44:43 +02:00
Stéphane Voltz 8f5069219f removed obsoleted comment 2009-07-10 07:30:56 +02:00
Stéphane Voltz 7b982e87db fix for MD5345 shading calibration at half ccd resolution 2009-07-10 07:22:06 +02:00
Stéphane Voltz 12594427d9 add a 10 minutes expiration time for GL646 CCD scanners' calibration cache 2009-07-10 07:22:06 +02:00
Stéphane Voltz af0477bfce DBG proc level trace for sanei_genesys_init_fe 2009-07-10 07:22:06 +02:00
Stéphane Voltz 0d82a5fba2 hp2300 shading calibration fix
- change 300 dpi mode to be in 'half ccd' mode
- fix sensor pixel number
- allow for negative offset in shading data building
- rewrite compute_coefficients to handle negative offset and specialised
  it for pixel deletion case
- fix calibration handling of flatbed scanners
2009-07-10 07:22:06 +02:00
Stéphane Voltz 247b585de7 first working version of sheetfed scanners shading calibration
- added a function to build planar shading data
- improved sheetfed_calibration function
2009-07-10 07:22:05 +02:00
Stéphane Voltz d522b2c2f7 shading calibration data size handling cleanup 2009-07-10 07:22:05 +02:00
Stéphane Voltz 60ab4d8569 add shading coefficient computing function for GL646/planar mode 2009-07-10 07:22:05 +02:00
Stéphane Voltz 48df712552 a note about the work left to get XP200 shading work 2009-07-10 07:22:05 +02:00
Stéphane Voltz 2d0710ed07 don't use addr for GL841 cis scanners when sending coefficient data 2009-07-10 07:22:05 +02:00
Stéphane Voltz 3135e94c90 work toward shading calibration
- black/white strip searching reliable
- call to dar and white shading calibration
2009-07-10 07:22:05 +02:00
Stéphane Voltz 7c44981be0 first step in adding sheetfed scanners calibration
- added search_strip function to command set
- coded search_strip for gl646
- initial calibration process for sheetfed scanners upto strip finding
- create a scanner calibration function that switches between
  	flatbed or sheetfed calibration
- added a sheetfed calibration function
- removed gamma table setting from calibration process
- call gamma setting during sane_start but before scanner calibration
2009-07-10 07:22:05 +02:00
chris@cnpbagwell.com 4d9e8138af standardize including local sane/ include files.
Source code was inconsistent on how they were referencing
include files in include/sane.  In certain cases, sane/sane.h
and sane/saneopts.h was really including external copies (with
some preprocessor implementations anyways).
2009-05-07 22:06:20 -05:00
Stéphane Voltz 8d67bccbdc - HP2300 shading calibration fixes 2009-04-27 13:53:33 +00:00
Stéphane Voltz f7b28fccd2 - y scan position fixes for MD6471
- shading calibration tuning for MD6471
2009-04-25 06:12:16 +00:00
Pierre Willenbrock 0f82af6930 Fix reading/writing calib_channels to/from cache file, bad calib_pixels calculation.
This fixes bugs introduced by my previous commit.
2009-04-17 14:02:13 +00:00
Pierre Willenbrock ad1f7de9e0 Always do shading calibration in color mode on gl841.
This removes the need to calibrate for both greyscale and color mode.
2009-04-17 13:03:35 +00:00
Stéphane Voltz 4f526dbb24 - y scan position fixes for gl646 scanners
- added a 'clear calibration cache button'
2009-04-16 18:39:23 +00:00
Stéphane Voltz d32f758ce3 - calibration cache activation for gl646 scanners 2009-04-15 19:24:10 +00:00
Stéphane Voltz a7a759b896 - shading calibration rework for gl646 based scanners 2009-04-14 05:15:29 +00:00
Pierre Willenbrock ce2fdfbfbe Add calibration cache
The calibration data is stored in the directory $HOME/.sane
2009-03-25 12:57:24 +00:00
Pierre Willenbrock 9d7fb593a1 Calculate shading coefficients using maximum input resolution available
This still needs to honor half_ccd settings
2009-03-21 14:30:30 +00:00
Pierre Willenbrock f261d52e11 Remove park_head
It is redirected to slow_back_home in all cases
2009-03-21 14:28:57 +00:00
Pierre Willenbrock 8994e0cb07 Fix calculation of pixel number used in calibration 2009-03-21 14:27:06 +00:00
Pierre Willenbrock d2fb13c37d Enable Motor again for combined dark/bright calibration 2009-03-21 14:25:39 +00:00
Stéphane Voltz 185486e432 - cleanups for gl646 scanners
- change in document detection for gl646 sheetfed scanners
	- lexmark desc file update
2009-03-12 05:29:53 +00:00
Stéphane Voltz b635ba26b1 - head positionning fixes
- 1200 dpi scan fix for HP2300
2009-03-09 05:52:31 +00:00
Stéphane Voltz ea76aef8a2 - rewrite of gl646 internals to enable easy addition of new models
- rewrite of calibration process to make it more robust and accurate
	- untested full support for hp3670
	- untested support for 50, 100 and 300 uncalibrated scans for hp2400
	- use of id for device parts descriptions instead of using fixed
	  place in tables
 	- SCAN_MODE_* defines to clean up code
2009-02-27 12:37:16 +00:00
Chris Bagwell 70f3fdfba4 * acinclude.m4, backend/*.[ch], tools/*.[ch], frontend/*.[ch]:
Global replace of u_int??_t with C9x standard based uintxx_t
 in order to remove some tricky and overlapping portability logic
 from acinclude.m4 and leave it in only m4/stdint.m4.
2009-02-26 03:15:43 +00:00
Pierre Willenbrock 3251c06fb4 Move sanei_genesys_{start,stop}_motor into chip specific sources 2009-02-23 14:16:56 +00:00
Stéphane Voltz 81953325e8 - add support for uncalibrated scan for Visioneer Strobe XP200
- button support for MD5345, HP2300 and XP200
2009-01-19 05:46:43 +00:00
Pierre Willenbrock ba164358db Add support for buttons on Canon LiDE 35/40/50. 2009-01-16 15:31:10 +00:00
Stéphane Voltz 2fda04000a - restored warming-up broken by a previous commit 2008-12-31 07:11:20 +00:00
m. allan noah 91598aa800 * backend/*.[ch]: nearly every backend used V_MAJOR
instead of SANE_CURRENT_MAJOR in sane_init()
* backend/snapscan.c: remove EXPECTED_VERSION check
since new SANE standard is forward compatible
2008-11-26 21:21:31 +00:00
Stéphane Voltz 9f60fdf955 - move to configuration framework
- fix GPO value confusion
	- don't reset ASIC anymore
	- some HP2400/G2410 tidbits
2008-08-29 05:13:15 +00:00
Stéphane Voltz c97e99a430 - changed top of scan area detection for MD6228/MD6471 models 2008-05-23 08:55:22 +00:00
Stéphane Voltz 79fbd0c2f1 - added OPT_CUSTOM_GAMMA and OPT_GAMMA_VECTOR* options for GL646
- fixed allocation bugs detected by valgrind
	- fixed bugs detected by 'tstbackend -r 1 -l 1'
	- allow 'genesys' as default value for backend opening
	- made OPT_COLOR_FILTER effectively work for GL646 scanners
	- split sane_control_options() to make it more readable
2008-04-05 09:21:56 +00:00
Pierre Willenbrock f183b6fe00 * backend/genesys.c, backend/genesys_gl646.c,
backend/genesys_gl841.c, backend/genesys_low.h: Add LED exposure
control to gl841_set_lamp_power
2008-02-21 15:49:18 +00:00
Mattias Ellert af663bc5e7 Fix format warnings 2008-02-03 10:34:20 +00:00
Pierre Willenbrock 8d2069c0dd * backend/genesys.c, backend/genesys_devices.c, backend/genesys_low.h,
backend/genesys_gl646.c, backend/genesys_gl841.c: add infrastructure for
  multiple motor power modes
2007-11-22 14:05:13 +00:00
Pierre Willenbrock bb2263e81b * backend/genesys.c, backend/genesys_gl646.c,
backend/genesys_gl841.c, backend/genesys_low.h: change
  bulk_write_register to take number of registers instead of
  byte size of register set
2007-11-11 21:50:00 +00:00
Pierre Willenbrock 6d4a3ac828 * backend/genesys.c: Removed some more hardcoded sizeof(Genesys_Register_Set) 2007-10-25 13:41:21 +00:00
Pierre Willenbrock e403a87c10 * backend/genesys_gl841.c: One more instance of
sizeof(Genesys_Register_Set) vs 2
* backend/genesys.c: Add check for small register set in
  sanei_genesys_get_address
2007-10-25 12:44:33 +00:00
Stéphane Voltz c0ee8a2143 - mail address update
- minor man update
2007-08-27 04:58:53 +00:00
Stéphane Voltz 825ff7335e * genesys/gl646: HP2400 warmup fix by Luke <iceyfor@gmail.com> 2007-08-26 09:49:18 +00:00
Pierre Willenbrock dba2f29195 * backend/genesys_devices.c: fixed gamma settings(1.0 now)
* backend/genesys.c backend/genesys_gl841.c: improved calibration for dark
  shades
2006-12-02 21:57:08 +00:00
Stéphane Voltz 7ec4d9b567 - improved sanei_genesys_search_reference_point to fix origin detection
for HP2300 and a left margin detection bug with MD6345
	- some HP2400 support tidbits
2006-08-09 13:22:36 +00:00
Stéphane Voltz 850ad80287 - fixed HP2300 detection of scanarea
- fixed one more issue related to bug #303681
2006-08-06 07:02:22 +00:00
Pierre Willenbrock b53cfc23fe * backend/genesys.c backend/genesys.h backend/genesys_low.h: added
options for enabling/disabling horizontal interpolation at high
   resolutions and selection of color filter in grayscale and
   lineart modes.
 * backend/genesys_gl841.c: implemented color filter selection.
2006-06-07 22:39:09 +00:00
Stéphane Voltz 6237d28bcb - add work around for HP2300 for an issue related to the amount of
scan data read before asic reset.
2006-04-21 05:32:21 +00:00
Pierre Willenbrock 6b7031ca40 * backend/genesys.c backend/genesys.h backend/genesys_low.h
backend/genesys_conv.c backend/genesys_gl841.c: Added extended
   option "Threshold" for lineart mode(Thanks to Laurent Charpentier).
2006-03-27 14:41:30 +00:00
Pierre Willenbrock 9fbc4ad57f * backend/genesys.c backend/genesys_low.h: Removed little endian conversions
in slope table creation functions
 * backend/genesys_gl646.c backend/genesys_gl841.c: Added little endian
   conversions to gl*_send_slope_table functions
2006-03-09 19:58:19 +00:00
Pierre Willenbrock 50fc452e8b * backend/genesys.c: Some annotations about endianess of scanned data
* backend/genesys_gl646.c: Convert gamma tables to little endian
2006-03-09 18:46:41 +00:00
Henning Geinitz 1bce75400e Fixed some compilation warnings. 2006-01-05 21:16:26 +00:00
Pierre Willenbrock fb446b0804 * backend/genesys.c: removed usage of current_setup in functions
where it is not necessarily initialized. Modified shading
	  calibration to not use fixed stripe sizes. Fixed memory
	  corruption while calculating shading data. Fixed read sizes to
	  be multiples of 256. Fixed stagger/line distance
	  correction. Fixed line shrinking to correctly update data
	  buffers. Bumped BUILD number.
	* backend/genesys.c backend/genesys_conv.c: Added gray to lineart
	  conversion.
	* backend/genesys.c backend/genesys_conv_hlp.c: Modified calling
	  parameters to stagger/line distance correction filter to better
	  describe its inner working.
	* backend/genesys_devices.c: Slowed down motor timings for
	  LiDE 35/40/50/60. Removed untested message for LiDE 35/40/50/60.
	* backend/genesys_gl646.c: Fixed bug for odd pixel count. Added
	  support for gray to lineart conversion.
	* backend/genesys_gl841.c: Fixed words_per_line calculation. Added
	  support for gray to lineart conversion(not used). Fixed problem
	  with scanners not backtracking while scanning calibration area
	  leading to scanning part of document area.
2005-12-05 20:50:57 +00:00
Henning Geinitz 79d2a16c78 Bumped build number. Changed scanner's name to Canon LiDE 35/40/50. Added Canon
LiDE LiDE 60. This scanner is still commented out in genesys.conf. Removed
comment sign for Canon LiDE 35/40/50 in genesys.conf.
2005-11-20 13:59:39 +00:00
Pierre Willenbrock 02b1a07b5d * Added support for Canon LiDE 35/40/50
* Reworked data conversion process to convert CIS data
2005-11-19 22:51:01 +00:00
Stéphane Voltz 9857b4cf6c - fixed endianess issue in genesys backend when creating
slope table
2005-08-05 12:18:35 +00:00
Stéphane Voltz bce76371c4 - added genesys backend from experimental area 2005-06-27 20:07:45 +00:00