Lines Matching refs:wh
363 int wh = *filterSize = 2*halfFilterSize + 1; in create_2d_kernel() local
365 float* temp = new float[wh*wh]; in create_2d_kernel()
368 for (int yOff = 0; yOff < wh; ++yOff) { in create_2d_kernel()
369 for (int xOff = 0; xOff < wh; ++xOff) { in create_2d_kernel()
370 temp[yOff*wh+xOff] = gaussian2d_value(xOff-halfFilterSize, yOff-halfFilterSize, sigma); in create_2d_kernel()
372 filterTot += temp[yOff*wh+xOff]; in create_2d_kernel()
377 for (int yOff = 0; yOff < wh; ++yOff) { in create_2d_kernel()
378 for (int xOff = 0; xOff < wh; ++xOff) { in create_2d_kernel()
379 temp[yOff*wh+xOff] /= filterTot; in create_2d_kernel()
386 static SkPMColor blur_pixel(const SkBitmap& bm, int x, int y, float* kernel, int wh) { in blur_pixel() argument
387 SkASSERT(wh & 0x1); in blur_pixel()
389 int halfFilterSize = (wh-1)/2; in blur_pixel()
392 for (int yOff = 0; yOff < wh; ++yOff) { in blur_pixel()
401 for (int xOff = 0; xOff < wh; ++xOff) { in blur_pixel()
410 float filter = kernel[yOff*wh + xOff]; in blur_pixel()
434 int wh; in slow_blur() local
435 SkAutoTDeleteArray<float> kernel(create_2d_kernel(sigma, &wh)); in slow_blur()
439 *dst.getAddr32(x, y) = blur_pixel(src, x, y, kernel.get(), wh); in slow_blur()