com php-src: - update the comment to match the code/features: ext/gd/libgd/gd_interpolation.c
| From: | Pierre Joye | Date: | Wed, 20 Mar 2013 11:29:47 +0000 |
| Subject: | com php-src: - update the comment to match the code/features: ext/gd/libgd/gd_interpolation.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71647@lists.php.net to get a copy of this message | ||
Commit: f0078897c7a76bf9332fb1c19aeb51a9e28bab9f
Author: Pierre Joye <pierre.php@gmail.com> Wed, 20 Mar 2013 12:29:47 +0100
Parents: 1ec484d3c536e85bc536e809a403ce5e7d7849d8
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f0078897c7a76bf9332fb1c19aeb51a9e28bab9f
Log:
- update the comment to match the code/features
Changed paths:
M ext/gd/libgd/gd_interpolation.c
Diff:
diff --git a/ext/gd/libgd/gd_interpolation.c b/ext/gd/libgd/gd_interpolation.c
index ab3e988..5ad5de6 100644
--- a/ext/gd/libgd/gd_interpolation.c
+++ b/ext/gd/libgd/gd_interpolation.c
@@ -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
+ *
*/
/*
@@ -35,6 +37,17 @@
*/
/*
+ 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
- Add scale support for a portion only of an image (equivalent of copyresized/resampled)