[Digikam-devel] extragear/graphics/digikam/libs/dimg/loaders

Caulier Gilles caulier.gilles at kdemail.net
Mon May 15 22:49:38 BST 2006


Le Lundi 15 Mai 2006 10:53 PM, Marcel Wiesweg a écrit :
> SVN commit 541269 by mwiesweg:
>
> digikam from trunk:
> Use KProcess for RAW image loader.
> Loading can now be cleanly aborted.
>
> This is a good example that KProcess is not the perfect tool for use
> with our shiny new multithreaded loader because KProcess is not reentrant,

Is QProcess with Qt 4.0 will be ?

> but there are more advantages (wraps all system programming) so that
> the necessary main thread indirections are ok.

I don't understand exactly what you mean. Please, Can you explain better ?

>
> TODO:
> - implement fast loading specified in RAWDecodingSettings

ok

> - do we need to parse StdErr?

yes. dcraw return an error message on the console when we trying to get the 
embedded ICC color profile into RAW file and if none is found. Look below :

digikam: /home/gilles/Documents/photos/Test 
Photograhs/RAW/MINOLTA-DYNAX5D.MRW : RAW file identified
digikam: Cannot load metadata using Exiv2 (This does not look like a TIFF 
image)
Found MSB TIFF Header
<IFD> with 14 entries at offset 8
<EXIF> with 33 entries at offset 434
<MAKERNOTE> with 23 entries at offset 1004
digikam: Running dcraw command dcraw -c -4 -w -a -q 0 -p embed -o 
'/home/gilles/Documents/ICCPROFILES/WideGamutRGB.icc' 
'/home/gilles/Documents/photos/Test Photograhs/RAW/MINOLTA-DYNAX5D.MRW'
/home/gilles/Documents/photos/Test Photograhs/RAW/MINOLTA-DYNAX5D.MRW has no 
embedded profile.

In fact, i need just a bool flag somewhere to see if an emebeded ICC color 
profile have be found in RAW file. I will use this flag in 
DImgInterface::slotImageLoaded() method to control better ICC color 
management workflow with RAW file into image editor if 'Using Embeded 
profile' option is enabled in RAW file decoding settings...

Gilles



More information about the Digikam-devel mailing list