søn, 02.04.2006 kl. 15.35 skrev Kyrre Ness Sjobak:
> Hello
>
> I am currently writing a small frontend for ivtv, and just now i'm
> writing a wrapper for ivtv-tune for Java. It works like a charm, and is
> compatible with gcj. I will post it here as soon as the wrapper is done.
>
> But there is one thing that would be great if was changed: ivtv-tune.c
> (witch is well written and completly understandable code, even from a C
> non-guru as me) line 166-169 currently reads:
>
> printf("%s: %.3f MHz", device, frequency/1000.0);
> if (vt.signal)
> printf(" (Signal Detected)");
> printf("\n");
>
> Could this be changed to:
>
> printf("%s:\t%.3f MHz", device, frequency/1000.0);
> if (vt.signal)
> printf("\t(Signal Detected)");
> printf("\n");
>
> that is - add a \t as a separator, as is done in the channel/frequency
> listings? That would make the output much easier to parse (even if would
> have to make a check for the output of ivtv-tune --version, and if
> version is *fixed*, then parse with .split("\t"), else do some magic i
> haven't figured out yet. It will be uglier, that is for sure...
>
> Just rigth now i'm only looking to check for the "(Signal detected)"
> part, as i want to set a flag if there is a signal on the channel, so
> that shouldn't be to hard...
>
> You may anticipate a small command-line frequency/channel scanning
> utility coming to this mailinglist Pretty Soon Now ;) - complete with
> both main(String[] args) so it can be run stand-alone, and an externaly
> accessible API to be embedded in the upcomming gtk tuner app :)
>
> If there is any chance for CVS/SVN access at the ivtv site, that migth
> be a good place to host it. Or i may try to get a sf.net site (if i can
> remember my sf.net password...)
>
> --- KyrreThat change isn't really needed anyway. But, i have a suprise for you! A Java API for ivtv-tune, a test-app for testing that that works, and even a small Java app/API for scanning trough channels! Its not interfacing ivtv directly trough API, the ivtv-tune frontend communicates with ivtv-tune trough commands. I am very open for comments on the code - they are more than welcome. Note: in the scanning app, --blah= options are listed under usage, but they are not implemented yet. I know how to do it, i just haven't done it (yet) There is one thing i wonder about ivtv supported tuners and frequencies: How do i get the highest and lowest frequency a tuner can tune in to, and how small intervals can it take? How do i ask that? Or is there a hard-coded value i may use? --- Kyrre
givtv.tar.gz
Description: application/compressed-tar
_______________________________________________ ivtv-users mailing list [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-users
