tabe Wed Feb 11 16:31:27 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/gd/libgd gd.c
Log:
MFH: optimization via the row-major order.
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd.c?r1=1.90.2.1.2.21.2.4&r2=1.90.2.1.2.21.2.5&diff_format=u
Index: php-src/ext/gd/libgd/gd.c
diff -u php-src/ext/gd/libgd/gd.c:1.90.2.1.2.21.2.4
php-src/ext/gd/libgd/gd.c:1.90.2.1.2.21.2.5
--- php-src/ext/gd/libgd/gd.c:1.90.2.1.2.21.2.4 Mon Jan 19 15:43:48 2009
+++ php-src/ext/gd/libgd/gd.c Wed Feb 11 16:31:27 2009
@@ -613,8 +613,8 @@
xlate[i] = -1;
}
- for (x = 0; x < to->sx; x++) {
- for (y = 0; y < to->sy; y++) {
+ for (y = 0; y < to->sy; y++) {
+ for (x = 0; x < to->sx; x++) {
p = gdImageGetPixel(to, x, y);
if (xlate[p] == -1) {
/* This ought to use HWB, but we don't have an
alpha-aware version of that yet. */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php