From owner-freebsd-multimedia Wed May 28 05:00:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA08229 for multimedia-outgoing; Wed, 28 May 1997 05:00:25 -0700 (PDT) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id FAA08224 for ; Wed, 28 May 1997 05:00:21 -0700 (PDT) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id NAA17044; Wed, 28 May 1997 13:24:46 +0200 From: Luigi Rizzo Message-Id: <199705281124.NAA17044@labinfo.iet.unipi.it> Subject: Re: bt848 status, comments and diffs To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Wed, 28 May 1997 13:24:46 +0200 (MET DST) Cc: hasty@rah.star-gate.com, luigi@iet.unipi.it, multimedia@FreeBSD.ORG In-Reply-To: <199705272236.AAA16301@labinfo.iet.unipi.it> from "Luigi Rizzo" at May 28, 97 00:36:37 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Yet another version of brooktree848.c with the cleanups I was mentioning in my previous postings. The code is available at http://www.iet.unipi.it/~luigi/brooktree848.c I have tested it and it seems to work in both packed and planar mode, with single frame capture. It works with the old and the new grabber-meteor.cc Try it if you can, and send feedback. I have left the rgb_ code untouched, since amancio is probably working on that. In passing, I noticed that the clipping features of the Bt848 are quite powerful. A better way to exploit them would be, probably, to let the application program pass the clipping shape in raster format, rather than pass it as a set of rectangles. This would allow complex figures (e.g. clipping into circles, ovals etc. which are not possible now, and do not require time-consuming computations from the kernel like sorting rectangles etc. Basically, I would describe a clipping shape as a sequence of lines BEGIN (skip n1 write n2) * (one per row in the output) and let the driver just translate this into Bt848 instructions. The above description can be as small as 32 bit/row. Cheers 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/ _____________________________|______________________________________