On Thu, Jul 10, 2003 at 09:20:36PM +0200, Grzegorz Adam Hankiewicz wrote: > On 2003-06-21, Grzegorz Adam Hankiewicz <[EMAIL PROTECTED]> wrote: > > Some time ago I asked a few questions and now I've finally taken > > some time to implement what I wanted. I wrote this example to > > contribute back, which you can include in the main DirectFB > > distribution. The example is a simple implementation of a > > monochrome blitter, where the source font is stored in a 1-bit > > fashion and the hardware colorizes it on the destination. > > > > With the learned knowledge I plan to write a console hardware > > accelerated emulation driver for a console program. > > > > I have still some questions: if you change the depth of the text > > surface to LUT8 and rename the code to use the *Index() functions, > > nothing is blitted on the screen. Do I need a palette to make > > this happen?
LUT8 surfaces always have a palette. The palette is initialized to RGB332 by default. > > What is more optimum for such an application? 8bit -> > > 32bit, 8bit -> 8bit, 32bit -> 32bit? The current example seems to > > run extremely fast on my MG450, even though it is not optimized and > > does really stupid things, but I guess others have slower cards. It's somewhat hardware specific. For example fonts are handled as A8 on G400+ and as ARGB on G200 because it doesn't support A8. LUT8 is not accelerated on either card. And obviously the source data has to be in video RAM to get hw acceleration. -- Ville Syrj�l� [EMAIL PROTECTED] http://www.sci.fi/~syrjala/ -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-users" as subject.
