/external/chromium_org/third_party/skia/src/core/ |
SkBitmapFilter.cpp | 32 SkPoint srcPt; 34 SkFloatToScalar(y + 0.5f), &srcPt); 35 srcPt.fX -= SK_ScalarHalf; 36 srcPt.fY -= SK_ScalarHalf; 41 int y0 = SkClampMax(SkScalarCeilToInt(srcPt.fY-s.getBitmapFilter()->width()), maxY); 42 int y1 = SkClampMax(SkScalarFloorToInt(srcPt.fY+s.getBitmapFilter()->width()), maxY); 43 int x0 = SkClampMax(SkScalarCeilToInt(srcPt.fX-s.getBitmapFilter()->width()), maxX); 44 int x1 = SkClampMax(SkScalarFloorToInt(srcPt.fX+s.getBitmapFilter()->width()), maxX); 47 SkScalar yWeight = s.getBitmapFilter()->lookupScalar((srcPt.fY - srcY)); 50 SkScalar xWeight = s.getBitmapFilter()->lookupScalar((srcPt.fX - srcX)) [all...] |
SkMatrix.cpp | [all...] |
SkBitmapShader16BilerpTemplate.h | 83 SkPoint srcPt; 85 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 87 fx = SkScalarToFixed(srcPt.fX) - SK_FixedHalf; 88 fy = SkScalarToFixed(srcPt.fY) - SK_FixedHalf; 191 SkPoint srcPt; 193 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 195 fx = SkScalarToFixed(srcPt.fX) - SK_FixedHalf; 196 fy = SkScalarToFixed(srcPt.fY) - SK_FixedHalf;
|
SkBitmapShaderTemplate.h | 116 SkPoint srcPt; 118 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 120 fx = SkScalarToFixed(srcPt.fX); 121 fy = SkScalarToFixed(srcPt.fY); 239 SkPoint srcPt; 241 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 243 fx = SkScalarToFixed(srcPt.fX); 244 fy = SkScalarToFixed(srcPt.fY);
|
SkBitmapProcState_matrix.h | 118 SkPoint srcPt; 121 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 123 SkFractionalInt fx = SkScalarToFractionalInt(srcPt.fX); 124 SkFractionalInt fy = SkScalarToFractionalInt(srcPt.fY); 224 SkPoint srcPt; 227 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 231 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); 232 SkFixed fy = SkScalarToFixed(srcPt.fY) - (oneY >> 1);
|
ARGB32_Clamp_Bilinear_BitmapShader.h | 119 SkPoint srcPt; 122 &srcPt); 124 fx = SkScalarToFixed(srcPt.fX) - SK_FixedHalf; 125 fy = SkScalarToFixed(srcPt.fY) - SK_FixedHalf;
|
/external/skia/src/core/ |
SkBitmapFilter.cpp | 32 SkPoint srcPt; 34 SkFloatToScalar(y + 0.5f), &srcPt); 35 srcPt.fX -= SK_ScalarHalf; 36 srcPt.fY -= SK_ScalarHalf; 41 int y0 = SkClampMax(SkScalarCeilToInt(srcPt.fY-s.getBitmapFilter()->width()), maxY); 42 int y1 = SkClampMax(SkScalarFloorToInt(srcPt.fY+s.getBitmapFilter()->width()), maxY); 43 int x0 = SkClampMax(SkScalarCeilToInt(srcPt.fX-s.getBitmapFilter()->width()), maxX); 44 int x1 = SkClampMax(SkScalarFloorToInt(srcPt.fX+s.getBitmapFilter()->width()), maxX); 47 SkScalar yWeight = s.getBitmapFilter()->lookupScalar((srcPt.fY - srcY)); 50 SkScalar xWeight = s.getBitmapFilter()->lookupScalar((srcPt.fX - srcX)) [all...] |
SkMatrix.cpp | [all...] |
SkBitmapShader16BilerpTemplate.h | 83 SkPoint srcPt; 85 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 87 fx = SkScalarToFixed(srcPt.fX) - SK_FixedHalf; 88 fy = SkScalarToFixed(srcPt.fY) - SK_FixedHalf; 191 SkPoint srcPt; 193 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 195 fx = SkScalarToFixed(srcPt.fX) - SK_FixedHalf; 196 fy = SkScalarToFixed(srcPt.fY) - SK_FixedHalf;
|
SkBitmapShaderTemplate.h | 116 SkPoint srcPt; 118 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 120 fx = SkScalarToFixed(srcPt.fX); 121 fy = SkScalarToFixed(srcPt.fY); 239 SkPoint srcPt; 241 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 243 fx = SkScalarToFixed(srcPt.fX); 244 fy = SkScalarToFixed(srcPt.fY);
|
SkBitmapProcState_matrix.h | 118 SkPoint srcPt; 121 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 123 SkFractionalInt fx = SkScalarToFractionalInt(srcPt.fX); 124 SkFractionalInt fy = SkScalarToFractionalInt(srcPt.fY); 224 SkPoint srcPt; 227 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 231 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); 232 SkFixed fy = SkScalarToFixed(srcPt.fY) - (oneY >> 1);
|
ARGB32_Clamp_Bilinear_BitmapShader.h | 119 SkPoint srcPt; 122 &srcPt); 124 fx = SkScalarToFixed(srcPt.fX) - SK_FixedHalf; 125 fy = SkScalarToFixed(srcPt.fY) - SK_FixedHalf;
|
/external/chromium_org/third_party/skia/src/effects/gradients/ |
SkSweepGradient.cpp | 305 SkPoint srcPt; 309 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 310 SkScalar dx, fx = srcPt.fX; 311 SkScalar dy, fy = srcPt.fY; 334 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 335 *dstC++ = cache[toggle + SkATan2_255(srcPt.fY, srcPt.fX)]; 347 SkPoint srcPt; 351 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 352 SkScalar dx, fx = srcPt.fX [all...] |
SkRadialGradient.cpp | 173 SkPoint srcPt; 181 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 204 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, 210 dstProc(fDstToIndex, dstX, dstY, &srcPt); 211 unsigned fi = proc(SkScalarToFixed(srcPt.length())); 422 SkPoint srcPt; 430 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 452 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, cache, count, toggle) [all...] |
SkLinearGradient.cpp | 204 SkPoint srcPt; 212 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 213 SkFixed dx, fx = SkScalarToFixed(srcPt.fX); 239 dstProc(fDstToIndex, dstX, dstY, &srcPt); 240 unsigned fi = proc(SkScalarToFixed(srcPt.fX)); 385 SkPoint srcPt; 393 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 394 SkFixed dx, fx = SkScalarToFixed(srcPt.fX); 420 dstProc(fDstToIndex, dstX, dstY, &srcPt); 421 unsigned fi = proc(SkScalarToFixed(srcPt.fX)) [all...] |
SkTwoPointRadialGradient.cpp | 241 SkPoint srcPt; 243 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 244 SkScalar dx, fx = srcPt.fX; 245 SkScalar dy, fy = srcPt.fY; 277 SkPoint srcPt; 278 dstProc(fDstToIndex, dstX, dstY, &srcPt); 279 SkScalar fx = srcPt.fX; 280 SkScalar fy = srcPt.fY;
|
/external/skia/src/effects/gradients/ |
SkSweepGradient.cpp | 305 SkPoint srcPt; 309 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 310 SkScalar dx, fx = srcPt.fX; 311 SkScalar dy, fy = srcPt.fY; 334 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 335 *dstC++ = cache[toggle + SkATan2_255(srcPt.fY, srcPt.fX)]; 347 SkPoint srcPt; 351 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 352 SkScalar dx, fx = srcPt.fX [all...] |
SkRadialGradient.cpp | 173 SkPoint srcPt; 181 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 204 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, 210 dstProc(fDstToIndex, dstX, dstY, &srcPt); 211 unsigned fi = proc(SkScalarToFixed(srcPt.length())); 422 SkPoint srcPt; 430 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 452 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, cache, count, toggle) [all...] |
SkLinearGradient.cpp | 204 SkPoint srcPt; 212 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 213 SkFixed dx, fx = SkScalarToFixed(srcPt.fX); 239 dstProc(fDstToIndex, dstX, dstY, &srcPt); 240 unsigned fi = proc(SkScalarToFixed(srcPt.fX)); 385 SkPoint srcPt; 393 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 394 SkFixed dx, fx = SkScalarToFixed(srcPt.fX); 420 dstProc(fDstToIndex, dstX, dstY, &srcPt); 421 unsigned fi = proc(SkScalarToFixed(srcPt.fX)) [all...] |
SkTwoPointRadialGradient.cpp | 241 SkPoint srcPt; 243 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 244 SkScalar dx, fx = srcPt.fX; 245 SkScalar dy, fy = srcPt.fY; 277 SkPoint srcPt; 278 dstProc(fDstToIndex, dstX, dstY, &srcPt); 279 SkScalar fx = srcPt.fX; 280 SkScalar fy = srcPt.fY;
|
/external/chromium_org/third_party/skia/src/opts/ |
SkBitmapFilter_opts_SSE2.cpp | 58 SkPoint srcPt; 60 SkIntToScalar(y), &srcPt); 61 srcPt.fX -= SK_ScalarHalf; 62 srcPt.fY -= SK_ScalarHalf; 64 int sx = SkScalarFloorToInt(srcPt.fX); 65 int sy = SkScalarFloorToInt(srcPt.fY); 76 float yweight = SkScalarToFloat(s.getBitmapFilter()->lookupScalar(srcPt.fY - src_y)); 79 float xweight = SkScalarToFloat(s.getBitmapFilter()->lookupScalar(srcPt.fX - src_x)); 121 SkPoint srcPt; 123 SkIntToScalar(y), &srcPt); [all...] |
SkBitmapProcState_matrix_repeat_neon.h | 169 SkPoint srcPt; 172 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 174 SkFixed fx = SkScalarToFixed(srcPt.fX); 175 SkFixed fy = SkScalarToFixed(srcPt.fY); 459 SkPoint srcPt; 462 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 466 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); 467 SkFixed fy = SkScalarToFixed(srcPt.fY) - (oneY >> 1);
|
/external/skia/src/opts/ |
SkBitmapFilter_opts_SSE2.cpp | 58 SkPoint srcPt; 60 SkIntToScalar(y), &srcPt); 61 srcPt.fX -= SK_ScalarHalf; 62 srcPt.fY -= SK_ScalarHalf; 64 int sx = SkScalarFloorToInt(srcPt.fX); 65 int sy = SkScalarFloorToInt(srcPt.fY); 76 float yweight = SkScalarToFloat(s.getBitmapFilter()->lookupScalar(srcPt.fY - src_y)); 79 float xweight = SkScalarToFloat(s.getBitmapFilter()->lookupScalar(srcPt.fX - src_x)); 121 SkPoint srcPt; 123 SkIntToScalar(y), &srcPt); [all...] |
/external/chromium_org/third_party/skia/src/effects/ |
SkBicubicImageFilter.cpp | 117 SkPoint srcPt, dstPt = SkPoint::Make(SkIntToScalar(x), SkIntToScalar(y)); 118 inverse.mapPoints(&srcPt, &dstPt, 1); 119 SkScalar fractx = srcPt.fX - SkScalarFloorToScalar(srcPt.fX); 120 SkScalar fracty = srcPt.fY - SkScalarFloorToScalar(srcPt.fY); 121 int sx = SkScalarFloorToInt(srcPt.fX); 122 int sy = SkScalarFloorToInt(srcPt.fY);
|
/external/skia/src/effects/ |
SkBicubicImageFilter.cpp | 117 SkPoint srcPt, dstPt = SkPoint::Make(SkIntToScalar(x), SkIntToScalar(y)); 118 inverse.mapPoints(&srcPt, &dstPt, 1); 119 SkScalar fractx = srcPt.fX - SkScalarFloorToScalar(srcPt.fX); 120 SkScalar fracty = srcPt.fY - SkScalarFloorToScalar(srcPt.fY); 121 int sx = SkScalarFloorToInt(srcPt.fX); 122 int sy = SkScalarFloorToInt(srcPt.fY);
|