From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Antonino A. Daplas" Subject: Re: mono, gray and index configs Date: Fri, 12 Aug 2005 01:34:33 +0800 Message-ID: <42FB8C29.4070503@gmail.com> References: <9e47339105081020216574ac7e@mail.gmail.com> <42FAE3F8.8080902@gmail.com> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1E3GxX-0007dV-JW for linux-fbdev-devel@lists.sourceforge.net; Thu, 11 Aug 2005 10:35:15 -0700 Received: from wproxy.gmail.com ([64.233.184.206]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1E3GxW-0004ZD-Vv for linux-fbdev-devel@lists.sourceforge.net; Thu, 11 Aug 2005 10:35:15 -0700 Received: by wproxy.gmail.com with SMTP id i21so430802wra for ; Thu, 11 Aug 2005 10:35:08 -0700 (PDT) In-Reply-To: Sender: linux-fbdev-devel-admin@lists.sourceforge.net Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Geert Uytterhoeven Cc: Linux Frame Buffer Device Development , Jon Smirl Geert Uytterhoeven wrote: > On Thu, 11 Aug 2005, Antonino Daplas wrote: >> On 8/11/05, Geert Uytterhoeven wrote: >>> On Thu, 11 Aug 2005, Antonino A. Daplas wrote: >>>> that all the lengths = 1 and offsets = 0. Currently, we have no way to >>>> specifically request for mono01, mono10, or 1-bit pseudocolor. Just check >>>> for fix->visual afterwards. >>> For mono01 or mono10, if the visual is pseudocolor, just set the colormap to >>> black/white or white/black. >> I don't know. If I can change the colormap, I would advertise this as >> 1-bit pseudocolor, not monochrome. Otherwise, why differentiate >> between mono01 and mono10 if I can control what color is 0 and what >> color is 1. I think the closest definition of monochrome is 1-bit >> static pseudocolor. And we just have mono01 and mono10 to advertise >> how hardware treats 0/1 (background/foreground or reverse). > > Yes, for advertisement, that's true (cfr. amifb with bpp = 1, which is > pseudocolor). > Ok. > But when the app needs monochrome, it can ask for 1 bpp. If it returns a mono > visual, fine. If it returns a pseudocolor visual, set the colormap to > black/white. > >> I have a few things that are still not clear to me. If I understand >> it correctly, monochrome means 2 colors regardless of the bit depth. > > Monochrome means 2 colors, which are black and white (or white and black). If > the colors are different, it's (static) pseudocolor. > > In fact monochrome is a special case of static pseudocolor. Ok. > >> So it's possible, for example, to have 8-bit monochrome that has only >> two colors, ie 0x00 and 0xff. If this was 8-bit static pseudocolor, > > Yes, cfr. old HP9000/300 graphics hardware. > Hmm. Yes, there's a bug in fbdev then with regards to this hardware. >> then it has 256 different colors. > > Yes. > >> (Depending on how correct I am with the interpretation, there might be >> some bugs in fbdev on how it determines the color depth. No one is >> complaining yet though, so greater than 1-bit monochrome is probably >> rare if not nonexistent.) > > There definitely are bugs w.r.t. this, especially in the 2.4 logo code ;-) > Yes, I would agree. Do you know of any outstanding bugs on color handling in 2.6 code, especially for hardware with bitdepths < 8? I would like to fix them. Tony ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf