From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3097a657c517ca8d X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-09-17 14:47:36 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!wupost!howland.reston.ans.net!spool.mu.edu!olivea!decwrl!pa.dec.com!uvo.dec.com!brsux0.bro.dec.com!dierick From: dierick@brsux0.bro.dec.com (Dierick Dominique) Subject: Re: live video / optimiztion help needed Message-ID: <1993Sep17.165548.10107@decuk.uvo.dec.com> Sender: usenet@decuk.uvo.dec.com Reply-To: dierick@ketje.enet.dec.com Organization: Digital Equipment Corporation, Brussels References: Date: Fri, 17 Sep 1993 16:55:48 GMT In article , lazlo@netcom.com (Bob Palermo) writes: >Newsgroups: comp.unix.osf.osf1 >From: lazlo@netcom.com (Bob Palermo) >Subject: live video / optimiztion help needed > > > I'm trying to simulate live video on a Alpha AXP 3000/400 with 64 meg > of RAM and running OSF 1.2 (soon to be OSF 1.3) and X11R5. I am > running with my DISPLAY set to local:0, since I read in the > OSF news group that this causes the client/server communications > to be performed using shared memory. I am trying to display the > video in a 512x512 motif drawing area widget. > > To achieve "live video" I would ideally need to display about 30 > frames/sec(fps). I Would be happy with 15 to 20 fps. Currently > I am only getting about 5 fps so any improvement would be welcome. > > One of the problems I am having is that the data I receive from > the camera contains 256 gray levels and my colormap only has 128 > gray levels (I can't use all 256 colormap entries because I > need to maintain other colors on the display). As a result, I > need to map each frame into my colormap. I am currently doing > this using a lookup table. > > The other source of slowness is that the data I am getting is > in ZPixmap format and the only way I know of to get that into Have you tried using the MITSHM extensions of the X Server ? I don't know your application but maybe you can avoid GetImage/PutImage and rely on CopyArea from a MITSHM Pixmap. This would accelerate things. Dominique Dierick