[Digikam-devel] [Bug 131549] endianess problem under Linux-PowerPC (with png images at least)

Marcel Wiesweg marcel.wiesweg at gmx.de
Tue Aug 1 23:46:41 CEST 2006

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

------- 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 
which might be changed to

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.

More information about the Digikam-devel mailing list