sane-project-website/old-archive/1997-05/0117.html

63 wiersze
3.4 KiB
HTML

<!-- received="Wed Jun 18 16:21:17 1997 MST" -->
<!-- sent="Wed, 18 Jun 1997 19:14:37 -0400 (EDT)" -->
<!-- name="Andrew Kuchling" -->
<!-- email="amk@magnet.com" -->
<!-- subject="Re: QuickCam bit depth wired to 8: why?" -->
<!-- id="199706182314.TAA04186@lemur.magnet.com" -->
<!-- inreplyto="199706182246.PAA21642@panda.mosberger" -->
<title>sane-devel: Re: QuickCam bit depth wired to 8: why?</title>
<h1>Re: QuickCam bit depth wired to 8: why?</h1>
<b>Andrew Kuchling</b> (<a href="mailto:amk@magnet.com"><i>amk@magnet.com</i></a>)<br>
<i>Wed, 18 Jun 1997 19:14:37 -0400 (EDT)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#117">[ date ]</a><a href="index.html#117">[ thread ]</a><a href="subject.html#117">[ subject ]</a><a href="author.html#117">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0118.html">David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"</a>
<li> <b>Previous message:</b> <a href="0116.html">David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"</a>
<li> <b>In reply to:</b> <a href="0116.html">David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0118.html">David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"</a>
<li> <b>Reply:</b> <a href="0118.html">David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"</a>
<li> <b>Reply:</b> <a href="0119.html">David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt; So, the intent is that the qcam backend scales 4 and 6 bit samples to</i><br>
<i>&gt; 8 bit samples. Then everything will work as intended.</i><br>
<p>
Hmm... the sample color QuickCam image on the SANE page looks<br>
OK, but it doesn't seem as if the B&amp;W version is doing the scaling.<br>
I'm willing to fix the problem and submit a patch if someone can tell<br>
me where the scaling code should go. Would it simply be a matter of<br>
adding a scaling loop just before the following code in<br>
reader_process()? <br>
<p>
/* now write the whole thing to the main process: */<br>
if (fwrite (src, 1, num_bytes, ofp) != num_bytes)<br>
...<br>
<p>
<p>
Andrew Kuchling<br>
<a href="mailto:amk@magnet.com">amk@magnet.com</a><br>
<a href="http://people.magnet.com/%7Eamk/">http://people.magnet.com/%7Eamk/</a><br>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0118.html">David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"</a>
<li> <b>Previous message:</b> <a href="0116.html">David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"</a>
<li> <b>In reply to:</b> <a href="0116.html">David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0118.html">David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"</a>
<li> <b>Reply:</b> <a href="0118.html">David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"</a>
<li> <b>Reply:</b> <a href="0119.html">David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"</a>
<!-- reply="end" -->
</ul>