/external/skia/include/core/ |
D | SkFixed.h | 29 typedef int32_t SkFixed; typedef 42 #define SkFloatToFixed(x) ((SkFixed)((x) * SK_Fixed1)) 45 #define SkDoubleToFixed(x) ((SkFixed)((x) * SK_Fixed1)) 64 inline SkFixed SkIntToFixed(int n) in SkIntToFixed() 71 #define SkIntToFixed(n) (SkFixed)((n) << 16) 78 inline SkFract SkFixedToFract(SkFixed x) in SkFixedToFract() 89 inline SkFixed SkFixedFraction(SkFixed x) in SkFixedFraction() 91 SkFixed mask = x >> 31 << 16; in SkFixedFraction() 106 SkFixed SkFixedMul_portable(SkFixed, SkFixed); 108 inline SkFixed SkFixedSquare_portable(SkFixed value) in SkFixedSquare_portable() [all …]
|
D | SkScalerContext.h | 37 SkFixed fAdvanceX, fAdvanceY; 78 SkFixed getSubXFixed() const { in getSubXFixed() 82 SkFixed getSubYFixed() const { in getSubYFixed() 116 static unsigned FixedToSub(SkFixed n) { in FixedToSub() 120 static SkFixed SubToFixed(unsigned sub) { in SubToFixed() 129 static uint32_t MakeID(unsigned code, SkFixed x, SkFixed y) { in MakeID()
|
D | SkPerspIter.h | 36 const SkFixed* getXY() const { return fStorage; } in getXY() 49 SkFixed fStorage[kCount * 2]; 50 SkFixed fX, fY;
|
/external/skia/src/core/ |
D | SkCordic.h | 24 SkFixed SkCordicACos(SkFixed a); 25 SkFixed SkCordicASin(SkFixed a); 26 SkFixed SkCordicATan2(SkFixed y, SkFixed x); 27 SkFixed SkCordicExp(SkFixed a); 28 SkFixed SkCordicLog(SkFixed a); 29 SkFixed SkCordicSinCos(SkFixed radians, SkFixed* cosp); 30 SkFixed SkCordicTan(SkFixed a);
|
D | SkCordic.cpp | 57 SkFixed SkCordicSinCos(SkFixed radians, SkFixed* cosp) in SkCordicSinCos() 65 SkFixed sin = 0; in SkCordicSinCos() 66 SkFixed cos = kFixedInvGain1; in SkCordicSinCos() 78 SkFixed SkCordicTan(SkFixed a) in SkCordicTan() 111 SkFixed SkCordicASin(SkFixed a) { in SkCordicASin() 124 SkFixed SkCordicACos(SkFixed a) { in SkCordicACos() 130 SkFixed SkCordicATan2(SkFixed y, SkFixed x) { in SkCordicATan2() 140 SkFixed pi = SkApplySign(SK_FixedPI, rsign); in SkCordicATan2() 187 SkFixed SkCordicLog(SkFixed a) { in SkCordicLog() 199 SkFixed SkCordicExp(SkFixed a) { in SkCordicExp() [all …]
|
D | SkEdge.h | 33 SkFixed fX; 34 SkFixed fDX; 44 inline int updateLine(SkFixed ax, SkFixed ay, SkFixed bx, SkFixed by); 73 SkFixed fQx, fQy; 74 SkFixed fQDx, fQDy; 75 SkFixed fQDDx, fQDDy; 76 SkFixed fQLastX, fQLastY; 83 SkFixed fCx, fCy; 84 SkFixed fCDx, fCDy; 85 SkFixed fCDDx, fCDDy; [all …]
|
D | SkMath.cpp | 135 SkFixed SkFixedMul_portable(SkFixed a, SkFixed b) { in SkFixedMul_portable() 143 return static_cast<SkFixed>((SkLONGLONG)a * b >> 16); in SkFixedMul_portable() 200 int SkFixedMulCommon(SkFixed a, int b, int bias) { in SkFixedMulCommon() 217 SkFixed SkFixedFastInvert(SkFixed x) { in SkFixedFastInvert() 233 SkFixed orig = a; in SkFixedFastInvert() 291 SkFixed result = 0; in SkDivBits() 330 SkFixed SkFixedMod(SkFixed numer, SkFixed denom) { in SkFixedMod() 342 SkFixed div = SkFixedDiv(numer, denom); in SkFixedMod() 397 SkFixed SkFixedMean(SkFixed a, SkFixed b) { in SkFixedMean() 447 static SkFixed interp_table(const uint16_t table[], int index, int partial255) { in interp_table() [all …]
|
D | SkBitmapProcState_matrix.h | 29 SkFixed fx; in SCALE_NOFILTER_NAME() 46 const SkFixed dx = s.fInvSx; in SCALE_NOFILTER_NAME() 98 SkFixed fx = SkScalarToFixed(srcPt.fX); in AFFINE_NOFILTER_NAME() 99 SkFixed fy = SkScalarToFixed(srcPt.fY); in AFFINE_NOFILTER_NAME() 100 SkFixed dx = s.fInvSx; in AFFINE_NOFILTER_NAME() 101 SkFixed dy = s.fInvKy; in AFFINE_NOFILTER_NAME() 125 const SkFixed* SK_RESTRICT srcXY = iter.getXY(); in PERSP_NOFILTER_NAME() 136 static inline uint32_t PACK_FILTER_Y_NAME(SkFixed f, unsigned max, in PACK_FILTER_Y_NAME() 137 SkFixed one PREAMBLE_PARAM_Y) { in PACK_FILTER_Y_NAME() 143 static inline uint32_t PACK_FILTER_X_NAME(SkFixed f, unsigned max, in PACK_FILTER_X_NAME() [all …]
|
D | SkBitmapSamplerTemplate.h | 31 virtual SkPMColor sample(SkFixed x, SkFixed y) const in BITMAP_CLASSNAME_PREFIX() 47 virtual SkPMColor sample(SkFixed x, SkFixed y) const in BITMAP_CLASSNAME_PREFIX() 62 virtual SkPMColor sample(SkFixed x, SkFixed y) const in BITMAP_CLASSNAME_PREFIX() 77 virtual SkPMColor sample(SkFixed x, SkFixed y) const in BITMAP_CLASSNAME_PREFIX() 92 virtual SkPMColor sample(SkFixed x, SkFixed y) const in BITMAP_CLASSNAME_PREFIX() 107 virtual SkPMColor sample(SkFixed x, SkFixed y) const in BITMAP_CLASSNAME_PREFIX()
|
D | SkPoint.cpp | 108 static SkFixed fixlen(SkFixed x, SkFixed y) { in fixlen() 182 bool SkPoint::setLength(SkFixed ox, SkFixed oy, SkFixed length) { in setLength() 250 bool SkPoint::setLength(SkFixed ox, SkFixed oy, SkFixed length) { in setLength() 262 SkFixed x = SkAbs32(ox); in setLength() 263 SkFixed y = SkAbs32(oy); in setLength() 273 SkFixed dx = x; in setLength() 274 SkFixed dy = y; in setLength() 297 SkFixed len = fixlen(x, y); in setLength() 311 SkFixed xx = (int)floorf(fx * 65536 + 0.5f); in setLength() 312 SkFixed yy = (int)floorf(fy * 65536 + 0.5f); in setLength()
|
D | SkBitmapProcState_matrixProcs.cpp | 5 void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count); 6 void decal_filter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count); 53 static inline U16CPU fixed_clamp(SkFixed x) in fixed_clamp() 72 static inline U16CPU fixed_repeat(SkFixed x) in fixed_repeat() 77 static inline U16CPU fixed_mirror(SkFixed x) in fixed_mirror() 79 SkFixed s = x << 15 >> 31; in fixed_mirror() 131 void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count) in decal_nofilter_scale() 150 void decal_filter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count) in decal_filter_scale()
|
D | ARGB32_Clamp_Bilinear_BitmapShader.h | 12 SkPMColor sample_bilerp(SkFixed fx, SkFixed fy, unsigned srcMaxX, unsigned srcMaxY, 14 SkPMColor sample_bilerp(SkFixed fx, SkFixed fy, unsigned srcMaxX, unsigned srcMaxY, in sample_bilerp() 40 static inline SkPMColor sample_bilerpx(SkFixed fx, unsigned srcMaxX, const SkPMColor* srcPixels, in sample_bilerpx() 82 const SkFixed* srcXY = iter.getXY(); in shadeSpan() 85 SkFixed fx = *srcXY++ - SK_FixedHalf; in shadeSpan() 86 SkFixed fy = *srcXY++ - SK_FixedHalf; in shadeSpan() 95 const SkFixed* srcXY = iter.getXY(); in shadeSpan() 98 SkFixed fx = *srcXY++ - SK_FixedHalf; in shadeSpan() 99 SkFixed fy = *srcXY++ - SK_FixedHalf; in shadeSpan() 108 SkFixed fx, fy, dx, dy; in shadeSpan()
|
D | SkEdge.cpp | 75 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine() 92 int SkEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1) in updateLine() 115 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in updateLine() 235 SkFixed A = SkFDot6ToFixed(x0 - x1 - x1 + x2); in setQuadratic() 236 SkFixed B = SkFDot6ToFixed(x1 - x0 + x1 - x0); in setQuadratic() 259 SkFixed oldx = fQx; in updateQuadratic() 260 SkFixed oldy = fQy; in updateQuadratic() 261 SkFixed dx = fQDx; in updateQuadratic() 262 SkFixed dy = fQDy; in updateQuadratic() 263 SkFixed newx, newy; in updateQuadratic() [all …]
|
D | SkBitmapProcState.h | 42 typedef U16CPU (*FixedTileProc)(SkFixed); // returns 0..0xFFFF 51 SkFixed fFilterOneX; 52 SkFixed fFilterOneY; 62 SkFixed fInvSx, fInvSy; // chooseProcs 63 SkFixed fInvKy; // chooseProcs
|
D | SkFilterProc.h | 29 SkFixed x, SkFixed y) in SkGetBilinearFilterProc() 108 inline SkFilterPtrProc SkGetBilinearFilterPtrProc(const SkFilterPtrProc* table, SkFixed x, SkFixed … in SkGetBilinearFilterPtrProc() 122 …ne const SkFilterPtrProc* SkGetBilinearFilterPtrProcYTable(const SkFilterPtrProc* table, SkFixed y) in SkGetBilinearFilterPtrProcYTable() 133 inline SkFilterPtrProc SkGetBilinearFilterPtrXProc(const SkFilterPtrProc* table, SkFixed x) in SkGetBilinearFilterPtrXProc()
|
D | SkBitmapSampler.h | 39 virtual SkPMColor sample(SkFixed x, SkFixed y) const = 0; 60 static inline int fixed_clamp(SkFixed x) in fixed_clamp() 81 static inline int fixed_repeat(SkFixed x) in fixed_repeat() 86 static inline int fixed_mirror(SkFixed x) in fixed_mirror() 88 SkFixed s = x << 15 >> 31; in fixed_mirror()
|
D | SkScan_Antihair.cpp | 46 SkFixed n = i * 257; in build_gamma_table() 84 static SkFixed hline(int x, int stopx, SkFixed fy, SkFixed /*slope*/, SkBlitter* blitter, int mod64) in hline() argument 108 static SkFixed horish(int x, int stopx, SkFixed fy, SkFixed dy, SkBlitter* blitter, int mod64) in horish() 149 static SkFixed vline(int y, int stopy, SkFixed fx, SkFixed /*slope*/, SkBlitter* blitter, int mod64) in vline() argument 167 static SkFixed vertish(int y, int stopy, SkFixed fx, SkFixed dx, SkBlitter* blitter, int mod64) in vertish() 198 typedef SkFixed (*LineProc)(int istart, int istop, SkFixed fstart, SkFixed slope, SkBlitter*, int); 200 static inline SkFixed fastfixdiv(SkFDot6 a, SkFDot6 b) in fastfixdiv() 230 SkFixed fstart, slope; in do_anti_hairline() 472 static inline FDot8 SkFixedToFDot8(SkFixed x) { in SkFixedToFDot8()
|
D | SkBitmapSampler.cpp | 58 virtual SkPMColor sample(SkFixed x, SkFixed y) const { return 0; } in sample() 92 virtual SkPMColor sample(SkFixed x, SkFixed y) const in sample() 140 virtual SkPMColor sample(SkFixed x, SkFixed y) const in sample() 194 virtual SkPMColor sample(SkFixed x, SkFixed y) const in sample() 254 virtual SkPMColor sample(SkFixed x, SkFixed y) const in sample() 308 virtual SkPMColor sample(SkFixed x, SkFixed y) const in sample()
|
D | SkMatrix.cpp | 218 static inline SkFixed roundidiv(SkFixed numer, int denom) { in roundidiv() 224 SkFixed answer = (numer + (denom >> 1)) / denom; in roundidiv() 478 static inline bool fixmuladdmul(SkFixed a, SkFixed b, SkFixed c, SkFixed d, in fixmuladdmul() 479 SkFixed* result) { in fixmuladdmul() 491 static inline bool fixmuladdmulshiftmul(SkFixed a, SkFixed b, SkFixed c, in fixmuladdmulshiftmul() 492 SkFixed d, int shift, SkFixed scale, SkFixed* result) { in fixmuladdmulshiftmul() 519 static inline SkFixed fracmuladdmul(SkFixed a, SkFract b, SkFixed c, in fracmuladdmul() 528 static inline bool rowcol3(const SkFixed row[], const SkFixed col[], in rowcol3() 529 SkFixed* result) { in rowcol3() 547 static inline int negifaddoverflows(SkFixed& result, SkFixed a, SkFixed b) { in negifaddoverflows() [all …]
|
D | SkBitmapShader16BilerpTemplate.h | 52 const SkFixed* srcXY = iter.getXY(); in shadeSpan() 55 SkFixed fx = *srcXY++ - SK_FixedHalf; in shadeSpan() 56 SkFixed fy = *srcXY++ - SK_FixedHalf; in shadeSpan() 87 SkFixed fx, fy, dx, dy; in shadeSpan() 161 const SkFixed* srcXY = iter.getXY(); in shadeSpan16() 164 SkFixed fx = *srcXY++ - SK_FixedHalf; in shadeSpan16() 165 SkFixed fy = *srcXY++ - SK_FixedHalf; in shadeSpan16() 195 SkFixed fx, fy, dx, dy; in shadeSpan16()
|
D | SkScan_Hairline.cpp | 23 static void horiline(int x, int stopx, SkFixed fy, SkFixed dy, SkBlitter* blitter) in horiline() 33 static void vertline(int y, int stopy, SkFixed fx, SkFixed dx, SkBlitter* blitter) in vertline() 97 SkFixed slope = SkFixedDiv(dy, dx); in HairLine() 98 SkFixed startY = SkFDot6ToFixed(y0) + (slope * ((32 - x0) & 63) >> 6); in HairLine() 114 SkFixed slope = SkFixedDiv(dx, dy); in HairLine() 115 SkFixed startX = SkFDot6ToFixed(x0) + (slope * ((32 - y0) & 63) >> 6); in HairLine()
|
/external/skia/src/effects/ |
D | SkGradientShader.cpp | 37 typedef SkFixed (*TileProc)(SkFixed); 39 static SkFixed clamp_tileproc(SkFixed x) in clamp_tileproc() 44 static SkFixed repeat_tileproc(SkFixed x) in repeat_tileproc() 49 static inline SkFixed mirror_tileproc(SkFixed x) in mirror_tileproc() 123 SkFixed fPos; // 0...1 212 SkFixed prev = 0; in Gradient_Shader() 216 SkFixed curr; in Gradient_Shader() 239 SkFixed dp = SK_Fixed1 / (colorCount - 1); in Gradient_Shader() 240 SkFixed p = dp; in Gradient_Shader() 241 SkFixed scale = (colorCount - 1) << 8; // (1 << 24) / dp in Gradient_Shader() [all …]
|
D | SkEmbossMask.cpp | 101 SkFixed lx = SkScalarToFixed(light.fDirection[0]); in Emboss() 102 SkFixed ly = SkScalarToFixed(light.fDirection[1]); in Emboss() 103 SkFixed lz = SkScalarToFixed(light.fDirection[2]); in Emboss() 104 SkFixed lz_dot_nz = lz * kDelta; in Emboss() 128 SkFixed numer = lx * nx + ly * ny + lz_dot_nz; in Emboss() 136 SkFixed dot = numer / denom; in Emboss() 143 …SkFixed dot = (unsigned)(numer >> 4) * gInvSqrtTable[(SkAbs32(nx) >> 1 << 7) | (SkAbs32(ny) >> 1)]… in Emboss()
|
/external/skia/src/gl/ |
D | SkGL.h | 39 typedef SkFixed SkGLScalar; 73 typedef SkFixed SkGLTextScalar; 107 void setX(SkFixed x, SkFixed y) { in setX() 122 void setXRectFan(SkFixed l, SkFixed t, SkFixed r, SkFixed b) { in setXRectFan()
|
/external/skia/src/utils/ |
D | SkUnitMappers.cpp | 21 SkFixed x = input * fSegments >> 16; in mapUnit16() 60 SkFixed rads = (unsigned)(input * (SK_FixedPI >> 2)) >> 15; in mapUnit16() 61 SkFixed x = SkFixedCos(rads); in mapUnit16()
|