Revision 932980c...

Go back to digest for 6th October 2013

Optimization in Office

Lukáš Tvrdý committed changes in [calligra] /plugins/extensions/gmic:

Improve performance and stability of gmic

o add benchmarks for fast method converting Krita layers to gmic
o optimize converting Krita RGBA layers to gmic layer and back to Krita layers

KisGmicBenchmarks::testConvertToGmic(): 6,673 msecs
KisGmicBenchmarks::testConvertFromGmic(): 7,149 msecs

KisGmicBenchmarks::testConvertToGmicFast(): 59 msecs (113-times faster)
KisGmicBenchmarks::testConvertFromGmicFast(): 154 msecs (46-times faster)

Slow method with LCMS2 is used when the colorspace is different from RGBA.
Optimization is implemented as color-transformation that only scale
RGBA colorspace depth to float.

Now is the performance in pair with g'mic for gimp plug-in

o fix crash when closing gmic widget
o add more unit tests converting gmic-krita conversions
o add simple feedback that gmic filtering is done:
- window title contains information about running time of gmic filter

File Changes

Added 1 files
  • krita/plugins/extensions/gmic/kis_gmic_applicator.cpp
Modified 13 files
  • /plugins/extensions/gmic
  •   krita/CMakeLists.txt
  •   krita/kis_export_gmic_processing_visitor.cpp
  •   krita/kis_gmic_plugin.cpp
  •   krita/kis_gmic_plugin.h
  •   krita/kis_gmic_simple_convertor.cpp
  •   krita/kis_gmic_simple_convertor.h
  •   krita/kis_gmic_widget.cpp
  •   krita/kis_gmic_widget.h
  •   krita/kis_import_gmic_processing_visitor.cpp
  •   krita/tests/kis_gmic_benchmarks.cpp
  •   krita/tests/kis_gmic_benchmarks.h
  •   krita/tests/kis_gmic_tests.cpp
  •   krita/tests/kis_gmic_tests.h
14 files changed in total