From owner-freebsd-multimedia Thu Feb 26 20:32:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA13565 for freebsd-multimedia-outgoing; Thu, 26 Feb 1998 20:32:21 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from rah.star-gate.com ([209.133.7.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA13556 for ; Thu, 26 Feb 1998 20:32:18 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Received: from rah (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.8/8.8.8) with ESMTP id UAA18678; Thu, 26 Feb 1998 20:32:10 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Message-Id: <199802270432.UAA18678@rah.star-gate.com> X-Mailer: exmh version 2.0gamma 1/27/96 To: brian@worldcontrol.com cc: hasty@star-gate.com, freebsd-multimedia@FreeBSD.ORG Subject: Re: data format for meteor/bt848 METEOR_GEO_YUV_12 mode? In-reply-to: Your message of "Thu, 26 Feb 1998 20:12:00 PST." <19980226201200.A3016@top.worldcontrol.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 26 Feb 1998 20:32:10 -0800 From: Amancio Hasty Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org For the meteor, you can look it up at : ftp://rah.star-gate.com/pub/saa7196.pdf For the bt848 driver : Y = (x * y) U = (x/2 * y/2 ) v = (x/2 * y/2 ) The actual routine which does the dma transfer is yuv12_prog: ... for (i = 0; i < (rows/interlace )/2 ; i++) { *dma_prog++ = inst; *dma_prog++ = cols/2 | (cols/2 << 16); *dma_prog++ = target_buffer; *dma_prog++ = t1 + (cols*rows) + i*cols/2 * interlace; *dma_prog++ = t1 + (cols*rows) + (cols*rows/4) + i*cols/2 * inte rlace; target_buffer += interlace*cols; *dma_prog++ = inst1; *dma_prog++ = cols/2 | (cols/2 << 16); *dma_prog++ = target_buffer; target_buffer += interlace*cols; } .... Have Fun, Amancio To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message