[Digikam-devel] [Bug 215743] Endianness bug loading 16 bits raw images

pochini at shiny.it pochini at shiny.it
Mon Nov 23 22:53:24 GMT 2009


https://bugs.kde.org/show_bug.cgi?id=215743


pochini at shiny.it changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pochini at shiny.it




--- Comment #3 from  <pochini shiny it>  2009-11-23 23:53:23 ---
Thanks for the link.
Uhm... no, digikam does not use KDcraw::extractRAWData(). It uses
KDcraw::loadFromDcraw() instead, which then calls dcraw_make_mem_image()
(http://lxr.kde.org/source/KDE/kdegraphics/libs/libkdcraw/libkdcraw/kdcraw.cpp#679).
LibRaw docs do not mention the format of the data, but in
LibRaw-0.8.4/samples/mem_image.cpp there is a comment that says: "data in
img->data is not converted to network byte order. So, we should swap values on
some architectures for dcraw compatibility".

I think we should fix digikam. If we change libkdcraw we may break some other
apps which already convert the data.

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



More information about the Digikam-devel mailing list