How many times? was: Compression design

Boudewijn Rempt boud at valdyas.org
Mon Nov 27 20:41:46 CET 2006


I'm already considering another approach, piggy-backing off the list of swappable tiles,
but there's this: on creating an image, the histogram widget indecently often iterates 
over the paint device:

0: /home/kde4/kde4/lib/libkdecore.so.5(_Z10kBacktracei+0x36) [0xb6ee81be]
1: /home/kde4/kde4/lib/libkritaimage.so.5(_ZNK7KisTile9addReaderEv+0x26) [0xb7c11d04]
2: /home/kde4/kde4/lib/libkritaimage.so.5(_ZN16KisTiledIterator13fetchTileDataEii+0xf6) [0xb7c1299e]
3: /home/kde4/kde4/lib/libkritaimage.so.5(_ZN20KisTiledRectIteratorpLEi+0x194) [0xb7c13280]
4: /home/kde4/kde4/lib/libkritaimage.so.5(_ZN20KisRectConstIteratorpLEi+0x31) [0xb7c61e27]
5: /home/kde4/kde4/lib/libkritaimage.so.5(_ZN24KisRectIteratorPixelBaseI20KisRectConstIteratorPKhEpLEi+0x24) [0xb7c4a896]
6: /home/kde4/kde4/lib/kde4/kritahistogramdocker.so(_ZN26KisCachedHistogramObserver13regionUpdatedE12KisSharedPtrI14KisPaintDeviceE+0x113) [0xb0172e6f]
7: /home/kde4/kde4/lib/kde4/kritahistogramdocker.so(_ZN21KisImageRasteredCache7timeOutEv+0xd6) [0xb016f5a4]
8: /home/kde4/kde4/lib/kde4/kritahistogramdocker.so(_ZN21KisImageRasteredCache11qt_metacallEN11QMetaObject4CallEiPPv+0xee) [0xb016fc66]
9: /home/kde4/qt-copy/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x6aa) [0xb63ba7ea]
10: /home/kde4/qt-copy/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x3a) [0xb63bafca]
11: /home/kde4/qt-copy/lib/libQtCore.so.4(_ZN6QTimer7timeoutEv+0x37) [0xb63d51f7]
12: /home/kde4/qt-copy/lib/libQtCore.so.4(_ZN6QTimer10timerEventEP11QTimerEvent+0x3e) [0xb63bf9ae]
13: /home/kde4/qt-copy/lib/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x274) [0xb63b6b84]
14: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x180) [0xb65d5690]
15: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x111) [0xb65db271]
16: /home/kde4/kde4/lib/libkdecore.so.5(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x4f1) [0xb6ede6c7]
17: /home/kde4/qt-copy/lib/libQtCore.so.4 [0xb63c9fdb]
18: /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x182) [0xb5d55802]
19: /usr/lib/libglib-2.0.so.0 [0xb5d587df]
20: /usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x65) [0xb5d58d45]
21: /home/kde4/qt-copy/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x5b) [0xb63c8d09]
22: /home/kde4/qt-copy/lib/libQtGui.so.4 [0xb6646f89]
23: /home/kde4/qt-copy/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x31) [0xb63a8b07]
24: /home/kde4/qt-copy/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xbf) [0xb63a8c8f]
25: /home/kde4/qt-copy/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x9d) [0xb63ab033]
26: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN12QApplication4execEv+0x27) [0xb65d4ed7]
27: /home/kde4/kde4/lib/libkdeinit_krita.so(kdemain+0xba) [0xb7f13f92]
28: krita(main+0x22) [0x80488e6]
29: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb5e348cc]
30: krita [0x8048841]

For Gabor: the layer box does the following a lot of times, 
always on the same tile (because this image has only one tile):

