]> source.dussan.org Git - tigervnc.git/commitdiff
Removed "Sinc" scale filter. It's has very low performance and not urgently for this...
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Wed, 9 May 2007 09:51:27 +0000 (09:51 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Wed, 9 May 2007 09:51:27 +0000 (09:51 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2303 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/ScaleFilters.cxx
common/rfb/ScaleFilters.h

index 54da58494a5112aea0070bbc6b19a7dbdc8da407..2a3344cead99a8b7ccf3b18a1ae8997972b38a1a 100644 (file)
@@ -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_) {
index 770ee760e5055fa0556b0805e59423d5573e37da..b306f470224a45c76f11e157baafb77e0ba18d7d 100644 (file)
@@ -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;
 
   //