ref: bdb25a79c4b335a7977e661d359eade09ca505a3
parent: d676e0b57dfcb0ac609b2f819e60d72dfa9572a2
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu Sep 3 19:09:27 EDT 2020
actually use filter and colorspace
--- a/resample.c
+++ b/resample.c
@@ -119,7 +119,7 @@
in, w, h, w*bp,
out, ow, oh, ow*obp,
3, -1, 0,
- STBIR_EDGE_CLAMP, STBIR_FILTER_CATMULLROM, STBIR_COLORSPACE_LINEAR,
+ STBIR_EDGE_CLAMP, f, c,
NULL);
if((b = allocmemimage(Rect(0,0,ow,oh), RGB24)) == nil)
sysfatal("%r");