sane-project-website/old-archive/1996-12/0050.html

94 wiersze
4.9 KiB
HTML

<!-- received="Mon Jan 27 10:13:01 1997 MST" -->
<!-- sent="Mon, 27 Jan 1997 10:16:59 -0700" -->
<!-- name="David Mosberger-Tang" -->
<!-- email="davidm@azstarnet.com" -->
<!-- subject="repeat post: xcam frontend for SANE" -->
<!-- id="199701271716.KAA25649@panda.mosberger" -->
<!-- inreplyto="" -->
<title>sane-devel: repeat post: xcam frontend for SANE</title>
<h1>repeat post: xcam frontend for SANE</h1>
<b>David Mosberger-Tang</b> (<a href="mailto:davidm@azstarnet.com"><i>davidm@azstarnet.com</i></a>)<br>
<i>Mon, 27 Jan 1997 10:16:59 -0700</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#50">[ date ]</a><a href="index.html#50">[ thread ]</a><a href="subject.html#50">[ subject ]</a><a href="author.html#50">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0051.html">David Mosberger-Tang: "[dirk@informatik.uni-frankfurt.de: Re: Paragon 600 SP with mscan-0.1/tkmscan [patches]]"</a>
<li> <b>Previous message:</b> <a href="0049.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: Get-Option ..."</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0053.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: repeat post: xcam frontend for SANE"</a>
<li> <b>Reply:</b> <a href="0053.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: repeat post: xcam frontend for SANE"</a>
<li> <b>Maybe reply:</b> <a href="0054.html">David Mosberger-Tang: "Re: repeat post: xcam frontend for SANE"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
I just noticed that this mail never made it to sane-devel. It's a bit<br>
dated, but may still prove informative. Caveat: 0.42 is just about to<br>
be released (hopefully tomorrow) and there were many xcam<br>
fixes/improvements (especially in the area of TrueColor rendering).<br>
<p>
Enjoy,<br>
--david<br>
<pre>
---
Well, I just couldn't have it that I had to fall back to xqcam to get
some "video" out of my QuickCam. So I quickly implemented a GTK-based
frontend. I'm sure it has lots of bugs left, but it seems to work
reasonably well on my Alpha (I shall test it on an x86 sometime soon).
Mind you, it doesn't attempt to save the video stream etc, but it's
quite handy for tuning the camera to the right parameter set. I have
tested it on 8 bit displays only, though 15, 16, 24, and 32 bit
displays should work too (let me know if you test this).
<p>
The neat thing is that you can use xcam even to display images
acquired with the PNM backend. So you don't really have to have a
video camera to take a peek at xcam.
<p>
BIG CAVEAT: I had to get the GTK library that comes with the December
1996 snapshot of GIMP. Earlier versions gave me some bad core dumps
in certain situations. With the latest snapshot, I have not had any
problems so far.
<p>
It's all at:
<p>
<a href="ftp://ftp.azstarnet.com/pub/linux/axp/sane/sane-0.41.tar.gz">ftp://ftp.azstarnet.com/pub/linux/axp/sane/sane-0.41.tar.gz</a>
<p>
Tristan: you'll find a file called frontend/gtkglue.c that is
liberally sprinkled with code that I stole from xscan. The xcam and
xscan frontends should be able to share a big amount of code so I
started moving everything that ought to be shareable into gtkglue.c.
I haven't changed xscan to use gtkglue yet, however (didn't want to
mess up your code). Maybe you could take a peek at it and let me know
what you think? Another area where code could be shared is for the
preview window (image-dithering, scaling, selection, and all).
<p>
Finally, I found that the "first_frame" field in the parameter
structure to be rather useless. I'd much prefer to have a
"last_frame" field that tells you when the last frame in an image
arrived. Anybody have any objections to this? I can think of a
reason to want "first_frame" (since it will always be true for the
first frame after sane_start), but "last_frame" would be extremely
handy (e.g., xcam would decode/buffer frames until it hits the
last_frame, and then actually render the collected image).
<p>
Enjoy,
--david
<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: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@azstarnet.com">majordomo@azstarnet.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0051.html">David Mosberger-Tang: "[dirk@informatik.uni-frankfurt.de: Re: Paragon 600 SP with mscan-0.1/tkmscan [patches]]"</a>
<li> <b>Previous message:</b> <a href="0049.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: Get-Option ..."</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0053.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: repeat post: xcam frontend for SANE"</a>
<li> <b>Reply:</b> <a href="0053.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: repeat post: xcam frontend for SANE"</a>
<li> <b>Maybe reply:</b> <a href="0054.html">David Mosberger-Tang: "Re: repeat post: xcam frontend for SANE"</a>
<!-- reply="end" -->
</ul>