/external/chromium_org/third_party/skia/src/core/ |
SkBitmapProcState_matrix_template.h | 83 SkPoint srcPt; 86 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 88 SkFractionalInt fx = SkScalarToFractionalInt(srcPt.fX); 89 SkFractionalInt fy = SkScalarToFractionalInt(srcPt.fY);
|
SkBitmapFilter.cpp | 34 SkPoint srcPt; 36 y + 0.5f, &srcPt); 37 srcPt.fX -= SK_ScalarHalf; 38 srcPt.fY -= SK_ScalarHalf; 43 int y0 = SkClampMax(SkScalarCeilToInt(srcPt.fY-s.getBitmapFilter()->width()), maxY); 44 int y1 = SkClampMax(SkScalarFloorToInt(srcPt.fY+s.getBitmapFilter()->width()+1), maxY); 45 int x0 = SkClampMax(SkScalarCeilToInt(srcPt.fX-s.getBitmapFilter()->width()), maxX); 46 int x1 = SkClampMax(SkScalarFloorToInt(srcPt.fX+s.getBitmapFilter()->width())+1, maxX); 50 xWeights[srcX - x0] = s.getBitmapFilter()->lookupScalar((srcPt.fX - srcX)); 54 SkScalar yWeight = s.getBitmapFilter()->lookupScalar((srcPt.fY - srcY)) [all...] |
SkBitmapProcState_matrix.h | 98 SkPoint srcPt; 101 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 105 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); 106 SkFixed fy = SkScalarToFixed(srcPt.fY) - (oneY >> 1);
|
/external/skia/src/core/ |
SkBitmapProcState_matrix_template.h | 83 SkPoint srcPt; 86 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 88 SkFractionalInt fx = SkScalarToFractionalInt(srcPt.fX); 89 SkFractionalInt fy = SkScalarToFractionalInt(srcPt.fY);
|
SkBitmapFilter.cpp | 33 SkPoint srcPt; 35 y + 0.5f, &srcPt); 36 srcPt.fX -= SK_ScalarHalf; 37 srcPt.fY -= SK_ScalarHalf; 42 int y0 = SkClampMax(SkScalarCeilToInt(srcPt.fY-s.getBitmapFilter()->width()), maxY); 43 int y1 = SkClampMax(SkScalarFloorToInt(srcPt.fY+s.getBitmapFilter()->width()+1), maxY); 44 int x0 = SkClampMax(SkScalarCeilToInt(srcPt.fX-s.getBitmapFilter()->width()), maxX); 45 int x1 = SkClampMax(SkScalarFloorToInt(srcPt.fX+s.getBitmapFilter()->width())+1, maxX); 48 SkScalar yWeight = s.getBitmapFilter()->lookupScalar((srcPt.fY - srcY)); 51 SkScalar xWeight = s.getBitmapFilter()->lookupScalar((srcPt.fX - srcX)) [all...] |
SkBitmapProcState_matrix.h | 98 SkPoint srcPt; 101 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 105 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); 106 SkFixed fy = SkScalarToFixed(srcPt.fY) - (oneY >> 1);
|
/external/chromium_org/third_party/skia/src/effects/gradients/ |
SkTwoPointRadialGradient.cpp | 265 SkPoint srcPt; 267 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 268 SkScalar dx, fx = srcPt.fX; 269 SkScalar dy, fy = srcPt.fY; 303 SkPoint srcPt; 304 dstProc(fDstToIndex, dstX, dstY, &srcPt); 305 SkScalar fx = srcPt.fX; 306 SkScalar fy = srcPt.fY;
|
SkSweepGradient.cpp | 101 SkPoint srcPt; 105 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 106 SkScalar dx, fx = srcPt.fX; 107 SkScalar dy, fy = srcPt.fY; 130 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 131 *dstC++ = cache[toggle + SkATan2_255(srcPt.fY, srcPt.fX)]; 143 SkPoint srcPt; 147 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 148 SkScalar dx, fx = srcPt.fX [all...] |
SkTwoPointConicalGradient.cpp | 265 SkPoint srcPt; 267 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 268 SkScalar dx, fx = srcPt.fX; 269 SkScalar dy, fy = srcPt.fY; 288 SkPoint srcPt; 289 dstProc(fDstToIndex, dstX, dstY, &srcPt); 290 TwoPtRadialContext rec(twoPointConicalGradient.fRec, srcPt.fX, srcPt.fY, 0, 0);
|
SkLinearGradient.cpp | 225 SkPoint srcPt; 233 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 234 SkFixed dx, fx = SkScalarToFixed(srcPt.fX); 260 dstProc(fDstToIndex, dstX, dstY, &srcPt); 261 unsigned fi = proc(SkScalarToFixed(srcPt.fX)); 412 SkPoint srcPt; 420 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 421 SkFixed dx, fx = SkScalarToFixed(srcPt.fX); 447 dstProc(fDstToIndex, dstX, dstY, &srcPt); 448 unsigned fi = proc(SkScalarToFixed(srcPt.fX)) [all...] |
SkRadialGradient.cpp | 179 SkPoint srcPt; 187 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 210 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, 216 dstProc(fDstToIndex, dstX, dstY, &srcPt); 217 unsigned fi = proc(SkScalarToFixed(srcPt.length())); 424 SkPoint srcPt; 432 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 454 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, cache, count, toggle) [all...] |
/external/skia/src/effects/gradients/ |
SkTwoPointRadialGradient.cpp | 265 SkPoint srcPt; 267 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 268 SkScalar dx, fx = srcPt.fX; 269 SkScalar dy, fy = srcPt.fY; 303 SkPoint srcPt; 304 dstProc(fDstToIndex, dstX, dstY, &srcPt); 305 SkScalar fx = srcPt.fX; 306 SkScalar fy = srcPt.fY;
|
SkSweepGradient.cpp | 90 SkPoint srcPt; 94 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 95 SkScalar dx, fx = srcPt.fX; 96 SkScalar dy, fy = srcPt.fY; 119 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 120 *dstC++ = cache[toggle + SkATan2_255(srcPt.fY, srcPt.fX)]; 132 SkPoint srcPt; 136 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 137 SkScalar dx, fx = srcPt.fX [all...] |
SkTwoPointConicalGradient.cpp | 265 SkPoint srcPt; 267 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 268 SkScalar dx, fx = srcPt.fX; 269 SkScalar dy, fy = srcPt.fY; 288 SkPoint srcPt; 289 dstProc(fDstToIndex, dstX, dstY, &srcPt); 290 TwoPtRadialContext rec(twoPointConicalGradient.fRec, srcPt.fX, srcPt.fY, 0, 0);
|
SkLinearGradient.cpp | 211 SkPoint srcPt; 219 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 220 SkFixed dx, fx = SkScalarToFixed(srcPt.fX); 246 dstProc(fDstToIndex, dstX, dstY, &srcPt); 247 unsigned fi = proc(SkScalarToFixed(srcPt.fX)); 398 SkPoint srcPt; 406 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 407 SkFixed dx, fx = SkScalarToFixed(srcPt.fX); 433 dstProc(fDstToIndex, dstX, dstY, &srcPt); 434 unsigned fi = proc(SkScalarToFixed(srcPt.fX)) [all...] |
SkRadialGradient.cpp | 180 SkPoint srcPt; 188 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 211 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, 217 dstProc(fDstToIndex, dstX, dstY, &srcPt); 218 unsigned fi = proc(SkScalarToFixed(srcPt.length())); 412 SkPoint srcPt; 420 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 442 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, cache, count, toggle) [all...] |
/external/chromium_org/third_party/skia/src/opts/ |
SkBitmapFilter_opts_SSE2.cpp | 54 SkPoint srcPt; 55 s.fInvProc(s.fInvMatrix, x + 0.5f, y + 0.5f, &srcPt); 56 srcPt.fX -= SK_ScalarHalf; 57 srcPt.fY -= SK_ScalarHalf; 62 int y0 = SkClampMax(SkScalarCeilToInt(srcPt.fY-s.getBitmapFilter()->width()), maxY); 63 int y1 = SkClampMax(SkScalarFloorToInt(srcPt.fY+s.getBitmapFilter()->width()+1), maxY); 64 int x0 = SkClampMax(SkScalarCeilToInt(srcPt.fX-s.getBitmapFilter()->width()), maxX); 65 int x1 = SkClampMax(SkScalarFloorToInt(srcPt.fX+s.getBitmapFilter()->width())+1, maxX); 69 xWeights[srcX - x0] = s.getBitmapFilter()->lookupScalar((srcPt.fX - srcX)); 73 SkScalar yWeight = s.getBitmapFilter()->lookupScalar((srcPt.fY - srcY)) [all...] |
SkBitmapProcState_matrix_neon.h | 116 SkPoint srcPt; 119 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 121 SkFractionalInt fx = SkScalarToFractionalInt(srcPt.fX); 122 SkFractionalInt fy = SkScalarToFractionalInt(srcPt.fY); 361 SkPoint srcPt; 364 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 368 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); 369 SkFixed fy = SkScalarToFixed(srcPt.fY) - (oneY >> 1);
|
SkBitmapProcState_opts_SSE2.cpp | 492 SkPoint srcPt; 495 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 499 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); 500 SkFixed fy = SkScalarToFixed(srcPt.fY) - (oneY >> 1); 568 SkPoint srcPt; 571 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 573 SkFixed fx = SkScalarToFixed(srcPt.fX); 574 SkFixed fy = SkScalarToFixed(srcPt.fY);
|
/external/skia/src/effects/ |
SkBicubicImageFilter.cpp | 124 SkPoint srcPt, dstPt = SkPoint::Make(SkIntToScalar(x), SkIntToScalar(y)); 125 inverse.mapPoints(&srcPt, &dstPt, 1); 126 SkScalar fractx = srcPt.fX - SkScalarFloorToScalar(srcPt.fX); 127 SkScalar fracty = srcPt.fY - SkScalarFloorToScalar(srcPt.fY); 128 int sx = SkScalarFloorToInt(srcPt.fX); 129 int sy = SkScalarFloorToInt(srcPt.fY);
|
/external/skia/src/opts/ |
SkBitmapFilter_opts_SSE2.cpp | 53 SkPoint srcPt; 55 SkIntToScalar(y), &srcPt); 56 srcPt.fX -= SK_ScalarHalf; 57 srcPt.fY -= SK_ScalarHalf; 59 int sx = SkScalarFloorToInt(srcPt.fX); 60 int sy = SkScalarFloorToInt(srcPt.fY); 71 float yweight = SkScalarToFloat(s.getBitmapFilter()->lookupScalar(srcPt.fY - src_y)); 74 float xweight = SkScalarToFloat(s.getBitmapFilter()->lookupScalar(srcPt.fX - src_x)); 116 SkPoint srcPt; 118 SkIntToScalar(y), &srcPt); [all...] |
SkBitmapProcState_matrix_neon.h | 116 SkPoint srcPt; 119 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 121 SkFractionalInt fx = SkScalarToFractionalInt(srcPt.fX); 122 SkFractionalInt fy = SkScalarToFractionalInt(srcPt.fY); 361 SkPoint srcPt; 364 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 368 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); 369 SkFixed fy = SkScalarToFixed(srcPt.fY) - (oneY >> 1);
|
SkBitmapProcState_opts_SSE2.cpp | 492 SkPoint srcPt; 495 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 499 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); 500 SkFixed fy = SkScalarToFixed(srcPt.fY) - (oneY >> 1); 568 SkPoint srcPt; 571 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 573 SkFixed fx = SkScalarToFixed(srcPt.fX); 574 SkFixed fy = SkScalarToFixed(srcPt.fY);
|