Opened 12 years ago

Last modified 21 months ago

#8237 assigned bug

CR2 image will not display properly

Reported by: SeanCollins Owned by: nobody
Priority: normal Milestone: R1
Component: Add-Ons/Translators/RAW Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by diver)

gcc2h hrev43447 nightly

attaching screen shot and link to file.

Attachments (1)

screenshot1.png (54.2 KB ) - added by SeanCollins 12 years ago.

Download all attachments as: .zip

Change History (8)

by SeanCollins, 12 years ago

Attachment: screenshot1.png added

comment:2 by diver, 12 years ago

Component: Applications/ShowImageAdd-Ons/Translators/RAW
Description: modified (diff)
Owner: changed from leavengood to axeld
Version: R1/alpha3R1/Development

comment:3 by pulkomandy, 9 years ago

The current version of dcraw converts this image to a ppm which ShowImage can open. Unfortunately dcraw is still distributed as a monolithic .c file so we need to analyze the changes and backport them to our cleaned up C++ version. dcraw is versionned using RCS, so extracting the changes from there may not be as easy as usual.

comment:4 by pulkomandy, 9 years ago

We could make the translator use http://www.libraw.org. I have confirmed that older versions of dcraw have the same problem decoding this image, various issues were fixed and the image looks correct starting from dcraw 9.08. However merging the changes back to our forked and rewritten version is error-prone and time consuming.

Rewriting the translator to use libraw instead should fix the problem. Libraw is based on the same code, but kept up to date with current versions.

comment:5 by axeld, 7 years ago

Unfortunately, libraw needs gcc 4+ to compile, so a solution based on it would not work with the default system. One of the few cases where binary compatibility hurts.

Of course, we could provide different implementations depending on the target platform, so that x86 and x86-64 would not be affected (same for ffmpeg).

comment:6 by axeld, 7 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:7 by pulkomandy, 21 months ago

Since hrev55420, the versions of the raw translator built with modern gcc use libraw. Is that good enough to close this ticket? Or should we make it possible to build a translator with gcc11 in a way that it can be loaded in a gcc2 app?

Note: See TracTickets for help on using tickets.