From owner-freebsd-multimedia Sun Jul 15 21:27:23 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id EB85E37B401 for ; Sun, 15 Jul 2001 21:27:17 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id WAA60899; Sun, 15 Jul 2001 22:27:13 -0600 (MDT) (envelope-from ken) Date: Sun, 15 Jul 2001 22:27:13 -0600 From: "Kenneth D. Merry" To: Randall Hopper Cc: multimedia@FreeBSD.ORG Subject: Re: Fxtv / G450 hack (was Re: fxtv, G450, & DGA anyone?) Message-ID: <20010715222713.A60880@panzer.kdm.org> References: <20010711224717.A1723@nc.rr.com> <200107121621.f6CGLZk04238@beauty.kobe1995.net> <20010711225308.A1769@nc.rr.com> <20010712001108.A29469@panzer.kdm.org> <20010714214934.A13385@nc.rr.com> <20010714211740.A55034@panzer.kdm.org> <20010715094956.C1240@nc.rr.com> <20010715201038.A60120@panzer.kdm.org> <20010715232138.A2174@nc.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010715232138.A2174@nc.rr.com>; from aa8vb@nc.rr.com on Sun, Jul 15, 2001 at 11:21:38PM -0400 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Jul 15, 2001 at 23:21:38 -0400, Randall Hopper wrote: > Kenneth D. Merry: > |> http://people.freebsd.org/~rhh/fxtv/dgatest.c > |> http://people.freebsd.org/~rhh/fxtv/dgafbtest.c > |> http://people.freebsd.org/~rhh/fxtv/tv-dgatest.c > | > |The first one works, I suppose. The second one doesn't work like it's > |supposed to. It's kinda hard to describe, so I put an X window dump here: > | > |http://people.FreeBSD.org/~ken/foo.xwd.gz > | > |The colors are off, but I think only the vertical line in the top left > |corner was yellow. > > It's mis-guessing your 24bpp mode has 4 bytes per pixel when it has 3. The > alternating colors indicate that. I see the same here when I run "--depth > 24". Try this in your Fxtv app-default file; that fixes it here: > > ! Video-mode specific stuff > Fxtv.bswap2Bpp: true > Fxtv.bswap3Bpp: true > Fxtv.bswap4Bpp: true > Fxtv.wswap4Bpp: true > Fxtv.Bpp24bit: 3 > Fxtv.Bpp32bit: 4 > > |# ./tv-dgatest > ... > |Using Pixel Format: > | Bpp,shifts[R,G,B],masks[R,G,B],byteswap = > | 4,16,8,0,ff0000,00ff00,0000ff,1 > ^ > > Yep, that's what's going on. The Bpp24bit=3 setting should do the trick. Unfortunately that doesn't seem to have any effect. The Bpp24bit setting was already 3 in my app-defaults file. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message