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