Author: post
Date: 2009-09-21 18:16:09 +0200 (Mon, 21 Sep 2009)
New Revision: 2638
Modified:
trunk/plugins/resample/resample.c
Log:
Fix underflow in SSE2 resampler (only for remaining pixels for each thread).
Modified: trunk/plugins/resample/resample.c
===================================================================
--- trunk/plugins/resample/resample.c 2009-09-21 11:34:13 UTC (rev 2637)
+++ trunk/plugins/resample/resample.c 2009-09-21 16:16:09 UTC (rev 2638)
@@ -848,7 +848,7 @@
{
acc1 += (gfloat)in[i*input->rowstride]* wg[i];
}
- out[x] = (gushort)(acc1);
+ out[x] = (gushort)clampbits((int)(acc1), 16);
in++;
}
wg+=fir_filter_size;
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit