/external/skia/include/private/ |
SkFixed.h | 16 /** \file SkFixed.h 23 typedef int32_t SkFixed; 34 #define SkFloatToFixed(x) ((SkFixed)((x) * SK_Fixed1)) 37 static inline SkFixed SkFloatToFixed_Check(float x) { 39 SkFixed n32 = (SkFixed)n64; 48 #define SkDoubleToFixed(x) ((SkFixed)((x) * SK_Fixed1)) 50 /** Converts an integer to a SkFixed, asserting that the result does not overflow 54 inline SkFixed SkIntToFixed(int n) 63 // shifting. Then we force the cast to SkFixed to ensure that the answer is signed (like th [all...] |
/external/skia/src/core/ |
SkAnalyticEdge.h | 28 SkFixed fX; 29 SkFixed fDX; 30 SkFixed fUpperX; // The x value when y = fUpperY 31 SkFixed fY; // The current y 32 SkFixed fUpperY; // The upper bound of y (our edge is from y = fUpperY to y = fLowerY) 33 SkFixed fLowerY; // The lower bound of y (our edge is from y = fUpperY to y = fLowerY) 34 SkFixed fDY; // abs(1/fDX); may be SK_MaxS32 when fDX is close to 0. 37 SkFixed fSavedX; // For deferred blitting 38 SkFixed fSavedY; // For deferred blitting 39 SkFixed fSavedDY; // For deferred blittin [all...] |
SkBitmapProcState_utils.h | 24 * just SkFixed, so we will abort the decal_ call if dx is very small, since 25 * the decal_ function just operates on SkFixed. If that were changed, we could 28 static inline bool can_truncate_to_fixed_for_decal(SkFixed fx, 29 SkFixed dx,
|
SkEdge.h | 29 SkFixed fX; 30 SkFixed fDX; 41 inline int updateLine(SkFixed ax, SkFixed ay, SkFixed bx, SkFixed by); 66 SkFixed fQx, fQy; 67 SkFixed fQDx, fQDy; 68 SkFixed fQDDx, fQDDy; 69 SkFixed fQLastX, fQLastY [all...] |
SkBitmapProcState_matrix.h | 31 static inline uint32_t PACK_FILTER_Y_NAME(SkFixed f, unsigned max, 32 SkFixed one PREAMBLE_PARAM_Y) { 38 static inline uint32_t PACK_FILTER_X_NAME(SkFixed f, unsigned max, 39 SkFixed one PREAMBLE_PARAM_X) { 54 const SkFixed one = s.fFilterOneX; 60 const SkFixed fy = mapper.fixedY(); 69 const SkFixed fixedFx = SkFractionalIntToFixed(fx); 70 const SkFixed fixedDx = SkFractionalIntToFixed(dx); 77 SkFixed fixedFx = SkFractionalIntToFixed(fx); 94 SkFixed oneX = s.fFilterOneX [all...] |
SkAnalyticEdge.cpp | 16 bool SkAnalyticEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1, SkFixed slope) { 81 SkFixed oldx = fQEdge.fQx; 82 SkFixed oldy = fQEdge.fQy; 83 SkFixed dx = fQEdge.fQDx; 84 SkFixed dy = fQEdge.fQDy; 85 SkFixed newx, newy, newSnappedX, newSnappedY [all...] |
SkFDot6.h | 12 #include "SkFixed.h" 58 inline SkFixed SkFDot6ToFixed(SkFDot6 x) { 68 inline SkFixed SkFDot6Div(SkFDot6 a, SkFDot6 b) { 82 inline static SkFixed Lookup(SkFDot6 x) { 88 static inline SkFixed QuickSkFDot6Div(SkFDot6 a, SkFDot6 b) { 92 // SkFixed format. Hence abs(a) should be less than kMaxAbsA 99 SkFixed ourAnswer = (a * QuickFDot6Inverse::Lookup(b)) >> 6; 101 SkFixed directAnswer = SkFDot6Div(a, b);
|
SkGlyph.h | 13 #include "SkFixed.h" 46 SkPackedID(uint32_t code, SkFixed x, SkFixed y) { 70 SkFixed getSubXFixed() const { 74 SkFixed getSubYFixed() const { 97 static unsigned FixedToSub(SkFixed n) { 101 static SkFixed SubToFixed(unsigned sub) { 111 SkPackedGlyphID(SkGlyphID code, SkFixed x, SkFixed y) : SkPackedID(code, x, y) { } 120 SkPackedUnicharID(SkUnichar code, SkFixed x, SkFixed y) : SkPackedID(code, x, y) { [all...] |
SkEdge.cpp | 25 static inline SkFixed SkFDot6ToFixedDiv2(SkFDot6 value) { 72 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); 90 int SkEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1) 113 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); 260 SkFixed A = SkFDot6ToFixedDiv2(x0 - x1 - x1 + x2); // 1/2 the real value 261 SkFixed B = SkFDot6ToFixed(x1 - x0); // 1/2 the real value 291 SkFixed oldx = fQx [all...] |
SkScan_AAAPath.cpp | 131 virtual void flush_if_y_changed(SkFixed y, SkFixed nextY) = 0; 163 void flush_if_y_changed(SkFixed y, SkFixed nextY) override {} 291 void flush_if_y_changed(SkFixed y, SkFixed nextY) override { 546 static inline SkAlpha trapezoidToAlpha(SkFixed l1, SkFixed l2) { 552 static inline SkFixed partialTriangleToAlpha16(SkFixed a, SkFixed b) [all...] |
SkBitmapProcState_matrixProcs.cpp | 41 void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count); 42 void decal_filter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count); 67 static unsigned X(const SkBitmapProcState&, SkFixed fx, int max) { 70 static unsigned Y(const SkBitmapProcState&, SkFixed fy, int max) { 100 static unsigned X(const SkBitmapProcState&, SkFixed fx, int max) { 104 static unsigned Y(const SkBitmapProcState&, SkFixed fy, int max) { 131 static unsigned X(const SkBitmapProcState& s, SkFixed fx, int max) { 134 static unsigned Y(const SkBitmapProcState& s, SkFixed fy, int max) [all...] |
SkFontDescriptor.h | 11 #include "SkFixed.h" 19 SkFontData(std::unique_ptr<SkStreamAsset> stream, int index, const SkFixed axis[],int axisCount) 42 const SkFixed* getAxis() const { return fAxis.get(); } 48 SkAutoSTMalloc<4, SkFixed> fAxis;
|
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 | 50 SkFixed n = i * 257; 99 virtual SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) = 0; 100 virtual SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) = 0; 108 SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) override [all...] |
SkBitmapProcState.h | 78 typedef U16CPU (*FixedTileProc)(SkFixed); // returns 0..0xFFFF 88 SkFixed fFilterOneX; 89 SkFixed fFilterOneY; 91 SkFixed fInvSx; // chooseProcs 92 SkFixed fInvKy; // chooseProcs 223 SkFixed biasX, biasY; 225 // SkFixed epsilon bias to ensure inverse-mapped bitmap coordinates are rounded 228 // We scale it to persist SkFractionalInt -> SkFixed conversions. 251 SkFixed fixedX() const { return SkFractionalIntToFixed(fX); } 252 SkFixed fixedY() const { return SkFractionalIntToFixed(fY); [all...] |
/external/skia/src/gpu/ |
GrGlyph.h | 16 #include "SkFixed.h" 67 static inline unsigned ExtractSubPixelBitsFromFixed(SkFixed pos) { 72 static inline PackedID Pack(uint16_t glyphID, SkFixed x, SkFixed y, MaskStyle ms) { 79 static inline SkFixed UnpackFixedX(PackedID packed) { 83 static inline SkFixed UnpackFixedY(PackedID packed) {
|
/external/skia/bench/ |
InterpBench.cpp | 10 #include "SkFixed.h" 63 SkFixed curr = SkFloatToFixed(fx); 64 SkFixed step = SkFloatToFixed(dx); 84 SkFixed tmp; 86 tmp = (SkFixed)(curr >> 16); 90 tmp = (SkFixed)(curr >> 16); 94 tmp = (SkFixed)(curr >> 16); 98 tmp = (SkFixed)(curr >> 16); 115 SkFixed tmp; 117 tmp = (SkFixed) (curr >> 32); dst[i + 0] = TILE(tmp, count); curr += step [all...] |
/external/skia/src/effects/ |
SkEmbossMask.cpp | 10 #include "SkFixed.h" 51 SkFixed lx = SkScalarToFixed(light.fDirection[0]); 52 SkFixed ly = SkScalarToFixed(light.fDirection[1]); 53 SkFixed lz = SkScalarToFixed(light.fDirection[2]); 54 SkFixed lz_dot_nz = lz * kDelta; 75 SkFixed numer = lx * nx + ly * ny + lz_dot_nz; 81 SkFixed dot = numer / denom;
|
/external/skia/src/ports/ |
SkFontHost_FreeType_common.h | 54 SkFixed fMinimum; 55 SkFixed fDefault; 56 SkFixed fMaximum; 66 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/opts/ |
SkBitmapProcState_matrix_neon.h | 55 const SkFixed fixedFx = SkFractionalIntToFixed(fx); 56 const SkFixed fixedDx = SkFractionalIntToFixed(dx); 181 static inline uint32_t PACK_FILTER_Y_NAME(SkFixed f, unsigned max, 182 SkFixed one PREAMBLE_PARAM_Y) { 188 static inline uint32_t PACK_FILTER_X_NAME(SkFixed f, unsigned max, 189 SkFixed one PREAMBLE_PARAM_X) { 196 SkFixed one PREAMBLE_PARAM_X) { 217 SkFixed one PREAMBLE_PARAM_X) { 246 const SkFixed one = s.fFilterOneX; 252 const SkFixed fy = mapper.fixedY() [all...] |
SkBitmapProcState_matrixProcs_neon.cpp | 17 static void decal_nofilter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count); 18 static void decal_filter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count); 145 void decal_nofilter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count) { 147 // SkFixed is 16.16 fixed point 148 SkFixed dx8 = dx * 8; 180 void decal_filter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count) [all...] |
SkBitmapProcState_opts_SSE2.cpp | 237 static inline uint32_t ClampX_ClampY_pack_filter(SkFixed f, unsigned max, 238 SkFixed one) { 254 const SkFixed one = s.fFilterOneX; 255 const SkFixed dx = s.fInvSx; 258 const SkFixed fy = mapper.fixedY(); 263 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/shaders/gradients/ |
SkGradientShaderPriv.h | 51 static inline SkFixed clamp_tileproc(SkFixed x) { 57 static inline SkFixed repeat_tileproc(SkFixed x) { 63 static inline SkFixed mirror_tileproc(SkFixed x) { 70 typedef SkFixed (*TileProc)(SkFixed); 209 SkFixed fPos; // 0...1
|
SkClampRange.h | 11 #include "SkFixed.h" 28 #define SkGradFixedToFixed(x) (SkFixed)((x) >> 16)
|