0: /home/kde4/kde4/lib/libkdecore.so.5(_Z10kBacktracei+0x36) [0xb6ee81be]
1: /home/kde4/kde4/lib/libkritaimage.so.5(_ZNK7KisTile9addReaderEv+0x26) [0xb7c11d04]
2: /home/kde4/kde4/lib/libkritaimage.so.5(_ZN16KisTiledIterator13fetchTileDataEii+0xf6) [0xb7c1299e]
3: /home/kde4/kde4/lib/libkritaimage.so.5(_ZN21KisTiledHLineIteratorC1EP19KisTiledDataManageriiib+0x198) [0xb7c0dc22]
4: /home/kde4/kde4/lib/libkritaimage.so.5(_ZN21KisHLineConstIteratorC2EP14KisDataManageriiib+0x6f) [0xb7c61dab]
5: /home/kde4/kde4/lib/libkritaimage.so.5(_ZN16KisHLineIteratorC2EP14KisDataManageriii+0x41) [0xb7c9b14d]
6: /home/kde4/kde4/lib/libkritaimage.so.5(_ZN24KisLineIteratorPixelBaseI16KisHLineIteratorPhEC1EP14KisDataManagerS4_iiiii+0x4b) [0xb7c9b203]
7: /home/kde4/kde4/lib/libkritaimage.so.5(_ZN14KisPaintDevice19createHLineIteratorEiii+0xec) [0xb7c95f84]
8: /home/kde4/kde4/lib/libkritaimage.so.5(_ZN14KisPaintDevice5pixelEiiP6QColorPh+0x3a) [0xb7c96264]
9: /home/kde4/kde4/lib/libkritaimage.so.5(_ZN14KisPaintDevice15createThumbnailEii+0x23f) [0xb7c9694b]
10: /home/kde4/kde4/lib/libkritaimage.so.5(_ZN13KisPaintLayer15createThumbnailEii+0x5b) [0xb7c6f2e9]
11: /home/kde4/kde4/lib/libkritaimage.so.5(_ZNK8KisLayer4dataERK11QModelIndexi+0x319) [0xb7c65d7f]
12: /home/kde4/kde4/lib/libkopainter.so.5(_ZNK11QModelIndex4dataEi+0x4f) [0xb7b8d43b]
13: /home/kde4/kde4/lib/libkofficeui.so.5(_ZNK25KoDocumentSectionDelegate13drawThumbnailEP8QPainterRK20QStyleOptionViewItemRK11QModelIndex+0x186) [0xb7b0be5e]
14: /home/kde4/kde4/lib/libkofficeui.so.5(_ZNK25KoDocumentSectionDelegate5paintEP8QPainterRK20QStyleOptionViewItemRK11QModelIndex+0x109) [0xb7b0ddc5]
15: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZNK9QTreeView7drawRowEP8QPainterRK20QStyleOptionViewItemRK11QModelIndex+0x926) [0xb69473b6]
16: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZNK9QTreeView8drawTreeEP8QPainterRK7QRegion+0x340) [0xb694b200]
17: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN9QTreeView10paintEventEP11QPaintEvent+0x11d) [0xb694dafd]
18: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x845) [0xb6615c05]
19: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN6QFrame5eventEP6QEvent+0x24) [0xb6862374]
20: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN19QAbstractScrollArea13viewportEventEP6QEvent+0x5c) [0xb68c931c]
21: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN17QAbstractItemView13viewportEventEP6QEvent+0x272) [0xb691b712]
22: /home/kde4/kde4/lib/libkofficeui.so.5(_ZN21KoDocumentSectionView13viewportEventEP6QEvent+0x67f) [0xb7b10b45]
23: /home/kde4/qt-copy/lib/libQtGui.so.4 [0xb68ca7b5]
24: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x131) [0xb65d5641]
25: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xb6) [0xb65db216]
26: /home/kde4/kde4/lib/libkdecore.so.5(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x4f1) [0xb6ede6c7]
27: /home/kde4/qt-copy/lib/libQtGui.so.4 [0xb661ee5e]
28: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointi+0x632) [0xb66ede6c]
29: /home/kde4/qt-copy/lib/libQtGui.so.4 [0xb66ee597]
30: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointi+0x19f) [0xb66ed9d9]
31: /home/kde4/qt-copy/lib/libQtGui.so.4 [0xb66ee597]
32: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointi+0x19f) [0xb66ed9d9]
33: /home/kde4/qt-copy/lib/libQtGui.so.4 [0xb66ee597]
34: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointi+0x19f) [0xb66ed9d9]
35: /home/kde4/qt-copy/lib/libQtGui.so.4 [0xb66ee597]
36: /home/kde4/qt-copy/lib/libQtGui.so.4 [0xb66ee379]
37: /home/kde4/qt-copy/lib/libQtGui.so.4 [0xb66ee379]
38: /home/kde4/qt-copy/lib/libQtGui.so.4 [0xb66ee379]
39: /home/kde4/qt-copy/lib/libQtGui.so.4(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointi+0x19f) [0xb66ed9d9]
40: /home/kde4/qt-copy/lib/libQtGui.so.4 [0xb66ee989]
41: /home/kde4/qt-copy/lib/libQtGui.so.4 [0xb66ef135]
42: /home/kde4/qt-copy/lib/libQtGuikrita: adding reader: 0x85fcf58, 1

It feels like a bit of a waste...
-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20061127/1746e082/attachment.pgp 


More information about the kimageshop mailing list