From owner-freebsd-hackers Sun Dec 10 10:40:27 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA28348 for hackers-outgoing; Sun, 10 Dec 1995 10:40:27 -0800 (PST) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA28334 for ; Sun, 10 Dec 1995 10:40:20 -0800 (PST) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id TAA03070; Sun, 10 Dec 1995 19:37:50 +0100 From: Luigi Rizzo Message-Id: <199512101837.TAA03070@labinfo.iet.unipi.it> Subject: Re: nv and cuseeme mode To: frederic@parc.xerox.com (Ron Frederick) Date: Sun, 10 Dec 1995 19:37:50 +0100 (MET) Cc: multimedia@star-gate.com, hackers@freebsd.org In-Reply-To: <95Dec10.100553pst.16136@ecco.parc.xerox.com> from "Ron Frederick" at Dec 10, 95 10:05:19 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@freebsd.org Precedence: bulk > As far as I have been told, CUSeeMe is only capable of coping with sizes > 160x120 and 320x240. This isn't something I have control over in nv. The only > way to make it work with PAL inputs, or other inputs that do not match one of > its supported sizes, is to actually take the incoming image and crop or > rescale it to one of the supported sizes before it is encoded. > > No patch or workaround to this problem is available at this time. Right. What I did was to modify the "meteor_grab.c" sources to always return a NTSC geometry. Cropping within nv is probably more portable. BTW, is CUSeeme black&white only ? > > * the incoming packet type in CUSeeMe_Decode is seen as 256 instead of > > 1. Swapping the bytes makes the rest of the code be called, but > > evidently there are other parts of the code where endiannes is > > important. > > > This is a known bug. There's also another endian bug in the decode routine > which causes it to display a distorted image, with alternating pixels swapped. > Patches for both of these are below: Thanks for the patches. One comment, the large tables used in the code *might* be initialized at run time depending on the endiannes of the system. Probably easier to maintain. Satoshi, could you please update the port of nv with the patches from Ron ? Luigi ==================================================================== Luigi Rizzo Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it Universita' di Pisa tel: +39-50-568533 via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 http://www.iet.unipi.it/~luigi/ ====================================================================