/external/skia/src/core/ |
SkCordic.h | 22 #include "SkFixed.h" 24 SkFixed SkCordicACos(SkFixed a); 25 SkFixed SkCordicASin(SkFixed a); 26 SkFixed SkCordicATan2(SkFixed y, SkFixed x); 27 SkFixed SkCordicExp(SkFixed a) [all...] |
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 [all...] |
SkBitmapSamplerTemplate.h | 31 virtual SkPMColor sample(SkFixed x, SkFixed y) const 47 virtual SkPMColor sample(SkFixed x, SkFixed y) const 62 virtual SkPMColor sample(SkFixed x, SkFixed y) const 77 virtual SkPMColor sample(SkFixed x, SkFixed y) const 92 virtual SkPMColor sample(SkFixed x, SkFixed y) cons [all...] |
SkCordic.cpp | 57 SkFixed SkCordicSinCos(SkFixed radians, SkFixed* cosp) 65 SkFixed sin = 0; 66 SkFixed cos = kFixedInvGain1; 78 SkFixed SkCordicTan(SkFixed a) 111 SkFixed SkCordicASin(SkFixed a) { 124 SkFixed SkCordicACos(SkFixed a) [all...] |
SkMath.cpp | 135 SkFixed SkFixedMul_portable(SkFixed a, SkFixed b) { 143 return static_cast<SkFixed>((SkLONGLONG)a * b >> 16); 200 int SkFixedMulCommon(SkFixed a, int b, int bias) { 217 SkFixed SkFixedFastInvert(SkFixed x) { 233 SkFixed orig = a; 291 SkFixed result = 0; 330 SkFixed SkFixedMod(SkFixed numer, SkFixed denom) [all...] |
SkBitmapProcState_matrix.h | 29 SkFixed fx; 46 const SkFixed dx = s.fInvSx; 98 SkFixed fx = SkScalarToFixed(srcPt.fX); 99 SkFixed fy = SkScalarToFixed(srcPt.fY); 100 SkFixed dx = s.fInvSx; 101 SkFixed dy = s.fInvKy; 125 const SkFixed* SK_RESTRICT srcXY = iter.getXY(); 136 static inline uint32_t PACK_FILTER_Y_NAME(SkFixed f, unsigned max, 137 SkFixed one PREAMBLE_PARAM_Y) { 143 static inline uint32_t PACK_FILTER_X_NAME(SkFixed f, unsigned max [all...] |
SkFilterProc.h | 21 #include "SkFixed.h" 29 SkFixed x, SkFixed y) 108 inline SkFilterPtrProc SkGetBilinearFilterPtrProc(const SkFilterPtrProc* table, SkFixed x, SkFixed y) 122 inline const SkFilterPtrProc* SkGetBilinearFilterPtrProcYTable(const SkFilterPtrProc* table, SkFixed y) 133 inline SkFilterPtrProc SkGetBilinearFilterPtrXProc(const SkFilterPtrProc* table, SkFixed x)
|
SkBitmapSampler.h | 39 virtual SkPMColor sample(SkFixed x, SkFixed y) const = 0; 60 static inline int fixed_clamp(SkFixed x) 81 static inline int fixed_repeat(SkFixed x) 86 static inline int fixed_mirror(SkFixed x) 88 SkFixed s = x << 15 >> 31;
|
SkBitmapProcState_matrix_repeat.h | 64 SkFixed fx; 81 const SkFixed dx = s.fInvSx; 99 /* SkFixed is 16.16 fixed point */ 100 SkFixed dx2 = dx+dx; 101 SkFixed dx4 = dx2+dx2; 102 SkFixed dx8 = dx4+dx4; 105 SkFixed fx1, fx2, fx3; 199 SkFixed fx = SkScalarToFixed(srcPt.fX); 200 SkFixed fy = SkScalarToFixed(srcPt.fY); 201 SkFixed dx = s.fInvSx [all...] |
SkPoint.cpp | 119 static SkFixed fixlen(SkFixed x, SkFixed y) { 193 bool SkPoint::setLength(SkFixed ox, SkFixed oy, SkFixed length) { 261 bool SkPoint::setLength(SkFixed ox, SkFixed oy, SkFixed length) { 273 SkFixed x = SkAbs32(ox) [all...] |
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, 40 static inline SkPMColor sample_bilerpx(SkFixed fx, unsigned srcMaxX, const SkPMColor* srcPixels, 82 const SkFixed* srcXY = iter.getXY(); 85 SkFixed fx = *srcXY++ - SK_FixedHalf; 86 SkFixed fy = *srcXY++ - SK_FixedHalf; 95 const SkFixed* srcXY = iter.getXY(); 98 SkFixed fx = *srcXY++ - SK_FixedHalf [all...] |
SkBitmapProcState.h | 48 typedef U16CPU (*FixedTileProc)(SkFixed); // returns 0..0xFFFF 67 SkFixed fFilterOneX; 68 SkFixed fFilterOneY; 71 SkFixed fInvSx; // chooseProcs 72 SkFixed fInvKy; // chooseProcs
|
SkEdge.cpp | 75 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); 92 int SkEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1) 115 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); 235 SkFixed A = SkFDot6ToFixed(x0 - x1 - x1 + x2); 236 SkFixed B = SkFDot6ToFixed(x1 - x0 + x1 - x0); 259 SkFixed oldx = fQx; 260 SkFixed oldy = fQy [all...] |
SkBitmapProcState_matrix_clamp.h | 66 SkFixed fx; 83 const SkFixed dx = s.fInvSx; 101 /* SkFixed is 16.16 fixed point */ 102 SkFixed dx2 = dx+dx; 103 SkFixed dx4 = dx2+dx2; 104 SkFixed dx8 = dx4+dx4; 107 SkFixed fx1, fx2, fx3; 176 SkFixed fx = SkScalarToFixed(srcPt.fX); 177 SkFixed fy = SkScalarToFixed(srcPt.fY); 178 SkFixed dx = s.fInvSx [all...] |
SkBitmapProcState_shaderproc.h | 13 const SkFixed oneX = s.fFilterOneX; 14 const SkFixed dx = s.fInvSx; 15 SkFixed fx; 24 SkFixed fy = SkScalarToFixed(pt.fY) - (s.fFilterOneY >> 1);
|
/external/skia/include/core/ |
SkFixed.h | 22 /** \file SkFixed.h 29 typedef int32_t SkFixed; 42 #define SkFloatToFixed(x) ((SkFixed)((x) * SK_Fixed1)) 45 #define SkDoubleToFixed(x) ((SkFixed)((x) * SK_Fixed1)) 60 /** Converts an integer to a SkFixed, asserting that the result does not overflow 64 inline SkFixed SkIntToFixed(int n) 70 // force the cast to SkFixed to ensure that the answer is signed (like the debug version) 71 #define SkIntToFixed(n) (SkFixed)((n) << 16) 74 /** Converts a SkFixed to a SkFract, asserting that the result does not overflow 78 inline SkFract SkFixedToFract(SkFixed x [all...] |
SkPerspIter.h | 36 const SkFixed* getXY() const { return fStorage; } 49 SkFixed fStorage[kCount * 2]; 50 SkFixed fX, fY;
|
SkAutoKern.h | 27 * the adjust() method returns a SkFixed corresponding 35 SkFixed adjust(const SkGlyph& glyph) 52 SkFixed adjust = SkAutoKern_AdjustF(fPrevRsbDelta, glyph.fLsbDelta);
|
SkFDot6.h | 43 inline SkFixed SkFDot6ToFixed(SkFDot6 x) 56 inline SkFixed SkFDot6Div(SkFDot6 a, SkFDot6 b)
|
SkScalerContext.h | 37 SkFixed fAdvanceX, fAdvanceY; 78 SkFixed getSubXFixed() const { 82 SkFixed getSubYFixed() const { 116 static unsigned FixedToSub(SkFixed n) { 120 static SkFixed SubToFixed(unsigned sub) { 129 static uint32_t MakeID(unsigned code, SkFixed x, SkFixed y) {
|
/external/skia/include/utils/ |
SkSfntUtils.h | 8 SkFixed fVersion; 9 SkFixed fRevision; 28 SkFixed fVersion;
|
/external/skia/src/effects/ |
SkGradientShader.cpp | 25 typedef SkFixed (*TileProc)(SkFixed); 27 static SkFixed clamp_tileproc(SkFixed x) { 31 static SkFixed repeat_tileproc(SkFixed x) { 35 static inline SkFixed mirror_tileproc(SkFixed x) { 104 SkFixed fPos; // 0...1 230 SkFixed prev = 0 [all...] |
SkEmbossMask.cpp | 101 SkFixed lx = SkScalarToFixed(light.fDirection[0]); 102 SkFixed ly = SkScalarToFixed(light.fDirection[1]); 103 SkFixed lz = SkScalarToFixed(light.fDirection[2]); 104 SkFixed lz_dot_nz = lz * kDelta; 128 SkFixed numer = lx * nx + ly * ny + lz_dot_nz; 136 SkFixed dot = numer / denom; 142 // SkFixed dot = SkFixedMul(numer, gTable[]) >> 8 143 SkFixed dot = (unsigned)(numer >> 4) * gInvSqrtTable[(SkAbs32(nx) >> 1 << 7) | (SkAbs32(ny) >> 1)] >> 20;
|
/external/skia/src/utils/ |
SkUnitMappers.cpp | 21 SkFixed x = input * fSegments >> 16; 60 SkFixed rads = (unsigned)(input * (SK_FixedPI >> 2)) >> 15; 61 SkFixed x = SkFixedCos(rads);
|
/external/skia/tests/ |
MathTest.cpp | 289 SkFixed result = SkFixedDiv(100, 100); 301 SkFixed numer = rand.nextS(); 302 SkFixed denom = rand.nextS(); 303 SkFixed result = SkFixedDiv(numer, denom); 309 REPORTER_ASSERT(reporter, result != (SkFixed)SK_NaN32); 320 REPORTER_ASSERT(reporter, result != (SkFixed)SK_NaN32); 333 SkFixed r2 = symmetric_fixmul(numer, denom); 342 SkFixed mean = SkFixedMean(numer, denom); 345 SkFixed mean2 = SkFloatToFixed(fm); 351 SkFixed mod = SkFixedMod(numer, denom) [all...] |