Fwd: Re: [Kde-imaging] kdeextragear-libs-1/kipi-plugins

Gilles Caulier caulier.gilles at free.fr
Thu Jun 17 13:15:26 CEST 2004


Le jeudi 17 Juin 2004 01:11, Renchi Raju a écrit :
> 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

On my computer (1Gb RAM - imlib2 not mmx/sse optimized !)  :

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 1
model name      : Intel(R) Pentium(R) 4 CPU 1.60GHz
stepping        : 2
cpu MHz         : 1594.190
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips        : 3153.92

With a PNG file :

[gilles at pc-caulier bin]$ 
identify /home/gilles/Documents/Photos/1/Adrien002.png
/home/gilles/Documents/Photos/1/Adrien002.png PNG 1280x871+0+0 DirectClass 
8-bit 795kb 0.190u 0:01

gilles at pc-caulierbin]$ ./benchmark /home/gilles/Documents/Photos/1/Adrien002.p
Load Image(imlib2):  225.07700 ms
Load Image(qimage):  214.87000 ms
Smooth Scale Image(imlib2):   58.49700 ms
Smooth Scale Image(qimage):  160.04200 ms
Approximate Scale Image(imlib2):    8.33200 ms
Approximate Scale Image(qimage):   15.58300 ms
Rotate image 90 degrees(imlib2):   76.03500 ms
Rotate image 90 degrees(qimage):  218.57300 ms

With a JPEG file :

[gilles at pc-caulier bin]$ 
identify /home/gilles/Documents/Photos/1/Adrien007.JPG
/home/gilles/Documents/Photos/1/Adrien007.JPG JPEG 2048x1536+0+0 DirectClass 
8-bit 686kb 0.000u 0:01

gilles at pc-caulierbin]$ ./benchmark /home/gilles/Documents/Photos/1/Adrien007.JPG
Load Image(imlib2):  335.55300 ms
Load Image(qimage):  382.46300 ms
Smooth Scale Image(imlib2):  113.95900 ms
Smooth Scale Image(qimage):  441.21600 ms
Approximate Scale Image(imlib2):   27.17200 ms
Approximate Scale Image(qimage):   34.24400 ms
Rotate image 90 degrees(imlib2):  763.89000 ms
Rotate image 90 degrees(qimage):  611.10800 ms

regards
-- 
Gilles Caulier


More information about the Kde-imaging mailing list