shithub: riscv

Download patch

ref: 638a82236264f32f8988a3bf4b2933df409f5f55
parent: 61c82d2bb83ae7c8d6bc47d0ea2b1bd5a117b4f0
author: cinap_lenrek <[email protected]>
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;