/external/chromium_org/third_party/skia/src/core/ |
ARGB32_Clamp_Bilinear_BitmapShader.h | 119 SkPoint srcPt; 122 &srcPt); 124 fx = SkScalarToFixed(srcPt.fX) - SK_FixedHalf; 125 fy = SkScalarToFixed(srcPt.fY) - SK_FixedHalf;
|
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 | 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);
|
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);
|
/external/chromium_org/third_party/skia/src/effects/gradients/ |
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;
|
SkLinearGradient.cpp | 203 SkPoint srcPt; 211 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 212 SkFixed dx, fx = SkScalarToFixed(srcPt.fX); 238 dstProc(fDstToIndex, dstX, dstY, &srcPt); 239 unsigned fi = proc(SkScalarToFixed(srcPt.fX)); 384 SkPoint srcPt; 392 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 393 SkFixed dx, fx = SkScalarToFixed(srcPt.fX); 419 dstProc(fDstToIndex, dstX, dstY, &srcPt); 420 unsigned fi = proc(SkScalarToFixed(srcPt.fX)) [all...] |
SkRadialGradient.cpp | 166 SkPoint srcPt; 174 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 197 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, 203 dstProc(fDstToIndex, dstX, dstY, &srcPt); 204 unsigned fi = proc(SkScalarToFixed(srcPt.length())); 396 SkPoint srcPt; 404 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 426 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, cache, count, toggle) [all...] |
/external/skia/src/core/ |
ARGB32_Clamp_Bilinear_BitmapShader.h | 119 SkPoint srcPt; 122 &srcPt); 124 fx = SkScalarToFixed(srcPt.fX) - SK_FixedHalf; 125 fy = SkScalarToFixed(srcPt.fY) - SK_FixedHalf;
|
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 | 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);
|
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);
|
/external/skia/src/effects/gradients/ |
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;
|
SkLinearGradient.cpp | 203 SkPoint srcPt; 211 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 212 SkFixed dx, fx = SkScalarToFixed(srcPt.fX); 238 dstProc(fDstToIndex, dstX, dstY, &srcPt); 239 unsigned fi = proc(SkScalarToFixed(srcPt.fX)); 384 SkPoint srcPt; 392 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 393 SkFixed dx, fx = SkScalarToFixed(srcPt.fX); 419 dstProc(fDstToIndex, dstX, dstY, &srcPt); 420 unsigned fi = proc(SkScalarToFixed(srcPt.fX)) [all...] |
SkRadialGradient.cpp | 166 SkPoint srcPt; 174 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 197 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, 203 dstProc(fDstToIndex, dstX, dstY, &srcPt); 204 unsigned fi = proc(SkScalarToFixed(srcPt.length())); 396 SkPoint srcPt; 404 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 426 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, cache, count, toggle) [all...] |
/external/chromium_org/third_party/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/chromium_org/third_party/skia/src/opts/ |
SkBitmapFilter_opts_SSE2.cpp | 55 SkPoint srcPt; 57 SkIntToScalar(y), &srcPt); 58 srcPt.fX -= SK_ScalarHalf; 59 srcPt.fY -= SK_ScalarHalf; 61 int sx = SkScalarFloorToInt(srcPt.fX); 62 int sy = SkScalarFloorToInt(srcPt.fY); 73 float yweight = SkScalarToFloat(s.getBitmapFilter()->lookupScalar(srcPt.fY - src_y)); 76 float xweight = SkScalarToFloat(s.getBitmapFilter()->lookupScalar(srcPt.fX - src_x)); 118 SkPoint srcPt; 120 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);
|
SkBitmapProcState_opts_SSE2.cpp | 493 SkPoint srcPt; 496 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 500 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); 501 SkFixed fy = SkScalarToFixed(srcPt.fY) - (oneY >> 1); 569 SkPoint srcPt; 572 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 574 SkFixed fx = SkScalarToFixed(srcPt.fX); 575 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 | 55 SkPoint srcPt; 57 SkIntToScalar(y), &srcPt); 58 srcPt.fX -= SK_ScalarHalf; 59 srcPt.fY -= SK_ScalarHalf; 61 int sx = SkScalarFloorToInt(srcPt.fX); 62 int sy = SkScalarFloorToInt(srcPt.fY); 73 float yweight = SkScalarToFloat(s.getBitmapFilter()->lookupScalar(srcPt.fY - src_y)); 76 float xweight = SkScalarToFloat(s.getBitmapFilter()->lookupScalar(srcPt.fX - src_x)); 118 SkPoint srcPt; 120 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);
|
SkBitmapProcState_opts_SSE2.cpp | 493 SkPoint srcPt; 496 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 500 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); 501 SkFixed fy = SkScalarToFixed(srcPt.fY) - (oneY >> 1); 569 SkPoint srcPt; 572 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); 574 SkFixed fx = SkScalarToFixed(srcPt.fX); 575 SkFixed fy = SkScalarToFixed(srcPt.fY);
|
/frameworks/base/core/jni/android/graphics/ |
Matrix.cpp | 248 SkPoint srcPt[4], dstPt[4]; 252 srcPt[i].set(SkFloatToScalar(src[x]), SkFloatToScalar(src[y])); 255 return matrix->setPolyToPoly(srcPt, dstPt, ptCount); 280 SkPoint* srcPt = pts; 285 srcPt[i].set(SkFloatToScalar(srcArray[i << 1]), 290 matrix->mapPoints(dstPt, srcPt, ptCount); 292 matrix->mapVectors(dstPt, srcPt, ptCount);
|