Date: Thu, 6 Mar 1997 02:34:43 -0500 (EST) From: Thomas Arnold <tom@inna.net> To: Amancio Hasty <hasty@rah.star-gate.com> Cc: multimedia@freebsd.org, luigi@labinfo.iet.unipi.it Subject: Re: Video Capture for FreeBSD Message-ID: <Pine.BSI.3.95.970306022729.13517C-100000@caught.inna.net> In-Reply-To: <199703060618.WAA00815@rah.star-gate.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks! It looks ugly but I defined : char bigbuff[921600] then changed the writing routine to look like : for (c = 0 ; c < ROWS*COLS*3; c++) { bigbuff[c]= ((*rgb16 >> 7) & 0xf8); /* r */ c++; bigbuff[c]= ((*rgb16 >> 2) & 0xf8); /* g */ c++; bigbuff[c]= ((*rgb16++ << 3) & 0xf8); /* b */ } write(o, &bigbuff[0], 921600); I would be interested in seeing how this could be done more elegantly. Thanks! It now runs in 2.54 seconds! I can take my QuickCam off the air and replace it with the WinTV card and a security camera. +-----------------------------------------------+ : Tom Arnold - No relation to Rosanne : : SysAdmin/Pres - TBI, Ltd ( inna.net ) : : The Middle Peninsula's Internet Connection : +-----------------------------------------------+
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.95.970306022729.13517C-100000>