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, master has been updated via a30c88774de677c922827ac3f8f1032db96ec044 (commit) from 0123bcf14843855c6d2b0d33d32f2b6bbc76354c (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/a30c88774de677c922827ac3f8f1032db96ec...
commit a30c88774de677c922827ac3f8f1032db96ec044 Author: Cyril Hrubis metan@ucw.cz Date: Fri Apr 12 19:16:00 2013 +0200
filters: GP_ResizeLinearLF: Fix.
Fix typo that caused the previous speed increase and small artefacts.
Signed-off-by: Cyril Hrubis metan@ucw.cz
diff --git a/libs/filters/GP_ResizeLinear.gen.c.t b/libs/filters/GP_ResizeLinear.gen.c.t index 0004180..06f584a 100644 --- a/libs/filters/GP_ResizeLinear.gen.c.t +++ b/libs/filters/GP_ResizeLinear.gen.c.t @@ -43,39 +43,39 @@ * * The xoff is offset of the first pixel. */ -%% macro sample_x(pt, suff) +%%- macro sample_x(pt, suff) { - uint32_t mx = x0; - uint32_t i; + uint32_t mx = x0; + uint32_t i;
- pix = GP_GetPixel_Raw_{{ pt.pixelsize.suffix }}(src, x0, y0); + pix = GP_GetPixel_Raw_{{ pt.pixelsize.suffix }}(src, mx, y0);
- %% for c in pt.chanslist - {{ c[0] }}{{ suff }} = (GP_Pixel_GET_{{ c[0] }}_{{ pt.name }}(pix) * xoff[x]) >> 9; - %% endfor + %% for c in pt.chanslist + {{ c[0] }}{{ suff }} = (GP_Pixel_GET_{{ c[0] }}_{{ pt.name }}(pix) * xoff[x]) >> 9; + %% endfor
- for (i = (1<<14) - xoff[x]; i > xpix_dist; i -= xpix_dist) { - if (mx < src->w - 1) - mx++; + for (i = (1<<14) - xoff[x]; i > xpix_dist; i -= xpix_dist) { + if (mx < src->w - 1) + mx++; - pix = GP_GetPixel_Raw_{{ pt.pixelsize.suffix }}(src, x0, y0); + pix = GP_GetPixel_Raw_{{ pt.pixelsize.suffix }}(src, mx, y0);
- %% for c in pt.chanslist - {{ c[0] }}{{ suff }} += (GP_Pixel_GET_{{ c[0] }}_{{ pt.name }}(pix) * xpix_dist) >> 9; - %% endfor - } + %% for c in pt.chanslist + {{ c[0] }}{{ suff }} += (GP_Pixel_GET_{{ c[0] }}_{{ pt.name }}(pix) * xpix_dist) >> 9; + %% endfor + }
- if (i > 0) { - if (mx < src->w - 1) - mx++; + if (i > 0) { + if (mx < src->w - 1) + mx++; - pix = GP_GetPixel_Raw_{{ pt.pixelsize.suffix }}(src, x0, y0); + pix = GP_GetPixel_Raw_{{ pt.pixelsize.suffix }}(src, mx, y0); - %% for c in pt.chanslist - {{ c[0] }}{{ suff }} += (GP_Pixel_GET_{{ c[0] }}_{{ pt.name }}(pix) * i) >> 9; - %% endfor - } -} + %% for c in pt.chanslist + {{ c[0] }}{{ suff }} += (GP_Pixel_GET_{{ c[0] }}_{{ pt.name }}(pix) * i) >> 9; + %% endfor + } + } %% endmacro
%% for pt in pixeltypes
-----------------------------------------------------------------------
Summary of changes: libs/filters/GP_ResizeLinear.gen.c.t | 48 +++++++++++++++++----------------- 1 files changed, 24 insertions(+), 24 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.