Lines Matching defs:width
28 static void fill_in_2D_gaussian_kernel(float* kernel, int width, int height,
41 const int xRadius = width / 2;
45 for (int x = 0; x < width; x++) {
53 kernel[y * width + x] = xyTerm;
59 for (int i = 0; i < width * height; ++i) {
133 fill_in_2D_gaussian_kernel(kernel, size.width(), size.height(), sigmaX, sigmaY);
218 // width of dst and we will not draw mid or right.
260 if (!mid.isEmpty() && mid.width()*mid.height() < 256*256) {
473 if (dstBounds.width() > maxRenderTargetSize || dstBounds.height() > maxRenderTargetSize) {
506 // All non-decal tile modes are equivalent for one pixel width/height src and amount to a
509 if (srcBounds.width() == 1) {
578 SkISize rescaledSize = {std::max(sk_float_floor2int(srcBounds.width() *scaleX), 1),
582 scaleX = static_cast<float>(rescaledSize.width()) /srcBounds.width();
615 {rescaledSize.width() + 2*padX, rescaledSize.height() + 2*padY},
664 int sw = srcBounds.width();
819 int width = std::max(SkNextPow2(minWidth), 32);
822 return width;
825 if (!table->tryAllocPixels(SkImageInfo::MakeA8(width, 1))) {
829 const float invWidth = 1.f / width;
830 for (int i = 1; i < width - 1; ++i) {
837 *table->getAddr8(width - 1, 0) = 0;
839 return table->width();