diff options
author | Pierre Joye <pierre.php@gmail.com> | 2013-03-20 12:29:47 +0100 |
---|---|---|
committer | Pierre Joye <pierre.php@gmail.com> | 2013-03-20 12:29:47 +0100 |
commit | f0078897c7a76bf9332fb1c19aeb51a9e28bab9f (patch) | |
tree | 4a463bc214fa261bdefa5ef40399130732a1dfa3 | |
parent | 1ec484d3c536e85bc536e809a403ce5e7d7849d8 (diff) | |
download | php-git-f0078897c7a76bf9332fb1c19aeb51a9e28bab9f.tar.gz |
- update the comment to match the code/features
-rw-r--r-- | ext/gd/libgd/gd_interpolation.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/gd/libgd/gd_interpolation.c b/ext/gd/libgd/gd_interpolation.c index ab3e988a48..5ad5de6268 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) |