From 00861095f43a0fa1ced5b7e684d9b676df52342f Mon Sep 17 00:00:00 2001 From: ippo615 Date: Sat, 30 Nov 2013 11:37:19 -0500 Subject: [PATCH] Removed unsed blurring code --- src/filters/Blur.js | 160 -------------------------------------------- 1 file changed, 160 deletions(-) diff --git a/src/filters/Blur.js b/src/filters/Blur.js index 4933bd33..43375c64 100644 --- a/src/filters/Blur.js +++ b/src/filters/Blur.js @@ -74,91 +74,6 @@ }; - var _BlurX = function(src,dst,opt){ - - var srcPixels = src.data, - dstPixels = dst.data, - xSize = src.width, - ySize = src.height, - i, m, x, y, k, tmp, r=0,g=0,b=0,a=0; - - var kSize = opt.blurWidth || 5, - kMid = Math.floor(kSize/2); - - var xEnd = xSize - kMid; - - for (y = 0; y < ySize; y += 1) { - // Let's pretend we have a row of pixels with values: [1,2,3,4,5,6,7,8] - // To blur them, we need to compute a moving average as we move across it - // Let's say the moving average will have 5 elements in it, that means - // we need a buffer of 5 elements but we're summing them everytime so - // we'll just store the sum. - // To start we add everything before the (5/2)=2.5, 2nd element - // Then we add the 3rd element - // 12345 12345 12345 12345 12345 - // 123 1234 12345 2345 345 - // 6 6A 6AF 6AFE 6AFEC - r=0;g=0;b=0;a=0; - for (x=0; x