Hello, Is there a possibility to determine a maximum of parameter like :
typedef struct { int optical_res; (OK, for me 2400) int black_pixels; (don't know how to determine) int dummy_pixel; (content of 0x34 ?) int CCD_start_xoffset; (test of page upper border ?) int sensor_pixels; (just 216/2.54*2400 ?) int fau_gain_white_ref; (don't know how to determine) int gain_white_ref; (don't know how to determine) u_int8_t regs_0x08_0x0b[4]; (OK windows snoop) u_int8_t regs_0x10_0x1d[14]; (OK windows snoop) u_int8_t regs_0x52_0x5e[13]; (OK windows snoop) float red_gamma; (don't know how to determine) float green_gamma; (don't know how to determine) float blue_gamma; (don't know how to determine) u_int16_t *red_gamma_table; (OK NULL) u_int16_t *green_gamma_table;(OK NULL) u_int16_t *blue_gamma_table; (OK NULL) } Genesys_Sensor; or : typedef struct { SANE_Int base_ydpi; (4800 ? : Lide90 is 2400x4800) SANE_Int optical_ydpi; (4800 ? : Lide90 is 2400x4800) SANE_Int max_step_type; (don't know how to determine) SANE_Int power_mode_count; (don't know how to determine) Genesys_Motor_Slope slopes[2][3]; (don't know how to determine) } Genesys_Motor; >Guillaume Gastebois schrieb: >> Hello, >> >> I remember that LiDE 90 is a 2400DPI scanner. And I did nothing in code to >>port >> that. I backend ready for 2400dpi (I think so regarding portion of code) ? > >I am not sure, as there could not happen any testing. But in theory, it >should work. In the future, there should be some afford made to make >other resolutions than 2400, 1200 and 600 work, but these 3 are trivial >with this chip. > >> I write 2400 dpi in genesys_sensor for lide 90. But how to know pixel number >>for >> CCD sensor ? > >I guess the manufacturer is not lying about the density of the ccd, so >that should be enough. The rest of the settings is in real units. The >backend calculates the exact number of pixel from the density and the >width of the scanning area. > >> After writing 2400 dpi in sensor, I get quarter sized images !!! Why ? >> >> With 600 dpi in sensor I get full sized images with (300dpi scanning) or >>without >> half_ccd (1200dpi scanning) (with my code for gpio 14). >> >> Regards >> Guillaume > >I'd first try to get the correct gpio setting for a full resolution >scan(i.E. at 2400dpi). If you cannot get a full-width-scan, look for the >DPISET register, and try half/twice the dpi there. Also, make sure the >DPIHW is set for the 2400dpi mode. >When that works, figure out how to setup gpios for half_ccd mode. From >the view of the current code base, you are done here. You can try to >find a quarter_ccd mode(which would show up as half-width in the >half_ccd modes), and leave a comment in the code, or even implement the >quarter_ccd mode for real. > Yes, DPIHW is 0x80 (2400dpi) for 300dpi scanning dpiset is 0x258 (600). Is that good ? I find that GPIO14 is quarter CCD but by testing all other unknown GPIOs I can't find one for half CCD !!!! Strange no ? >Regards, > Pierre I see too that If I is image and B is black, I get for 1200dpi, 600dpi, 300dpi and 150dpi scanning : 1200 : BIIIIIIIBBBBBBBBBBBBBBBBBBBB BIIIIIIIBBBBBBBBBBBBBBBBBBBB BIIIIIIIBBBBBBBBBBBBBBBBBBBB BIIIIIIIBBBBBBBBBBBBBBBBBBBB BIIIIIIIBBBBBBBBBBBBBBBBBBBB BIIIIIIIBBBBBBBBBBBBBBBBBBBB BIIIIIIIBBBBBBBBBBBBBBBBBBBB BIIIIIIIBBBBBBBBBBBBBBBBBBBB BIIIIIIIBBBBBBBBBBBBBBBBBBBB BIIIIIIIBBBBBBBBBBBBBBBBBBBB BIIIIIIIBBBBBBBBBBBBBBBBBBBB 600 : BBIIIIIIIBBBBBBBBBBBBBBBBBBB BBIIIIIIIBBBBBBBBBBBBBBBBBBB BBIIIIIIIBBBBBBBBBBBBBBBBBBB BBIIIIIIIBBBBBBBBBBBBBBBBBBB BBIIIIIIIBBBBBBBBBBBBBBBBBBB BBIIIIIIIBBBBBBBBBBBBBBBBBBB BBIIIIIIIBBBBBBBBBBBBBBBBBBB BBIIIIIIIBBBBBBBBBBBBBBBBBBB BBIIIIIIIBBBBBBBBBBBBBBBBBBB BBIIIIIIIBBBBBBBBBBBBBBBBBBB BBIIIIIIIBBBBBBBBBBBBBBBBBBB 300 : BBBIIIIIIIBBBBBBBBBBBBBBBBBB BBBIIIIIIIBBBBBBBBBBBBBBBBBB BBBIIIIIIIBBBBBBBBBBBBBBBBBB BBBIIIIIIIBBBBBBBBBBBBBBBBBB BBBIIII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