I'm sure the compiler options are same, both use -O3 optimization.

According to the manual of StrongARM SA1100 the 4bpp format is indexed, so I use indexed format. If I use grayscale instead, how can I convert rgb color into grayscale? And where should I initialize the system palette within DirectFB?

Denis Oliver Kropp wrote:

Quoting James Su ([EMAIL PROTECTED]):

A 4bpp grayscale LCD is used. The patch to let DirectFB support 4bpp
pixel format are same for both release.

Are you sure that both versions got compiled with the same compiler options?


btw, the 4bpp patch is not complete. I'll send you the patch as soon as
it's ready.

If you want faster blending and conversion in grayscale you could
make the pixelformat grayscale. It looks as if it's indexed by now.


Benchmarking with 256x256 in 4bit mode... (0bit)

Anti-aliased Text 3.01 secs ( 47.81 KChars/sec)
Fill Rectangles 3.00 secs ( 76.41 MPixel/sec)
Fill Rectangles (blend) 7.19 secs ( 0.91 MPixel/sec)
Fill Triangles 3.02 secs ( 39.09 MPixel/sec)
Fill Triangles (blend) 4.19 secs ( 0.78 MPixel/sec)
Draw Rectangles 3.05 secs ( 1.94 KRects/sec)
Draw Rectangles (blend) 3.09 secs ( 0.16 KRects/sec)
Draw Lines 3.12 secs ( 7.06 KLines/sec)
Draw Lines (blend) 3.21 secs ( 0.62 KLines/sec)
Blit 3.12 secs ( 25.17 MPixel/sec)
Blit colorkeyed 3.05 secs ( 17.17 MPixel/sec)
Blit with format conversion 97.10 secs ( 0.07 MPixel/sec)
Blit from 32bit (alphachannel blend) 77.33 secs ( 0.08 MPixel/sec)
Blit from 8bit palette 34.22 secs ( 0.19 MPixel/sec)
Blit from 8bit palette (alphachannel blend) 65.09 secs ( 0.10 MPixel/sec)
Stretch Blit 3.91 secs ( 8.49 MPixel/sec)
Stretch Blit colorkeyed 7.45 secs ( 4.45 MPixel/sec)



Benchmarking with 256x256 in 4bit mode... (0bit)

Anti-aliased Text 3.00 secs ( 41.96 KChars/sec)
Fill Rectangles 3.07 secs ( 68.33 MPixel/sec)
Fill Rectangles (blend) 7.95 secs ( 0.82 MPixel/sec)
Fill Triangles 3.00 secs ( 34.93 MPixel/sec)
Fill Triangles (blend) 4.79 secs ( 0.68 MPixel/sec)
Draw Rectangles 3.03 secs ( 1.62 KRects/sec)
Draw Rectangles (blend) 3.66 secs ( 0.14 KRects/sec)
Draw Lines 3.05 secs ( 6.55 KLines/sec)
Draw Lines (blend) 4.03 secs ( 0.50 KLines/sec)
Blit 3.15 secs ( 24.95 MPixel/sec)
Blit colorkeyed 3.05 secs ( 17.18 MPixel/sec)
Blit with format conversion 429.42 secs ( 0.01 MPixel/sec)
Blit from 32bit (alphachannel blend) 269.99 secs ( 0.02 MPixel/sec)
Blit from 8bit palette 54.20 secs ( 0.12 MPixel/sec)
Blit from 8bit palette (alphachannel blend) 122.46 secs ( 0.05 MPixel/sec)
Stretch Blit 3.92 secs ( 8.47 MPixel/sec)
Stretch Blit colorkeyed 7.45 secs ( 4.46 MPixel/sec)








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

Reply via email to