From: Pierre Joye Date: Wed, 20 Mar 2013 11:29:47 +0000 (+0100) Subject: - update the comment to match the code/features X-Git-Tag: php-5.6.0alpha1~448^2~115^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0078897c7a76bf9332fb1c19aeb51a9e28bab9f;p=php - update the comment to match the code/features --- 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 + * */ /* @@ -34,6 +36,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