• Home
  • Raw
  • Download

Lines Matching refs:ry

108 static void kernel_clamped(uint8_t dst[], int rx, int ry, const uint32_t sum[],  in kernel_clamped()  argument
112 uint32_t scale = (1 << 24) / ((2*rx + 1)*(2*ry + 1)); in kernel_clamped()
117 int dh = sh + 2*ry; in kernel_clamped()
119 int prev_y = -2*ry; in kernel_clamped()
169 static void apply_kernel(uint8_t dst[], int rx, int ry, const uint32_t sum[], in apply_kernel() argument
172 kernel_clamped(dst, rx, ry, sum, sw, sh); in apply_kernel()
176 uint32_t scale = (1 << 24) / ((2*rx + 1)*(2*ry + 1)); in apply_kernel()
181 int dh = sh + 2*ry; in apply_kernel()
183 int prev_y = -2*ry; in apply_kernel()
268 static void kernel_interp_clamped(uint8_t dst[], int rx, int ry, in kernel_interp_clamped() argument
278 uint32_t outer_scale = (outer_weight << 16) / ((2*rx + 1)*(2*ry + 1)); in kernel_interp_clamped()
279 uint32_t inner_scale = (inner_weight << 16) / ((2*rx - 1)*(2*ry - 1)); in kernel_interp_clamped()
284 int dh = sh + 2*ry; in kernel_interp_clamped()
286 int prev_y = -2*ry; in kernel_interp_clamped()
353 static void apply_kernel_interp(uint8_t dst[], int rx, int ry, in apply_kernel_interp() argument
355 SkASSERT(rx > 0 && ry > 0); in apply_kernel_interp()
359 kernel_interp_clamped(dst, rx, ry, sum, sw, sh, outer_weight); in apply_kernel_interp()
369 uint32_t outer_scale = (outer_weight << 16) / ((2*rx + 1)*(2*ry + 1)); in apply_kernel_interp()
370 uint32_t inner_scale = (inner_weight << 16) / ((2*rx - 1)*(2*ry - 1)); in apply_kernel_interp()
375 int dh = sh + 2*ry; in apply_kernel_interp()
377 int prev_y = -2*ry; in apply_kernel_interp()
578 int ry = rx; // only do square blur for now in Blur() local
581 int pady = passCount * ry; in Blur()
607 const size_t storageH = sh + 2 * (passCount - 1) * ry + 1; in Blur()
614 apply_kernel(dp, rx, ry, sumBuffer, sw, sh); in Blur()
616 apply_kernel_interp(dp, rx, ry, sumBuffer, sw, sh, outer_weight); in Blur()
622 int tmp_sh = sh + 2 * ry; in Blur()
626 apply_kernel(tmpBuffer.get(), rx, ry, sumBuffer, tmp_sw, tmp_sh); in Blur()
628 apply_kernel_interp(tmpBuffer.get(), rx, ry, sumBuffer, in Blur()
633 tmp_sh += 2 * ry; in Blur()
636 apply_kernel(dp, rx, ry, sumBuffer, tmp_sw, tmp_sh); in Blur()
638 apply_kernel_interp(dp, rx, ry, sumBuffer, tmp_sw, tmp_sh, in Blur()
655 dp + passCount * (rx + ry * dst->fRowBytes), in Blur()
659 clamp_with_orig(dp + passCount * (rx + ry * dst->fRowBytes), in Blur()