[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 131549] endianess problem under Linux-PowerPC (with png images
From:       Marcel Wiesweg <marcel.wiesweg () gmx ! de>
Date:       2006-08-01 21:46:41
Message-ID: 20060801214641.29961.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=131549         




------- Additional Comments From marcel.wiesweg gmx de  2006-08-01 23:46 -------
Thanks a lot for your help!

Ok, I tried to do some logic and it seems that it's ARGB vs. BGRA, though the third \
square does not seem to fit.

If I had a PPC I would use trial&error, perhaps you want to test a bit?
There is line 237 of libs/dimg/loaders/pngloader.cpp
png_set_add_alpha(png_ptr, 0xFFFF, PNG_FILLER_BEFORE);
which might be changed to 
png_set_add_alpha(png_ptr, 0xFF, PNG_FILLER_AFTER);

and there is line 301 
png_set_swap_alpha(png_ptr);
which might be changed to
png_set_bgr(png_ptr);
or
{png_set_bgr(png_ptr);png_set_swap_alpha(png_ptr);}

Perhaps one of these 2*3=6 possibilities is correct?
> -)

As to your tiff problem, run digikam, load a tiff, 100% CPU, then identify the \
process with ps ax, and run gdb att <PID> (or run digikam directly under gdb and bit \
ctrl+c to stop it), and type "thr appl all bt" to get a backtrace of all running \
threads, one of them probably in an endless loop.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic