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

Gilles Caulier caulier.gilles at free.fr
Thu Dec 29 17:18:05 GMT 2005


Le Jeudi 29 Décembre 2005 17:09, Belinda Martin a écrit :
> On Thursday, 29. December 2005 14:39, Gilles Caulier wrote:
> > SVN commit 492272 by cgilles:
> >
> > digikam from trunk : using -q dcraw option to decode RAW file under Image
> > Editor is better than -h : right image size, good image quality, and
> > suitable image decoding speed. TODO : added new IE setting tab in setup
> > dialog about advanced RAW decoding options. CCMAIL: digikam-devel at kde.org
> >
> >
> >  M  +4 -4      rawloader.cpp
> >
> >
> > --- trunk/extragear/graphics/digikam/libs/dimg/loaders/rawloader.cpp
> > #492271:492272 @@ -73,11 +73,11 @@
> >
> >      // run dcraw with options:
> >      // -c : write to stdout
> > -    // -h : Half-size color image (3x faster than -q)
> > +    // -q : Use simple bilinear interpolation for quick results
> >      // -2 : 8bit ppm output
> >      // -w : Use camera white balance, if possible
> >      // -a : Use automatic white balance
> > -    command  = "dcraw -c -h -2 -w -a ";
> > +    command  = "dcraw -c -q -2 -w -a ";
> >      command += QFile::encodeName( KProcess::quote( filePath ) );
> >
> >  #ifdef ENABLE_DEBUG_MESSAGES
> > @@ -156,11 +156,11 @@
> >
> >      // run dcraw with options:
> >      // -c : write to stdout
> > -    // -h : Half-size color image (3x faster than -q)
> > +    // -q : Use simple bilinear interpolation for quick results
> >      // -4 : 16bit ppm output
> >      // -a : Use automatic white balance
> >      // -w : Use camera white balance, if possible
> > -    command  = "dcraw -c -h -4 -w -a ";
> > +    command  = "dcraw -c -q -4 -w -a ";
>
> Salut Gilles,
> I have the dcraw version 7.94, it doesn't accept -q without a numerical
> parameter. It requires at least '-q 0' to work. Maybe you have an earlier
> version?
>
> Gerhard

Right. I use dcraw v7.49 that don't have any numerical values to use with -q 
option. From my dcraw man page :

-q : Use simple bilinear interpolation for quick results. The default is to 
use a slow, high-quality adaptive algorithm.

Dave Coffin have broken command line compatibility. It will be cool if he can 
use a default value with -q option with future dcraw release.

-- 
Gilles Caulier



More information about the Digikam-devel mailing list