From ec56f998c2a76a54c93d68d22556acb349a17085 Mon Sep 17 00:00:00 2001 From: tth Date: Mon, 9 Sep 2019 17:24:31 +0200 Subject: [PATCH] ahem, of-by-one error ? --- lib/interpolate.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/interpolate.c b/lib/interpolate.c index ac813ab..03411f1 100644 --- a/lib/interpolate.c +++ b/lib/interpolate.c @@ -10,6 +10,12 @@ int verbosity; /* ---------------------------------------------------------------- */ +static int gray_interpolate(FloatImg *s1, FloatImg *s2, FloatImg *d, float coef) +{ +return -1; +} +/* ---------------------------------------------------------------- */ + int fimg_interpolate(FloatImg *s1, FloatImg *s2, FloatImg *d, float coef) { int picsize, idx; @@ -31,7 +37,7 @@ if (FIMG_TYPE_RGB != d->type) { return -9; } -picsize = d->width * d->height * 2; +picsize = d->width * d->height * 3; for (idx=0; idx