Powerful ScaledPixelBuffer class code improvements - at 10x increased scale performance due to
using the row accumulators. The row accumulators keep result of the convolution of the source image by y axis.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2364 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/ScaledPixelBuffer.h b/common/rfb/ScaledPixelBuffer.h
index fbdba8c..ffd68b6 100644
--- a/common/rfb/ScaledPixelBuffer.h
+++ b/common/rfb/ScaledPixelBuffer.h
@@ -98,6 +98,9 @@
// Free the weight tabs for x and y
virtual void freeWeightTabs();
+ // Recreates the row accumulators.
+ virtual void recreateRowAccum();
+
int src_width;
int src_height;
@@ -111,6 +114,9 @@
ScaleFilters scaleFilters;
SFilterWeightTab *xWeightTabs;
SFilterWeightTab *yWeightTabs;
+ int *raccum;
+ int *gaccum;
+ int *baccum;
U8 **src_data;
U8 **scaled_data;
};