From owner-freebsd-hackers Tue Jan 23 13:56:35 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA21291 for hackers-outgoing; Tue, 23 Jan 1996 13:56:35 -0800 (PST) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA21274 for ; Tue, 23 Jan 1996 13:56:26 -0800 (PST) Received: from rah.star-gate.com (localhost.v-site.net [127.0.0.1]) by rah.star-gate.com (8.6.12/8.6.12) with ESMTP id NAA02080; Tue, 23 Jan 1996 13:54:52 -0800 Message-Id: <199601232154.NAA02080@rah.star-gate.com> X-Mailer: exmh version 1.6.5 12/11/95 To: Terry Lambert cc: james@miller.cs.uwm.edu (Jim Lowe), dufault@hda.com, hackers@FreeBSD.org, jkh@time.cdrom.com, luigi@labinfo.iet.unipi.it, multimedia@rah.star-gate.com Subject: Re: Amancio's tv program with capture! In-reply-to: Your message of "Tue, 23 Jan 1996 14:31:03 MST." <199601232131.OAA18383@phaeton.artisoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 23 Jan 1996 13:54:51 -0800 From: "Amancio Hasty Jr." Sender: owner-hackers@FreeBSD.org Precedence: bulk >>> Terry Lambert said: > What is it you want, and what does any of this have to do with Xshm? Well okay, let me try to clarify the issue. tv mmaps a region to be used by the matrox meteor to dump the data to: yuv_data = (uint8 *)mmap((caddr_t)0, frame_size, PROT_READ,0, video, (off_t)0); --- The Xshm memory bits comes into play like this: ximage = XShmCreateImage (display, fc_visual, depth, ZPixmap, NULL, &shminfo, vid_stream->mb_width, vid_stream->mb_height); shminfo.shmid = shmget (IPC_PRIVATE, ximage->bytes_per_line * ximage->height, IPC_CREAT | 0777); shminfo.shmaddr = ximage->data = shmat (shminfo.shmid, 0, 0); shminfo.readOnly = True; XShmAttach (display, &shminfo); --- What we want is to dump the data that the meteor captures directly into the card's frame buffer. If you don't understand this then lets take this privately between Jim, you and I. Thats all folks, Amancio