Home | History | Annotate | Download | only in effects

Lines Matching refs:pad

745     int pad = profile_size/2;
747 margin->set( pad, pad );
750 dst->fBounds.set(SkScalarRoundToInt(src.fLeft - pad),
751 SkScalarRoundToInt(src.fTop - pad),
752 SkScalarRoundToInt(src.fRight + pad),
753 SkScalarRoundToInt(src.fBottom + pad));
810 uint8_t *blur_scanline = dp + (y+pad)*dstWidth + pad;
823 for (int y = pad ; y < dstHeight-pad ; y++) {
824 uint8_t *dst_scanline = dp + y*dstWidth + pad;
828 for (int y = pad ; y < dstHeight-pad ; y++) {
829 uint8_t *dst_scanline = dp + y*dstWidth + pad;
881 int pad = halfWindow;
883 margin->set( pad, pad );
887 dst->fBounds.outset(pad, pad);
909 // use double pad so we never have to check if we're outside anything
911 int padWidth = srcWidth + 4*pad;
919 uint8_t* padptr = padPixels + y * padWidth + 2*pad;
925 // also double-pad the intermediate result so that the second blur doesn't
928 int tmpWidth = padHeight + 4*pad;
929 int tmpHeight = padWidth - 2*pad;
937 for (int x = pad ; x < padWidth - pad ; ++x) {
938 float *outPixel = tmpImage + (x-pad)*tmpWidth + y + 2*pad; // transposed output
940 for (int i = -pad ; i <= pad ; ++i) {
941 *outPixel += gaussWindow[pad+i]*windowCenter[i];
953 for (int x = pad ; x < tmpWidth - pad ; ++x) {
956 for (int i = -pad ; i <= pad ; ++i) {
957 finalValue += gaussWindow[pad+i]*windowCenter[i];
960 uint8_t *outPixel = dstPixels + (x-pad
978 dstPixels + pad*dst->fRowBytes + pad,
982 clamp_with_orig(dstPixels + pad*dst->fRowBytes + pad,