[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Ann: KPixmapIO
From:       Geert Jansen <g.t.jansen () stud ! tue ! nl>
Date:       2000-02-26 17:03:08
[Download RAW message or body]

Hi!

I created a small class called KPixmapIO which uses MIT-SHM for converting
images to pixmaps and vice versa. After some testing, the results are
rather pleasing. I measured the following figures, using a 1024x768 test
image:

Image32 -> Pixmap speed  
Pixmap Depth  8		16	    24		32
---------------------------------------------------------
Qt            x        414 ms      227 ms      275 ms
KPixmapIO     x         85 ms       57 ms       32 ms


Image8 -> Pixmap speed  
Pixmap Depth  8		16	    24		32
---------------------------------------------------------
Qt            83 ms     115 ms      155 ms      204 ms
KPixmapIO     x         72 ms       42 ms       63 ms   


Pixmap -> Image speed
Pixmap Depth  8		16	    24		32
---------------------------------------------------------
Qt            64 ms     215 ms      226 ms      255 ms
KPixmapIO     19 ms     108 ms      104 ms      80 ms

x means: Qt is used so there is no speed difference.

If you want to check it out, it can be found at
ftp://ftp.stack.nl/pub/users/geertj/kpixmapio.tar.gz 
It contains the test program I used too.

If other people want to use it too, I can import it to the CVS. 
I wrote it to speed up the transparent backgrounds in konsole
(not yet committed).

Greetings,
 -- 
    Geert Jansen                       email: <g.t.jansen at stud.tue.nl>
    Phylosopher, Physicist,                    email: <jansen at kde.org>           
    KDE enthusiast                                 PGP key ID: 0xD2B5E7CE            

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic