Commits

pornel committed 0e39317

Whitespace

Comments (0)

Files changed (1)

  * If it is not working, it's not Thomas G. Lane's fault.
  */
 
-/* 
+/*
   SETTING THIS ONE CAUSES STRIPED IMAGE
   to be done: solve this
   #define ORIGINAL_LIB_JPEG_REVERSE_ODD_ROWS
  * color space, and repeatedly splits the "largest" remaining box until we
  * have as many boxes as desired colors.  Then the mean color in each
  * remaining box becomes one of the possible output colors.
- * 
+ *
  * The second pass over the image maps each input pixel to the closest output
  * color (optionally after applying a Floyd-Steinberg dithering correction).
  * This mapping is logically trivial, but making it go fast enough requires
   int i;
 
   /* Allocate workspace for box list */
-  /* This can't happen because we clamp desired_colors at gdMaxColors, 
+  /* This can't happen because we clamp desired_colors at gdMaxColors,
     but anyway */
   if (overflow2(desired_colors, sizeof (box))) {
     return;
 	  int r, g, b;
 	  r = gdTrueColorGetRed (*inptr);
 	  g = gdTrueColorGetGreen (*inptr);
-	  /* 
+	  /*
 	     2.0.24: inptr must not be incremented until after
-	     transparency check, if any. Thanks to "Super Pikeman." 
+	     transparency check, if any. Thanks to "Super Pikeman."
 	   */
 	  b = gdTrueColorGetBlue (*inptr);
 
     }
   } else {
     nim = oim;
-  }     
+  }
   if (!oim->trueColor)
     {
       /* (Almost) nothing to do! */
       {
         nim->pixels[i] = gdCalloc (sizeof (unsigned char *), oim->sx);
         if (!nim->pixels[i])
-  	{
-  	  goto outOfMemory;
-  	}
+      	  {
+      	    goto outOfMemory;
+      	  }
       }
   }
 
   for (i = 0; i < HIST_C0_ELEMS; i++)
     {
       cquantize->histogram[i] =
-	(hist2d) gdMalloc (HIST_C1_ELEMS * HIST_C2_ELEMS * sizeof (histcell));
+	  (hist2d) gdMalloc (HIST_C1_ELEMS * HIST_C2_ELEMS * sizeof (histcell));
       if (!cquantize->histogram[i])
-	{
-	  goto outOfMemory;
-	}
+	    {
+	      goto outOfMemory;
+	    }
     }