[Okular-devel] [Bug 156892] PDF are painfully very slow after changing colors for accessibility

Brad Hards bradh at frogmouth.net
Mon Dec 1 02:43:00 CET 2008


http://bugs.kde.org/show_bug.cgi?id=156892


Brad Hards bradh frogmouth net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bradh at frogmouth.net




--- Comment #2 from Brad Hards <bradh frogmouth net>  2008-12-01 02:42:59 ---
We could probably get a marginal improvement using Blitz::invert for the invert
colours choice.
--- okular/ui/pagepainter.cpp   (revision 891032)
+++ okular/ui/pagepainter.cpp   (working copy)
@@ -252,8 +252,8 @@
             switch ( Okular::Settings::renderMode() )
             {
                 case Okular::Settings::EnumRenderMode::Inverted:
-                    // Invert image pixels using QImage internal function
-                    backImage.invertPixels(QImage::InvertRgb);
+                    // Invert pixels using Blitz RGB version
+                    Blitz::invert( backImage );
                     break;
                 case Okular::Settings::EnumRenderMode::Recolor:
                     // Recolor image using Blitz::flatten with dither:0

Mohd: Can you provide more information on which combination(s) of settings
causes you problems, and the extent of the slow-down ("painful" is a bit to
subjective to fix). Please specify exactly which settings you are using, and
roughly how much slower it makes compared to the default settings.

It would also be useful to know which version of Qt you are using.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list