ref: f50b352fb746fc15e6b3786730460d9646fbaa8b
parent: d158b799a4f92691216ce07fbe97c5fb3fe67c5b
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sat Jul 20 20:55:56 EDT 2013
abaco: use faster resize instead of resample for image scaling
--- a/sys/src/cmd/abaco/page.c
+++ b/sys/src/cmd/abaco/page.c
@@ -93,11 +93,11 @@
if(x==0 && y==0)
return smprint("%s", filtertab[i].filter);if(x!=0 && y!=0)
- return smprint("%s | resample -x %d -y %d", filtertab[i].filter, x, y);+ return smprint("%s | resize -x %d -y %d", filtertab[i].filter, x, y);if(x != 0)
- return smprint("%s | resample -x %d", filtertab[i].filter, x);+ return smprint("%s | resize -x %d", filtertab[i].filter, x);/* y != 0 */
- return smprint("%s | resample -y %d", filtertab[i].filter, y);+ return smprint("%s | resize -y %d", filtertab[i].filter, y);}
static Cimage *cimages = nil;
--
⑨