This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, generate has been updated via 7765fb749d234f875480769baba4b8c3c4919a0d (commit) from 8c9174cab63f49a6239b64579244425a384520c1 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/7765fb749d234f875480769baba4b8c3c4919...
commit 7765fb749d234f875480769baba4b8c3c4919a0d Author: Cyril Hrubis metan@ucw.cz Date: Fri Sep 30 23:56:28 2011 +0200
Some bicubic parameters fine tuning.
The artifact on the image border seems solved now.
diff --git a/libs/filters/GP_Scale.c b/libs/filters/GP_Scale.c index e0ff64b..88c14a9 100644 --- a/libs/filters/GP_Scale.c +++ b/libs/filters/GP_Scale.c @@ -104,10 +104,10 @@ GP_Context *GP_Scale_BiCubic(GP_Context *src, GP_Size w, GP_Size h) 1.00 * w / src->w, 1.00 * h / src->h);
for (i = 0; i < w; i++) { - float x = (1.00 * i / w) * src->w + 0.5; + float x = (1.00 * i / w) * (src->w - 4.5) + 2.5; v4f cvx; int xi = x - 1; - + cvx.f[0] = cubic(x - xi); cvx.f[1] = cubic(x - xi - 1); cvx.f[2] = cubic(x - xi - 2); @@ -155,7 +155,7 @@ GP_Context *GP_Scale_BiCubic(GP_Context *src, GP_Size w, GP_Size h)
/* now interpolate column for new image */ for (j = 0; j < h; j++) { - float y = (1.00 * j / h) * src->h + 0.5; + float y = (1.00 * j / h) * (src->h - 4.5) + 2.5; v4f cvy, rv, gv, bv; float r, g, b; int yi = y - 1;
-----------------------------------------------------------------------
Summary of changes: libs/filters/GP_Scale.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.