> Hi,
>
> I would like to use DirectFb to display
> High Resolution Camera frames (1024x1024 , 12fps).
>
> But the only 8 bit depth pixel format is RGB332 (wrong ?)

wrong. there is also an A8 pixel format (8 bit alpha information).


> and I got 8 bit depth pixel that code 256 gray levels [from 0->255] !

do you want to set an 8 bit video mode, or just an 8 bit surface for the
camera output.

in the second case, you could you could use an A8 surface for the camera
and create a gray image based on the "alpha" information.

=> Thanks Andi. In my case I use i810 gfxdriver
and it seems that I got bad figure using "alpha"  :
(without --dfb:no-hardware it does not work)

./df_dok --dfb:no-hardware
       ---------------------- DirectFB v0.9.10 ---------------------
              (c)2000-2002  convergence integrated media GmbH
        -----------------------------------------------------------

(*) Single Application Core. (with MMX support)
(*) DirectFB/misc/memcpy: using MMXEXT optimized memcpy()
(!) DirectFB/Keyboard: TIOCNOTTY failed!
    --> Inappropriate ioctl for device
(*) DirectFB/InputDevice: Keyboard 0.9 (convergence integrated media GmbH)
(*) MMX detected and enabled
(*) DirectFB/GraphicsDevice: MMX Software Rasterizer 0.5 (convergence
integrated media GmbH)
(*) DirectFB/Interface: Loaded 'PNG' implementation of
'IDirectFBImageProvider'.
(*) DirectFB/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.

Benchmarking with 256x256 in 16bit mode... (16bit)

Anti-aliased Text                      3.05 secs (   51.92 KChars/sec)
Fill Rectangles                        3.03 secs (  225.02 MPixel/sec)
Fill Rectangles (blend)                3.27 secs (   10.03 MPixel/sec)
Fill Triangles                         3.02 secs (  188.02 MPixel/sec)
Fill Triangles (blend)                 3.24 secs (   10.12 MPixel/sec)
Draw Rectangles                        3.01 secs (   10.07 KRects/sec)
Draw Rectangles (blend)                3.03 secs (    1.49 KRects/sec)
Draw Lines                             3.01 secs (   40.16 KLines/sec)
Draw Lines (blend)                     3.07 secs (    6.18 KLines/sec)
Blit                                   3.00 secs (  148.35 MPixel/sec)
Blit colorkeyed                        3.00 secs (  144.08 MPixel/sec)
Blit with format conversion            3.01 secs (   39.19 MPixel/sec)
Blit from 32bit (alphachannel blend)   3.23 secs (    8.12 MPixel/sec)
Stretch Blit                           3.58 secs (  169.64 MPixel/sec)
Stretch Blit colorkeyed                6.94 secs (   47.70 MPixel/sec)


in the first case we _could_ support to set a palette in DirectFB. in
that case, blending and format conversion would be broken, but for
simple non blenden 2d graphics this should be enough (if someone knows
what he is doing).

=> Do you have an idea of how long it would take ?


andi

---
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-users" as subject.





-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to