diff options
author | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2007-05-09 09:51:27 +0000 |
---|---|---|
committer | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2007-05-09 09:51:27 +0000 |
commit | a25615545398bc677cfb8864cf30b32589b27ee1 (patch) | |
tree | 9d51b542faeed557e8d259930128080a202c0720 /common | |
parent | aa8904cfa4d4720878006abe413d2bbf7588d752 (diff) | |
download | tigervnc-a25615545398bc677cfb8864cf30b32589b27ee1.tar.gz tigervnc-a25615545398bc677cfb8864cf30b32589b27ee1.zip |
Removed "Sinc" scale filter. It's has very low performance and not urgently for this project.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2303 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common')
-rw-r--r-- | common/rfb/ScaleFilters.cxx | 7 | ||||
-rw-r--r-- | common/rfb/ScaleFilters.h | 3 |
2 files changed, 1 insertions, 9 deletions
diff --git a/common/rfb/ScaleFilters.cxx b/common/rfb/ScaleFilters.cxx index 54da5849..2a3344ce 100644 --- a/common/rfb/ScaleFilters.cxx +++ b/common/rfb/ScaleFilters.cxx @@ -59,12 +59,6 @@ double cubic(double x) { return 0.0; } -// Sinc filter function -double sinc(double x) { - if (x == 0.0) return 1.0; - else return sin(pi*x)/(pi*x); -} - // // -=- ScaleFilters class @@ -86,7 +80,6 @@ void ScaleFilters::initFilters() { filters[scaleFilterNearestNeighbor] = create("Nearest neighbor", 0.5, nearest_neighbor); filters[scaleFilterBilinear] = create("Bilinear", 1, linear); filters[scaleFilterBicubic] = create("Bicubic", 2, cubic); - filters[scaleFilterSinc] = create("Sinc", 4, sinc); } SFilter ScaleFilters::create(char *name_, double radius_, filter_func func_) { diff --git a/common/rfb/ScaleFilters.h b/common/rfb/ScaleFilters.h index 770ee760..b306f470 100644 --- a/common/rfb/ScaleFilters.h +++ b/common/rfb/ScaleFilters.h @@ -31,9 +31,8 @@ namespace rfb { const unsigned int scaleFilterNearestNeighbor = 0; const unsigned int scaleFilterBilinear = 1; const unsigned int scaleFilterBicubic = 2; - const unsigned int scaleFilterSinc = 3; - const unsigned int scaleFilterMaxNumber = 3; + const unsigned int scaleFilterMaxNumber = 2; const unsigned int defaultScaleFilter = scaleFilterBilinear; // |