[sane-devel] Basic Image Buffering

2009-02-03 Thread dio.rah...@gmail.com
Dear all, I have a basic question on buffering the image. Suppose I have an image data pointer * imageData; and I have image dimension information i.e. width and height. I need to copy the bytes read from the scanning process i.e. in the buffer (sane_read(buffer,buffer_size,len)) to the image

[sane-devel] Basic Image Buffering

2009-02-03 Thread dio.rah...@gmail.com
yeah -- it works; I use OpenCV to buffer the image -- with the size the same as the param.pixels_per_line * param.line (width * height) On 2/3/09, m. allan noah kitno455 at gmail.com wrote: but when you use scanimage, it works? what image format are you saving it as? allan On Mon, Feb 2,

[sane-devel] Disable unsupported devices in udev libsane.rules?

2009-02-03 Thread Olaf Meeuwissen
A non-text attachment was scrubbed... Name: sane-desc.c.diff Type: text/x-diff Size: 716 bytes Desc: drop devices with unsupported or unknown status from the databases Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20090203/5416d2b0/attachment.diff

[sane-devel] Basic Image Buffering

2009-02-03 Thread dio.rah...@gmail.com
yes it is. I will try to check it again. But AFAIK the fwrite and memory copy like this would be the same. On 2/3/09, m. allan noah kitno455 at gmail.com wrote: So if you output the image from your code to disk as a pnm, instead of handing it to opencv, does it look right? allan On Mon,

[sane-devel] Disable unsupported devices in udev libsane.rules?

2009-02-03 Thread Johannes Meixner
Hello, On Feb 3 11:23 Olaf Meeuwissen wrote (shortened): m. allan noah kitno455 at gmail.com writes: On Thu, Jan 29, 2009 at 10:27 AM, Johannes Meixner jsmeix at suse.de wrote: ... I like to suggest to disable those entries in the udev rules file which belong to unsupported devices (at

[sane-devel] Disable unsupported devices in udev libsane.rules?

2009-02-03 Thread Julien BLACHE
Olaf Meeuwissen olaf.meeuwissen at avasys.jp wrote: Hi, That is to say, the problem is with sane-desc, not in the .desc files. If I understood what the code does correctly the attached patch should fix it. The patch throws away anything after the first unsupported scanner for a given