Re: The problem of xscanimage by CanoscanFB620S

From: Lawrence Glaister (lg@jfm.bc.ca)
Date: Wed Oct 04 2000 - 11:15:03 PDT

  • Next message: Nick Lamb: "12bit (was Re: Patch for sane.tex (image polarity))"

    The bytesperline looks ok if you are doing a color scan of 637 pixels/line
    637*3 = 1911 bytes. There is one byte each for red/green/blue pixel data.
    I'm not sure what your other problem could be. Can you scan at any
    resolution successfully? How about greyscale scans?
    =======================================================
    Lawrence Glaister VE7IT email: lg@jfm.bc.ca
    1462 Madrona Drive http://jfm.bc.ca
    Nanoose Bay BC Canada
    V9P 9C9
    =======================================================
    ----- Original Message -----
    From: Mitsuru Okaniwa <m-okaniwa@bea.hi-ho.ne.jp>
    To: sane-devel mailing list <sane-devel@mostang.com>
    Sent: Tuesday, October 03, 2000 9:13 PM
    Subject: The problem of xscanimage by CanoscanFB620S

    > Hi,
    > I'm trying to work xscanimage by CanoscanFB620S properly.
    > The problem of xscanimage by CanoscanFB620S is that
    > the scanimage made by FB620S is not a normal image.
    > The image is the diagonal stripes against black.
    > I tried to look up the debug-file and I thought that the cause of
    > the diagonal stripes scanimage was a difference between
    > number of 'bytes_per_line' and number of bytes of
    > 'sanei_scsi_req_wait'. I think the number of 'bytes_per_line' must be
    equal
    > to the number of bytes of 'sanei_scsi_req_wait'.
    > Is my thought wrong?
    > Would anybody teach me the part of sane program which I change
    > to fix the difference of 'bytes_per_line' and 'sanei_scsi_req_wait'
    > if my thought is not wrong.
    > Would anybody teach me the way of fix the difference.
    >
    > The problem parts of the debug-file are as follows.
    > ---------------------------------------------------------
    > [canon] sane_get_parameters: xres='75', yres='75', pixels_per_line='637',
    > bytes_per_line='1911', <==== Look at this number !
    > lines='876'
    > [canon] << sane_get_parameters
    > [dll] set_io_mode(handle=0x8099990,nonblocking=1)
    > [canon] >> sane_set_io_mode
    > [canon] << sane_set_io_mode
    > [dll] read(handle=0x8099990,data=0xbfffcc1c,maxlen=8192,lenp=0xbfffcc18)
    > [canon] >> sane_read
    > [canon] >> read_data
    > [sanei_scsi] scsi_req_enter: entered 0x8080e28
    > [sanei_scsi] sanei_scsi_req_wait: waiting for 0x8080e28
    > [sanei_scsi] sanei_scsi.issue: 0x8080e28
    > [sanei_scsi] sanei_scsi_req_wait: read 8228 bytes <==== Look at this
    number
    > !
    > [canon] << read_data
    > [canon] << sane_read
    > [dll] read(handle=0x8099990,data=0xbfffcc1c,maxlen=8192,lenp=0xbfffcc18)
    >
    > regards,
    >
    > -----------------------------
    > Mitsuru Okaniwa
    > email : m-okaniwa@bea.hi-ho.ne.jp
    > tel : (Japan)0566-26-6105
    > -----------------------------
    >
    >
    > --
    > Source code, list archive, and docs: http://www.mostang.com/sane/
    > To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    >

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Wed Oct 04 2000 - 11:40:27 PDT