Skip to content

Commit 83e81c4

Browse files
committed
Merge branch 'PHP-5.5'
* PHP-5.5: - update the comment to match the code/features
2 parents 2799534 + f007889 commit 83e81c4

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

ext/gd/libgd/gd_interpolation.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
* The two pass scaling function is based on:
23
* Filtered Image Rescaling
34
* Based on Gems III
45
* - Schumacher general filtered image rescaling
@@ -13,6 +14,7 @@
1314
*
1415
* Initial sources code is avaibable in the Gems Source Code Packages:
1516
* http://www.acm.org/pubs/tog/GraphicsGems/GGemsIII.tar.gz
17+
*
1618
*/
1719

1820
/*
@@ -34,6 +36,17 @@
3436
3537
*/
3638

39+
/*
40+
Additional functions are available for simple rotation or up/downscaling.
41+
downscaling using the fixed point implementations are usually much faster
42+
than the existing gdImageCopyResampled while having a similar or better
43+
quality.
44+
45+
For image rotations, the optimized versions have a lazy antialiasing for
46+
the edges of the images. For a much better antialiased result, the affine
47+
function is recommended.
48+
*/
49+
3750
/*
3851
TODO:
3952
- Optimize pixel accesses and loops once we have continuous buffer

0 commit comments

Comments
 (0)