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

1 2 3 4

  /external/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;
42 inline int updateLine(SkFixed ax, SkFixed ay, SkFixed bx, SkFixed by);
67 SkFixed fQx, fQy;
68 SkFixed fQDx, fQDy;
69 SkFixed fQDDx, fQDDy;
70 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;
65 const SkFixed fy = mapper.fixedY();
81 SkFixed fixedFx = SkFractionalIntToFixed(fx);
98 SkFixed oneX = s.fFilterOneX;
99 SkFixed oneY = s.fFilterOneY;
100 SkFixed fx = mapper.fixedX()
    [all...]
SkGlyph.h 13 #include "SkFixed.h"
54 static const SkFixed kSubpixelRound = SK_FixedHalf >> SkGlyph::kSubBits;
59 SkFixed fAdvanceX, fAdvanceY;
117 SkFixed getSubXFixed() const {
121 SkFixed getSubYFixed() const {
169 static unsigned FixedToSub(SkFixed n) {
173 static SkFixed SubToFixed(unsigned sub) {
184 static uint32_t MakeID(unsigned code, SkFixed x, SkFixed y) {
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...]
SkFontDescriptor.h 18 SkFontData(SkStreamAsset* stream, int index, const SkFixed axis[], int axisCount)
41 const SkFixed* getAxis() const { return fAxis.get(); }
47 SkAutoSTMalloc<4, SkFixed> fAxis;
SkBitmapProcState.h 49 typedef U16CPU (*FixedTileProc)(SkFixed); // returns 0..0xFFFF
50 typedef U16CPU (*FixedTileLowBitsProc)(SkFixed, int); // returns 0..0xF
66 SkFixed fFilterOneX;
67 SkFixed fFilterOneY;
70 SkFixed fInvSx; // chooseProcs
71 SkFixed fInvKy; // chooseProcs
201 SkFixed biasX, biasY;
203 // SkFixed epsilon bias to ensure inverse-mapped bitmap coordinates are rounded
206 // We scale it to persist SkFractionalInt -> SkFixed conversions.
226 SkFixed fixedX() const { return SkFractionalIntToFixed(fX);
    [all...]
SkBitmapProcState_shaderproc.h 26 const SkFixed oneX = s.fFilterOneX;
27 const SkFixed dx = s.fInvSx;
28 SkFixed fx;
35 SkFixed fy = mapper.fixedY();
SkScan_Antihair.cpp 51 SkFixed n = i * 257;
100 virtual SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) = 0;
101 virtual SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) = 0;
109 SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) override
    [all...]
SkFDot6.h 58 inline SkFixed SkFDot6ToFixed(SkFDot6 x) {
67 inline SkFixed SkFDot6Div(SkFDot6 a, SkFDot6 b) {
SkBitmapProcState_matrixProcs.cpp 42 void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
43 void decal_filter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
69 static unsigned X(const SkBitmapProcState&, SkFixed fx, int max) {
72 static unsigned Y(const SkBitmapProcState&, SkFixed fy, int max) {
105 static unsigned X(const SkBitmapProcState&, SkFixed fx, int max) {
109 static unsigned Y(const SkBitmapProcState&, SkFixed fy, int max) {
141 static unsigned X(const SkBitmapProcState& s, SkFixed fx, int max) {
144 static unsigned Y(const SkBitmapProcState& s, SkFixed fy, int max)
    [all...]
  /frameworks/base/libs/hwui/font/
CachedGlyphInfo.h 20 #include <SkFixed.h>
50 SkFixed mLsbDelta;
51 SkFixed mRsbDelta;
  /external/skia/include/core/
SkFixed.h 13 /** \file SkFixed.h
20 typedef int32_t SkFixed;
32 #define SkFloatToFixed(x) ((SkFixed)((x) * SK_Fixed1))
35 static inline SkFixed SkFloatToFixed(float x) {
37 return (SkFixed)n;
42 static inline SkFixed SkFloatToFixed_Check(float x) {
44 SkFixed n32 = (SkFixed)n64;
53 #define SkDoubleToFixed(x) ((SkFixed)((x) * SK_Fixed1))
55 /** Converts an integer to a SkFixed, asserting that the result does not overflo
    [all...]
  /external/skia/src/gpu/
GrGlyph.h 66 static inline unsigned ExtractSubPixelBitsFromFixed(SkFixed pos) {
71 static inline PackedID Pack(uint16_t glyphID, SkFixed x, SkFixed y, MaskStyle ms) {
78 static inline SkFixed UnpackFixedX(PackedID packed) {
82 static inline SkFixed UnpackFixedY(PackedID packed) {
  /external/skia/bench/
InterpBench.cpp 62 SkFixed curr = SkFloatToFixed(fx);
63 SkFixed step = SkFloatToFixed(dx);
83 SkFixed tmp;
85 tmp = (SkFixed)(curr >> 16);
89 tmp = (SkFixed)(curr >> 16);
93 tmp = (SkFixed)(curr >> 16);
97 tmp = (SkFixed)(curr >> 16);
114 SkFixed tmp;
116 tmp = (SkFixed) (curr >> 32); dst[i + 0] = TILE(tmp, count); curr += step;
117 tmp = (SkFixed) (curr >> 32); dst[i + 1] = TILE(tmp, count); curr += step
    [all...]
  /external/skia/src/ports/
SkFontHost_FreeType_common.h 51 SkFixed fMinimum;
52 SkFixed fDefault;
53 SkFixed fMaximum;
63 SkFixed* axisValues,
  /external/skia/tests/
ClampRangeTest.cpp 58 static void test_range(SkFixed fx, SkFixed dx, int count) {
91 SkFixed fx = rand.nextS() >> 1;
92 SkFixed sx = rand.nextS() >> 1;
94 SkFixed dx = (sx - fx) / count;
102 SkFixed fx = rand.nextS();
103 SkFixed dx = rand.nextS();
  /external/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/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...]
SkBitmapProcState_opts_SSE2.cpp 236 static inline uint32_t ClampX_ClampY_pack_filter(SkFixed f, unsigned max,
237 SkFixed one) {
253 const SkFixed one = s.fFilterOneX;
254 const SkFixed dx = s.fInvSx;
257 const SkFixed fy = mapper.fixedY();
262 SkFixed fx = mapper.fixedX();
377 SkFixed fx = mapper.fixedX();
385 const SkFixed dx = s.fInvSx;
487 SkFixed oneX = s.fFilterOneX;
488 SkFixed oneY = s.fFilterOneY
    [all...]
  /external/skia/src/effects/gradients/
SkClampRange.h 11 #include "SkFixed.h"
17 #define SkGradFixedToFixed(x) (SkFixed)((x) >> 16)
SkGradientShaderPriv.h 42 static inline SkFixed clamp_tileproc(SkFixed x) {
48 static inline SkFixed repeat_tileproc(SkFixed x) {
60 static inline SkFixed mirror_tileproc(SkFixed x) {
71 typedef SkFixed (*TileProc)(SkFixed);
237 SkFixed fPos; // 0...1

Completed in 1934 milliseconds

1 2 3 4