Lines Matching refs:pad

403     int pad = profileSize/2;
405 margin->set( pad, pad );
408 dst->fBounds.setLTRB(SkScalarRoundToInt(src.fLeft - pad),
409 SkScalarRoundToInt(src.fTop - pad),
410 SkScalarRoundToInt(src.fRight + pad),
411 SkScalarRoundToInt(src.fBottom + pad));
467 uint8_t *blur_scanline = dp + (y+pad)*dstWidth + pad;
477 for (int y = pad ; y < dstHeight-pad ; y++) {
478 uint8_t *dst_scanline = dp + y*dstWidth + pad;
482 for (int y = pad ; y < dstHeight-pad ; y++) {
483 uint8_t *dst_scanline = dp + y*dstWidth + pad;
535 int pad = halfWindow;
537 margin->set( pad, pad );
541 dst->fBounds.outset(pad, pad);
563 // use double pad so we never have to check if we're outside anything
565 int padWidth = srcWidth + 4*pad;
573 uint8_t* padptr = padPixels + y * padWidth + 2*pad;
579 // also double-pad the intermediate result so that the second blur doesn't
582 int tmpWidth = padHeight + 4*pad;
583 int tmpHeight = padWidth - 2*pad;
591 for (int x = pad ; x < padWidth - pad ; ++x) {
592 float *outPixel = tmpImage + (x-pad)*tmpWidth + y + 2*pad; // transposed output
594 for (int i = -pad ; i <= pad ; ++i) {
595 *outPixel += gaussWindow[pad+i]*windowCenter[i];
607 for (int x = pad ; x < tmpWidth - pad ; ++x) {
610 for (int i = -pad ; i <= pad ; ++i) {
611 finalValue += gaussWindow[pad+i]*windowCenter[i];
614 uint8_t *outPixel = dstPixels + (x-pad)*dstWidth + y; // transposed output
626 dstPixels + pad*dst->fRowBytes + pad, dst->fRowBytes,
632 dstPixels + pad*dst->fRowBytes + pad, dst->fRowBytes,
645 dstPixels + pad*dst->fRowBytes + pad,