[sane-devel] question about SANE backend fill_buffer function
On Wed, Sep 8, 2010 at 5:05 AM, Reinhold Kainhofer reinhold at kainhofer.com wrote: Am Dienstag, 7. September 2010, um 21:37:26 schrieb Nicolas Martin: Le mardi 07 septembre 2010 ? 19:47 +0900, Gernot Hassenpflug a ?crit : I now have a problem where the pixels also need to be rearranged vertically. In particular, the first half of a line corresponds to the second half of a line much further along in the data. Is there any backend that has support for such processing, that I can look at for help? Or have I misunderstood what can be done with the current mp150_fill_buffer function in pixma_mp150.c? Yes, as I answered you, the pixma_mp150 implements a vertical shift reassembling that is needed by the CCD devices, as they produce scans with vertically shifted color planes. Maybe you can just use this, or use some modified version. The epson2 backend also has vertical color shifts. OK, thanks. I think what I was missing is that all the data is in fact read into the buffer and is available for access and manipulation. Regards, Gernot -- ISP Asahi-Net: http://asahi-net.jp/en/ No.1 in Japan by customer satisfaction (Nikkei News, 7 July 2010)
[sane-devel] question about SANE backend fill_buffer function
An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20100908/49ecb5db/attachment-0001.htm
[sane-devel] question about SANE backend fill_buffer function
On Wed, Sep 8, 2010 at 4:06 PM, Roger Davis rogerdavis at verizon.net wrote: Might this lead to support of the CanoScan 4200F ? Thanks! Sorry, no. That is not a pixma device as far as I know. -- ISP Asahi-Net: http://asahi-net.jp/en/ No.1 in Japan by customer satisfaction (Nikkei News, 7 July 2010)
[sane-devel] question about SANE backend fill_buffer function
Dear all, I am working on the pixma backend for Canon devices (variation: pixma_mp150.c), and have a question about registration of pixels in the y dimension. Each backend I believe has variations on a filename_fill_buffer function called between file_scan and _finish_scan. The function reads sections of data from the scanner, and processes it line by line. Thus, pixels can be reorganized in the x-dimension. I am not sure if the amount of data read at once is controllable. I now have a problem where the pixels also need to be rearranged vertically. In particular, the first half of a line corresponds to the second half of a line much further along in the data. Is there any backend that has support for such processing, that I can look at for help? Or have I misunderstood what can be done with the current mp150_fill_buffer function in pixma_mp150.c? Regards, Gernot Hassenpflug -- ISP Asahi-Net: http://asahi-net.jp/en/ No.1 in Japan by customer satisfaction (Nikkei News, 7 July 2010)
[sane-devel] question about SANE backend fill_buffer function
Le mardi 07 septembre 2010 ? 19:47 +0900, Gernot Hassenpflug a ?crit : Dear all, I am working on the pixma backend for Canon devices (variation: pixma_mp150.c), and have a question about registration of pixels in the y dimension. Each backend I believe has variations on a filename_fill_buffer function called between file_scan and _finish_scan. The function reads sections of data from the scanner, and processes it line by line. Thus, pixels can be reorganized in the x-dimension. I am not sure if the amount of data read at once is controllable. I now have a problem where the pixels also need to be rearranged vertically. In particular, the first half of a line corresponds to the second half of a line much further along in the data. Is there any backend that has support for such processing, that I can look at for help? Or have I misunderstood what can be done with the current mp150_fill_buffer function in pixma_mp150.c? Yes, as I answered you, the pixma_mp150 implements a vertical shift reassembling that is needed by the CCD devices, as they produce scans with vertically shifted color planes. Maybe you can just use this, or use some modified version. Nicolas
[sane-devel] question about SANE backend fill_buffer function
Am Dienstag, 7. September 2010, um 21:37:26 schrieb Nicolas Martin: Le mardi 07 septembre 2010 ? 19:47 +0900, Gernot Hassenpflug a ?crit : I now have a problem where the pixels also need to be rearranged vertically. In particular, the first half of a line corresponds to the second half of a line much further along in the data. Is there any backend that has support for such processing, that I can look at for help? Or have I misunderstood what can be done with the current mp150_fill_buffer function in pixma_mp150.c? Yes, as I answered you, the pixma_mp150 implements a vertical shift reassembling that is needed by the CCD devices, as they produce scans with vertically shifted color planes. Maybe you can just use this, or use some modified version. The epson2 backend also has vertical color shifts. Cheers, Reinhold -- -- Reinhold Kainhofer, reinhold at kainhofer.com, http://reinhold.kainhofer.com/ * Financial Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org