[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/libkdcraw-dng/tools
From:       Gilles Caulier <caulier.gilles () gmail ! com>
Date:       2008-09-11 20:42:57
Message-ID: 1221165777.442960.23379.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 860057 by cgilles:

polish


 M  +15 -15    raw2dng.cpp  


--- branches/work/libkdcraw-dng/tools/raw2dng.cpp #860056:860057
@@ -108,7 +108,7 @@
         dng_memory_allocator memalloc(gDefaultDNGMemoryAllocator);
         dng_memory_stream stream(memalloc);
         stream.Put(&raw_data.front(), raw_data.size()*sizeof(unsigned short));
-    
+
         dng_host host(&memalloc);
         dng_rect rect(height, width);
         host.SetKeepStage1(true); 
@@ -134,18 +134,18 @@
         ifd.fPredictor                 = 1; 
         ifd.fCFALayout                 = 1; 
         ifd.fPhotometricInterpretation = piCFA;
-	    ifd.fFillOrder                 = 1;
-	    ifd.fOrientation               = 0;
+        ifd.fFillOrder                 = 1;
+        ifd.fOrientation               = 0;
         ifd.fSamplesPerPixel           = 1; 
         ifd.fPlanarConfiguration       = 1; 
         ifd.fXResolution               = 0.0; 
         ifd.fYResolution               = 0.0; 
         ifd.fResolutionUnit            = 0; 
-	
+
         ifd.fBayerGreenSplit           = 0;
         ifd.fLosslessJPEGBug16         = false;
 
-        ifd.fUsesTiles                 = false;    
+        ifd.fUsesTiles                 = false;
         ifd.fTileWidth                 = width;
         ifd.fTileLength                = height;
         ifd.fTileOffsetsType           = 4;
@@ -163,8 +163,8 @@
         ifd.fSampleFormat[0]           = 1;
         ifd.fSampleFormat[1]           = 1;
         ifd.fSampleFormat[2]           = 1;
-        ifd.fSampleFormat[3]           = 1;   
-    
+        ifd.fSampleFormat[3]           = 1;
+
         ifd.fLinearizationTableType    = 0;
         ifd.fLinearizationTableCount   = 0;
         ifd.fLinearizationTableOffset  = 0;
@@ -185,7 +185,7 @@
 
         ifd.fCFARepeatPatternRows      = 0;
         ifd.fCFARepeatPatternCols      = 0;
-    
+
         ifd.fChromaBlurRadius          = dng_urational(0, 0);
         ifd.fAntiAliasStrength         = dng_urational(100, 100);
 
@@ -216,7 +216,7 @@
         negative->SetBaselineNoise(1.0); 
         negative->SetBaselineSharpness(1.0); 
         negative->SetCameraWhiteXY(dng_xy_coord());
-            
+
         dng_vector_3 v(1.0, 1.0, 1.0); 
         negative->SetAnalogBalance(v); 
         negative->SetCameraNeutral((const dng_vector) v); 
@@ -245,7 +245,7 @@
         negative->RebuildIPTC();
 
         printf ("DNG thumbnail creation\n");
-    
+
         // Build thumbnail image.
         dng_image_preview thumbnail;
         dng_render thumbnail_render(host, *negative);
@@ -255,26 +255,26 @@
         thumbnail.fImage.Reset(thumbnail_render.Render());
 
         printf ("DNG file creation\n");
-    
+
         dng_image_writer writer;
         dng_file_stream filestream(QFile::encodeName(dngFilePath), true);
         writer.WriteDNG(host, filestream, *negative.Get(), thumbnail, ccUncompressed);
     }
-    
+
     catch (const dng_exception &except)
     {
         int ret = except.ErrorCode();
         printf ("DNG SDK exception code (%i)\n", ret);
         return ret;
     }
-        
+
     catch (...)
     {
         printf ("DNG SDK exception code unknow\n");
         return dng_error_unknown;
     }
-        
+
     printf ("RAW2DNG complete\n");
-    
+
     return dng_error_none;
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic