]> granicus.if.org Git - php/commitdiff
- update the comment to match the code/features
authorPierre Joye <pierre.php@gmail.com>
Wed, 20 Mar 2013 11:29:47 +0000 (12:29 +0100)
committerPierre Joye <pierre.php@gmail.com>
Wed, 20 Mar 2013 11:29:47 +0000 (12:29 +0100)
ext/gd/libgd/gd_interpolation.c

index ab3e988a48117412212ed28a62b529ee5b570e7a..5ad5de6268f8604f09a7e48515cecb5f6beb96a8 100644 (file)
@@ -1,4 +1,5 @@
 /*
+ * The two pass scaling function is based on:
  * Filtered Image Rescaling
  * Based on Gems III
  *  - Schumacher general filtered image rescaling
@@ -13,6 +14,7 @@
  *
  *     Initial sources code is avaibable in the Gems Source Code Packages:
  *     http://www.acm.org/pubs/tog/GraphicsGems/GGemsIII.tar.gz
+ *
  */
 
 /*
 
 */
 
+/*
+       Additional functions are available for simple rotation or up/downscaling.
+       downscaling using the fixed point implementations are usually much faster
+       than the existing gdImageCopyResampled while having a similar or better
+       quality.
+       
+       For image rotations, the optimized versions have a lazy antialiasing for 
+       the edges of the images. For a much better antialiased result, the affine
+       function is recommended.
+*/
+
 /*
 TODO:
  - Optimize pixel accesses and loops once we have continuous buffer