From owner-freebsd-multimedia Wed Mar 5 22:19:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA19265 for multimedia-outgoing; Wed, 5 Mar 1997 22:19:06 -0800 (PST) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA19256 for ; Wed, 5 Mar 1997 22:19:01 -0800 (PST) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.5/8.7.3) with ESMTP id WAA00815; Wed, 5 Mar 1997 22:18:56 -0800 (PST) Message-Id: <199703060618.WAA00815@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: Thomas Arnold cc: Steve Passe , Jamie Bowden , multimedia@freebsd.org Subject: Re: Video Capture for FreeBSD In-reply-to: Your message of "Thu, 06 Mar 1997 00:49:34 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 05 Mar 1997 22:18:56 -0800 From: Amancio Hasty Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Try compiling rgb16 as: cc -o rgb16 -m486 -O2 rgb.c Good luck, Amancio >From The Desk Of Thomas Arnold : > 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 : > +-----------------------------------------------+ >