HomeSort by relevance Sort by last modified time
    Searched refs:SkFixed (Results 1 - 25 of 82) sorted by null

1 2 3 4

  /external/chromium_org/third_party/skia/experimental/Intersection/
SkAntiEdge.h 10 #include "SkFixed.h"
21 SkFixed fFirstX; // starting X
22 SkFixed fFirstY; // starting Y
23 SkFixed fLastX; // ending X
24 SkFixed fLastY; // ending Y
25 SkFixed fX0; // computed edge current value (may be off end)
26 SkFixed fY0;
27 SkFixed fX; // edge current value (always on edge)
28 SkFixed fY;
29 SkFixed fDX; // change in X per unit step in
    [all...]
SkAntiEdge.cpp 10 /** Returns the signed fraction of a SkFixed
12 static inline SkFixed SkFixedFraction(SkFixed x)
14 SkFixed mask = x >> 31 << 16;
18 void SkAntiEdge::pointOnLine(SkFixed x, SkFixed y) {
31 void SkAntiEdge::pointInLine(SkFixed x, SkFixed y) {
59 SkFixed dx = fLastX - fFirstX;
61 SkFixed dy = fLastY - fFirstY
    [all...]
  /external/chromium_org/third_party/skia/src/effects/gradients/
SkClampRange.h 13 #include "SkFixed.h"
27 SkFixed fFx1; // initial fx value for the fCount1 range.
31 void init(SkFixed fx, SkFixed dx, int count, int v0, int v1);
34 void initFor1(SkFixed fx);
SkLinearGradient.cpp 124 typedef void (*LinearShadeProc)(TileProc proc, SkFixed dx, SkFixed fx,
131 void shadeSpan_linear_vertical_lerp(TileProc proc, SkFixed dx, SkFixed fx,
154 void shadeSpan_linear_clamp(TileProc proc, SkFixed dx, SkFixed fx,
191 void shadeSpan_linear_mirror(TileProc proc, SkFixed dx, SkFixed fx,
204 void shadeSpan_linear_repeat(TileProc proc, SkFixed dx, SkFixed fx
    [all...]
SkGradientShaderPriv.h 43 static inline SkFixed clamp_tileproc(SkFixed x) {
49 static inline SkFixed repeat_tileproc(SkFixed x) {
61 static inline SkFixed mirror_tileproc(SkFixed x) {
72 typedef SkFixed (*TileProc)(SkFixed);
233 SkFixed fPos; // 0...1
  /external/chromium_org/third_party/skia/src/core/
SkPerspIter.h 29 const SkFixed* getXY() const { return fStorage; }
42 SkFixed fStorage[kCount * 2];
43 SkFixed fX, fY;
SkBitmapProcState_utils.h 17 * just SkFixed, so we will abort the decal_ call if dx is very small, since
18 * the decal_ function just operates on SkFixed. If that were changed, we could
24 SkFixed dx = SkFractionalIntToFixed(frDx);
35 SkFixed fx = SkFractionalIntToFixed(frX);
SkEdge.h 30 SkFixed fX;
31 SkFixed fDX;
43 inline int updateLine(SkFixed ax, SkFixed ay, SkFixed bx, SkFixed by);
68 SkFixed fQx, fQy;
69 SkFixed fQDx, fQDy;
70 SkFixed fQDDx, fQDDy;
71 SkFixed fQLastX, fQLastY
    [all...]
SkFilterProc.h 14 #include "SkFixed.h"
22 SkFixed x, SkFixed y)
101 inline SkFilterPtrProc SkGetBilinearFilterPtrProc(const SkFilterPtrProc* table, SkFixed x, SkFixed y)
115 inline const SkFilterPtrProc* SkGetBilinearFilterPtrProcYTable(const SkFilterPtrProc* table, SkFixed y)
126 inline SkFilterPtrProc SkGetBilinearFilterPtrXProc(const SkFilterPtrProc* table, SkFixed x)
SkAutoKern.h 19 * the adjust() method returns a SkFixed corresponding
27 SkFixed adjust(const SkGlyph& glyph)
44 SkFixed adjust = SkAutoKern_AdjustF(fPrevRsbDelta, glyph.fLsbDelta);
SkBitmapProcState_matrix.h 36 static inline uint32_t PACK_FILTER_Y_NAME(SkFixed f, unsigned max,
37 SkFixed one PREAMBLE_PARAM_Y) {
43 static inline uint32_t PACK_FILTER_X_NAME(SkFixed f, unsigned max,
44 SkFixed one PREAMBLE_PARAM_X) {
59 const SkFixed one = s.fFilterOneX;
67 const SkFixed fy = SkScalarToFixed(pt.fY) - (s.fFilterOneY >> 1);
83 SkFixed fixedFx = SkFractionalIntToFixed(fx);
103 SkFixed oneX = s.fFilterOneX;
104 SkFixed oneY = s.fFilterOneY;
105 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1)
    [all...]
SkGlyph.h 12 #include "SkFixed.h"
26 SkFixed fAdvanceX, fAdvanceY;
85 SkFixed getSubXFixed() const {
89 SkFixed getSubYFixed() const {
123 static unsigned FixedToSub(SkFixed n) {
127 static SkFixed SubToFixed(unsigned sub) {
136 static uint32_t MakeID(unsigned code, SkFixed x, SkFixed y) {
SkMath.cpp 46 SkFixed SkFixedMul_portable(SkFixed a, SkFixed b) {
48 return static_cast<SkFixed>((int64_t)a * b >> 16);
99 SkFixed result = 0;
201 static SkFixed interp_table(const uint16_t table[], int index, int partial255) {
205 SkFixed lower = table[index];
206 SkFixed upper = (index == kTableSize - 1) ? SK_Fixed1 : table[index + 1];
217 SkFixed SkFixedSinCos(SkFixed radians, SkFixed* cosValuePtr)
    [all...]
SkEdge.cpp 26 static inline SkFixed SkFDot6ToFixedDiv2(SkFDot6 value) {
73 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0);
91 int SkEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1)
114 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0);
253 SkFixed A = SkFDot6ToFixedDiv2(x0 - x1 - x1 + x2); // 1/2 the real value
254 SkFixed B = SkFDot6ToFixed(x1 - x0); // 1/2 the real value
277 SkFixed oldx = fQx
    [all...]
SkBitmapProcState_shaderproc.h 28 const SkFixed oneX = s.fFilterOneX;
29 const SkFixed dx = s.fInvSx;
30 SkFixed fx;
39 SkFixed fy = SkScalarToFixed(pt.fY) - (s.fFilterOneY >> 1);
SkDrawProcs.h 27 SkFixed fHalfSampleX;
29 SkFixed fHalfSampleY;
38 typedef void (*Proc)(const SkDraw1Glyph&, SkFixed x, SkFixed y, const SkGlyph&);
98 // @param point interpreted as SkFixed [x, y].
SkTextToPathIter.h 39 SkFixed fPrevAdvance;
  /external/chromium_org/third_party/skia/include/core/
SkFixed.h 13 /** \file SkFixed.h
20 typedef int32_t SkFixed;
33 #define SkFloatToFixed(x) ((SkFixed)((x) * SK_Fixed1))
36 static inline SkFixed SkFloatToFixed(float x) {
38 return (SkFixed)n;
43 static inline SkFixed SkFloatToFixed_Check(float x) {
45 SkFixed n32 = (SkFixed)n64;
54 #define SkDoubleToFixed(x) ((SkFixed)((x) * SK_Fixed1))
56 /** Converts an integer to a SkFixed, asserting that the result does not overflo
    [all...]
  /external/chromium_org/third_party/skia/tests/
ClampRangeTest.cpp 35 const SkFixed fx, SkFixed dx, int count) {
58 static void test_range(SkFixed fx, SkFixed dx, int count) {
89 SkFixed fx = rand.nextS() >> 1;
90 SkFixed sx = rand.nextS() >> 1;
92 SkFixed dx = (sx - fx) / count;
100 SkFixed fx = rand.nextS();
101 SkFixed dx = rand.nextS();
  /external/chromium_org/third_party/skia/include/gpu/
GrGlyph.h 54 static inline unsigned ExtractSubPixelBitsFromFixed(SkFixed pos) {
59 static inline PackedID Pack(uint16_t glyphID, SkFixed x, SkFixed y) {
65 static inline SkFixed UnpackFixedX(PackedID packed) {
69 static inline SkFixed UnpackFixedY(PackedID packed) {
  /external/chromium_org/third_party/skia/bench/
InterpBench.cpp 55 SkFixed curr = SkFloatToFixed(fx);
56 SkFixed step = SkFloatToFixed(dx);
76 SkFixed tmp;
78 tmp = (SkFixed)(curr >> 16);
82 tmp = (SkFixed)(curr >> 16);
86 tmp = (SkFixed)(curr >> 16);
90 tmp = (SkFixed)(curr >> 16);
107 SkFixed tmp;
109 tmp = (SkFixed) (curr >> 32); dst[i + 0] = TILE(tmp, count); curr += step;
110 tmp = (SkFixed) (curr >> 32); dst[i + 1] = TILE(tmp, count); curr += step
    [all...]
  /external/chromium_org/third_party/skia/src/gpu/
GrBitmapTextContext.h 37 void drawPackedGlyph(GrGlyph::PackedID, SkFixed left, SkFixed top, GrFontScaler*);
GrBitmapTextContext.cpp 227 SkFixed fxMask = ~0;
228 SkFixed fyMask = ~0;
229 SkFixed halfSampleX, halfSampleY;
244 SkFixed fx = SkScalarToFixed(x) + halfSampleX;
245 SkFixed fy = SkScalarToFixed(y) + halfSampleY;
299 SkFixed halfSampleX = 0, halfSampleY = 0;
305 SkFixed fxMask = ~0;
306 SkFixed fyMask = ~0;
323 SkFixed fx = SkScalarToFixed(tmsLoc.fX) + halfSampleX;
324 SkFixed fy = SkScalarToFixed(tmsLoc.fY) + halfSampleY
    [all...]
  /external/chromium_org/third_party/skia/src/effects/
SkEmbossMask.cpp 88 SkFixed lx = SkScalarToFixed(light.fDirection[0]);
89 SkFixed ly = SkScalarToFixed(light.fDirection[1]);
90 SkFixed lz = SkScalarToFixed(light.fDirection[2]);
91 SkFixed lz_dot_nz = lz * kDelta;
112 SkFixed numer = lx * nx + ly * ny + lz_dot_nz;
119 SkFixed dot = numer / denom;
125 // SkFixed dot = SkFixedMul(numer, gTable[]) >> 8
126 SkFixed dot = (unsigned)(numer >> 4) * gInvSqrtTable[(SkAbs32(nx) >> 1 << 7) | (SkAbs32(ny) >> 1)] >> 20;
  /external/chromium_org/third_party/skia/src/opts/
SkBitmapProcState_matrixProcs_neon.cpp 18 static void decal_nofilter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
19 static void decal_filter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
150 void decal_nofilter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count) {
152 // SkFixed is 16.16 fixed point
153 SkFixed dx8 = dx * 8;
185 void decal_filter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count)
    [all...]

Completed in 591 milliseconds

1 2 3 4