Tech Insider					     Technology and Trends


		   Video for Linux Mailing List Archives

List:       linux-video
Subject:    new zoran-0.5.5 driver
From:       Pauline Middelink <middelin () polyware ! nl>
Date:       1999-04-24 11:29:18

LS,

I'm happy to announce a new version of the zoran driver. It's tested
with against the new xawtv-2.41 (which needs a small patch - attached)

The zoran driver now includes updated drivers for both the saa7110,
the saa7111 (untested) and the saa7185 (untested)

New is a commandline parameter 'swapi2c' to use those zoran cards
which inadvertently switched the i2c SDA/SCL lines. So when you're
ZR36120 based card won't budge, you have another option for trying.
Also improved the Makefile interaction with the settings used during
kernel compilation.

The zoran driver is capable of overlaying and grabbing NTSC/PAL/SECAM
videosources and fullblown scaling. It also allows for reading the
first 22 videolines in YUV422/RGB mode, but I haven't the faintest
clue what use that might bring :) It uses the video_decoder API,
allowing it to use 'foreign' video_decoders.

Since the zr36120 chip is not capable of scatter/gather DMA-lists,
it needs a large chunk of DMA-able memory, supplied by the bigphysarea
patch. This requires a kernel patch! the driver isself runs freely
as a module.

As usual the driver(s) are available at:
	http://www.polyware.nl/~middelin/En/hobbies.html

    Met vriendelijke groet,
        Pauline Middelink
-- 
PGP Key fingerprint = DE 6B D0 D9 19 AD A7 A0  58 A3 06 9D B6 34 39 E2
For more details look at my website http://www.polyware.nl/~middelin

["xawtv-2.41.diff" (text/plain)]

diff -ur -x webcam.c xawtv-2.41/grab-v4l.c xawtv-2.41a/grab-v4l.c
--- xawtv-2.41/grab-v4l.c	Mon Apr 12 20:15:06 1999
+++ xawtv-2.41a/grab-v4l.c	Sat Apr 24 11:31:51 1999
@@ -392,7 +392,8 @@
 #endif
 
     /* unmute */
-    grab_audio(0,-1,&mode);
+    if (capability.audios)
+	    grab_audio(0,-1,&mode);
     return fd;
 
 err:
@@ -421,7 +422,8 @@
 	fprintf(stderr, "v4l: close\n");
 
     /* mute */
-    grab_audio(1,-1,&mode);
+    if (capability.audios)
+	    grab_audio(1,-1,&mode);
 
     close(fd);
     fd = -1;
diff -ur -x webcam.c xawtv-2.41/streamer-old.c xawtv-2.41a/streamer-old.c
--- xawtv-2.41/streamer-old.c	Fri Apr  2 20:14:36 1999
+++ xawtv-2.41a/streamer-old.c	Sat Apr 24 13:08:36 1999
@@ -42,7 +42,7 @@
 
 struct GRAB_FORMAT {
     char *name;
-    int  bt848;
+    int  mode;
     int  mul,div;
     int  post;
     int  can_stdout;
@@ -115,7 +115,7 @@
 	prog = h+1;
     
     fprintf(stderr,
-	    "%s grabs image(s) from a bt848 card\n"
+	    "%s grabs image(s) from a v4l[2] compatible videocard\n"
 	    "\n"
 	    "usage: %s [ options ]\n"
 	    "\n"
@@ -182,7 +182,7 @@
 #define VIDEO_RGB15          2  /* host byte order */
 #define VIDEO_BGR24          4  /* bgrbgrbgrbgr */
 #define VIDEO_RGB24          7  /* rgbrgbrgbrgb */
-	switch (formats[format].bt848) {
+	switch (formats[format].mode) {
 	case VIDEO_PALETTE_RGB555:
 	    params.video_format = VIDEO_RGB15;
 	    break;
@@ -647,12 +647,12 @@
     signal(SIGINT,ctrlc);
 
     /* prepare for grabbing */
-    gb1.format = formats[format].bt848;
+    gb1.format = formats[format].mode;
     gb1.frame  = 0;
     gb1.width  = width;
     gb1.height = height;
 
-    gb2.format = formats[format].bt848;
+    gb2.format = formats[format].mode;
     gb2.frame  = 1;
     gb2.width  = width;
     gb2.height = height;
diff -ur -x webcam.c xawtv-2.41/streamer.c xawtv-2.41a/streamer.c
--- xawtv-2.41/streamer.c	Fri Apr  2 21:16:40 1999
+++ xawtv-2.41a/streamer.c	Sat Apr 24 13:07:53 1999
@@ -39,7 +39,7 @@
 
 struct GRAB_FORMAT {
     char *name;
-    int  bt848;
+    int  mode;
     int  mul,div;
     int  can_stdout;
     int  can_singlefile;
@@ -102,7 +102,7 @@
 	prog = h+1;
     
     fprintf(stderr,
-	    "%s grabs image(s) from a bt848 card\n"
+	    "%s grabs image(s) from a v4l[2] compatible videocard\n"
 	    "\n"
 	    "usage: %s [ options ]\n"
 	    "\n"
@@ -374,7 +374,7 @@
     if (gray && (format == 2)) {
 	formats[format].mul = 1;
 	formats[format].div = 1;
-	formats[format].bt848 = VIDEO_GRAY;
+	formats[format].mode = VIDEO_GRAY;
     }
     if (filename == NULL && !formats[format].can_stdout) {
 	fprintf(stderr,"writing to stdout is not supported for %s\n",
@@ -416,7 +416,7 @@
 #endif
 
     /* set capture parameters */
-    grabber_setparams(formats[format].bt848,&width,&height,
+    grabber_setparams(formats[format].mode,&width,&height,
 		      &linelength,0);
 
     /* TODO: Add a shortcut for single frame captures here.  Forking
@@ -437,7 +437,7 @@
     if (format >= 3 && format <= 4) {
 	struct MOVIE_PARAMS params;
 	memset(&params,0,sizeof(params));
-	params.video_format = formats[format].bt848;
+	params.video_format = formats[format].mode;
         params.width        = width;
         params.height       = height;
         params.fps          = fps;

-- 
         To unsubscribe: mail video4linux-list-request@redhat.com with 
                       "unsubscribe" as the Subject.

			        About USENET

USENET (Users’ Network) was a bulletin board shared among many computer
systems around the world. USENET was a logical network, sitting on top
of several physical networks, among them UUCP, BLICN, BERKNET, X.25, and
the ARPANET. Sites on USENET included many universities, private companies
and research organizations. See USENET Archives.

		       SCO Files Lawsuit Against IBM

March 7, 2003 - The SCO Group filed legal action against IBM in the State 
Court of Utah for trade secrets misappropriation, tortious interference, 
unfair competition and breach of contract. The complaint alleges that IBM 
made concentrated efforts to improperly destroy the economic value of 
UNIX, particularly UNIX on Intel, to benefit IBM's Linux services 
business. See SCO vs IBM.

The materials and information included in this website may only be used
for purposes such as criticism, review, private study, scholarship, or
research.

Electronic mail:			       WorldWideWeb:
   tech-insider@outlook.com			  http://tech-insider.org/