From owner-freebsd-multimedia Wed Mar 5 21:51:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA14744 for multimedia-outgoing; Wed, 5 Mar 1997 21:51:09 -0800 (PST) Received: from tyger.inna.net (root@tyger.inna.net [206.151.66.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA14739 for ; Wed, 5 Mar 1997 21:51:03 -0800 (PST) Received: from caught.inna.net (caught.inna.net [206.151.66.7]) by tyger.inna.net (8.8.3/8.7.3) with SMTP id AAA29151; Thu, 6 Mar 1997 00:54:43 -0500 (EST) Date: Thu, 6 Mar 1997 00:49:34 -0500 (EST) From: Thomas Arnold To: Amancio Hasty cc: Steve Passe , Jamie Bowden , multimedia@freebsd.org Subject: Re: Video Capture for FreeBSD In-Reply-To: <199703060404.UAA00323@rah.star-gate.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 5 Mar 1997, Amancio Hasty wrote: > recompile rgb16 with debug option: > > cc -g -o rgb16 rgb16.c > > Now, step thru it, > > Until you find the system call which is giving you the headache Welp. Its not one call. Its : for (c = 0 ; c < ROWS*COLS; c++) { b[0]= ((*rgb16 >> 7) & 0xf8); /* r */ b[1]= ((*rgb16 >> 2) & 0xf8); /* g */ b[2]= ((*rgb16++ << 3) & 0xf8); /* b */ write(o, &b[0], 3); That routine is slower then dirt! California moves faster then it does on this box. :-) Last time ./rgb16 I ran was 18.5 seconds and the machine was -pasted-. It may be I just cant use it on this box, but I can't beleive it is -SOOO- much slower then a Pentium box... The Machine is an X5-133 ( 486 class ) UMC Chipset motherboard. Any ideas or should I just upgrade the Motherboard too? This machine is just our little-used Shell box and User-Page Webserver. I wanted to give it a little something else to do once a minute. :-) +-----------------------------------------------+ : Tom Arnold - No relation to Rosanne : : SysAdmin/Pres - TBI, Ltd ( inna.net ) : : The Middle Peninsula's Internet Connection : +-----------------------------------------------+