Fwd: Re: [Kde-imaging] kdeextragear-libs-1/kipi-plugins
Renchi Raju
renchi at pooh.tam.uiuc.edu
Thu Jun 17 01:11:17 CEST 2004
On Wed, 16 Jun 2004, Aurelien Gateau wrote:
> Le mercredi 16 Juin 2004 18:43, Caulier Gilles a écrit :
> > Le mercredi 16 Juin 2004 01:41, Aurelien Gateau a écrit :
> > > Le mardi 15 Juin 2004 01:01, Renchi Raju a écrit :
> > > > i'm not in favor of using imlib2 for this purpose,
> > >
> > > [snip]
> > > I for one am not in favor of making imlib2 a dependency of kipi-plugins
> > > or even worse libkipi because it's not installed with KDE. One of
> > > Gwenview goals is to be simple to install, so requiring lots of libs is
> > > not good to me.
> >
> > Hum, imlib is a very powerfull API for images manipulations. It's very very
> > fast (MMX, SSE optimized). Do you know ?
>
> I would be very interested to have numbers regarding Imlib2 and Qt
> performances. Did you make some comparison on common features (scaling,
> matrix transforming, depth conversion...) ?
here are results from my benchmarking (code attached. note there is
substantial memory leak in the code which i didn't fix). depth conversion
is not possible with imlib2 :
(the scaling is to 50% of original size).
On a 1600x1200 jpeg file:
Load Image(imlib2): 174.66800 ms
Load Image(qimage): 239.10600 ms
Smooth Scale Image(imlib2): 40.62600 ms
Smooth Scale Image(qimage): 177.22400 ms
Approximate Scale Image(imlib2): 14.59800 ms
Approximate Scale Image(qimage): 17.78500 ms
Rotate image 90 degrees(imlib2): 126.99100 ms
Rotate image 90 degrees(qimage): 270.97400 ms
On a 2592x1944 png file:
Load Image(imlib2): 619.72100 ms
Load Image(qimage): 637.06100 ms
Smooth Scale Image(imlib2): 103.42200 ms
Smooth Scale Image(qimage): 467.91400 ms
Approximate Scale Image(imlib2): 39.18300 ms
Approximate Scale Image(qimage): 45.87900 ms
Rotate image 90 degrees(imlib2): 334.08900 ms
Rotate image 90 degrees(qimage): 442.88000 ms
this is on a athlon 1900+ on debian testing/unstable. on debian the imlib2
library is compiled without mmx optimization.
regards,
renchi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: benchmark.cpp
Type: text/x-c++src
Size: 3275 bytes
Desc:
Url : http://mail.kde.org/pipermail/kde-imaging/attachments/20040616/c0a96e5e/benchmark-0001.bin
More information about the Kde-imaging
mailing list