Author: post
Date: 2009-10-13 17:57:51 +0200 (Tue, 13 Oct 2009)
New Revision: 2708
Modified:
trunk/plugins/resample/resample.c
Log:
Resampler Broken: Subtraction was addition, since a '-' was left out.
Modified: trunk/plugins/resample/resample.c
===================================================================
--- trunk/plugins/resample/resample.c 2009-10-13 10:45:50 UTC (rev 2707)
+++ trunk/plugins/resample/resample.c 2009-10-13 15:57:51 UTC (rev 2708)
@@ -738,7 +738,7 @@
gint end_x_sse = (end_x/24)*24;
/* Subtract 32768 as it would appear after shift */
- gint add_round_sub = (32768 << (FPScaleShift-1));
+ gint add_round_sub = -(32768 << (FPScaleShift-1));
/* 0.5 pixel value is lost to rounding times fir_filter_size,
compensate */
add_round_sub += fir_filter_size * (FPScale >> 2);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit