/external/skia/include/core/ |
D | SkFixed.h | 20 typedef int32_t SkFixed; typedef 32 #define SkFloatToFixed(x) ((SkFixed)((x) * SK_Fixed1)) 35 static inline SkFixed SkFloatToFixed(float x) { in SkFloatToFixed() 37 return (SkFixed)n; in SkFloatToFixed() 42 static inline SkFixed SkFloatToFixed_Check(float x) { in SkFloatToFixed_Check() 44 SkFixed n32 = (SkFixed)n64; in SkFloatToFixed_Check() 53 #define SkDoubleToFixed(x) ((SkFixed)((x) * SK_Fixed1)) 59 inline SkFixed SkIntToFixed(int n) in SkIntToFixed() 70 #define SkIntToFixed(n) (SkFixed)((unsigned)(n) << 16) 96 inline SkFixed SkFixedMul_longlong(SkFixed a, SkFixed b) { in SkFixedMul_longlong() [all …]
|
/external/skia/src/core/ |
D | 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; 77 SkFixed fCx, fCy; 78 SkFixed fCDx, fCDy; 79 SkFixed fCDDx, fCDDy; [all …]
|
D | SkBitmapProcState_matrix.h | 36 static inline uint32_t PACK_FILTER_Y_NAME(SkFixed f, unsigned max, in PACK_FILTER_Y_NAME() 37 SkFixed one PREAMBLE_PARAM_Y) { in PACK_FILTER_Y_NAME() 43 static inline uint32_t PACK_FILTER_X_NAME(SkFixed f, unsigned max, in PACK_FILTER_X_NAME() 44 SkFixed one PREAMBLE_PARAM_X) { in PACK_FILTER_X_NAME() 59 const SkFixed one = s.fFilterOneX; in SCALE_FILTER_NAME() 65 const SkFixed fy = mapper.fixedY(); in SCALE_FILTER_NAME() 81 SkFixed fixedFx = SkFractionalIntToFixed(fx); in SCALE_FILTER_NAME() 98 SkFixed oneX = s.fFilterOneX; in AFFINE_FILTER_NAME() 99 SkFixed oneY = s.fFilterOneY; in AFFINE_FILTER_NAME() 100 SkFixed fx = mapper.fixedX(); in AFFINE_FILTER_NAME() [all …]
|
D | SkEdge.cpp | 26 static inline SkFixed SkFDot6ToFixedDiv2(SkFDot6 value) { in SkFDot6ToFixedDiv2() 73 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine() 91 int SkEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1) in updateLine() 114 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in updateLine() 253 SkFixed A = SkFDot6ToFixedDiv2(x0 - x1 - x1 + x2); // 1/2 the real value in setQuadratic() 254 SkFixed B = SkFDot6ToFixed(x1 - x0); // 1/2 the real value in setQuadratic() 277 SkFixed oldx = fQx; in updateQuadratic() 278 SkFixed oldy = fQy; in updateQuadratic() 279 SkFixed dx = fQDx; in updateQuadratic() 280 SkFixed dy = fQDy; in updateQuadratic() [all …]
|
D | 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) { in X() 72 static unsigned Y(const SkBitmapProcState&, SkFixed fy, int max) { in Y() 105 static unsigned X(const SkBitmapProcState&, SkFixed fx, int max) { in X() 109 static unsigned Y(const SkBitmapProcState&, SkFixed fy, int max) { in Y() 141 static unsigned X(const SkBitmapProcState& s, SkFixed fx, int max) { in X() 144 static unsigned Y(const SkBitmapProcState& s, SkFixed fy, int max) { in Y() 160 static inline U16CPU fixed_clamp(SkFixed x) { in fixed_clamp() 170 static inline U16CPU fixed_repeat(SkFixed x) { in fixed_repeat() [all …]
|
D | SkScan_Antihair.cpp | 51 SkFixed n = i * 257; in build_gamma_table() 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 { in drawCap() 130 virtual SkFixed drawLine(int x, int stopx, SkFixed fy, in drawLine() 131 SkFixed slope) override { in drawLine() 156 SkFixed drawCap(int x, SkFixed fy, SkFixed dy, int mod64) override { in drawCap() 168 SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed dy) override { in drawLine() 186 SkFixed drawCap(int y, SkFixed fx, SkFixed dx, int mod64) override { in drawCap() 205 SkFixed drawLine(int y, int stopy, SkFixed fx, SkFixed dx) override { in drawLine() [all …]
|
D | SkGlyph.h | 54 static const SkFixed kSubpixelRound = SK_FixedHalf >> SkGlyph::kSubBits; 59 SkFixed fAdvanceX, fAdvanceY; 117 SkFixed getSubXFixed() const { in getSubXFixed() 121 SkFixed getSubYFixed() const { in getSubYFixed() 169 static unsigned FixedToSub(SkFixed n) { in FixedToSub() 173 static SkFixed SubToFixed(unsigned sub) { in SubToFixed() 184 static uint32_t MakeID(unsigned code, SkFixed x, SkFixed y) { in MakeID()
|
D | SkFilterProc.h | 22 SkFixed x, SkFixed y) in SkGetBilinearFilterProc() 101 inline SkFilterPtrProc SkGetBilinearFilterPtrProc(const SkFilterPtrProc* table, SkFixed x, SkFixed … in SkGetBilinearFilterPtrProc() 115 …ne const SkFilterPtrProc* SkGetBilinearFilterPtrProcYTable(const SkFilterPtrProc* table, SkFixed y) in SkGetBilinearFilterPtrProcYTable() 126 inline SkFilterPtrProc SkGetBilinearFilterPtrXProc(const SkFilterPtrProc* table, SkFixed x) in SkGetBilinearFilterPtrXProc()
|
D | 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; 226 SkFixed fixedX() const { return SkFractionalIntToFixed(fX); } in fixedX() 227 SkFixed fixedY() const { return SkFractionalIntToFixed(fY); } in fixedY()
|
D | SkPerspIter.h | 29 const SkFixed* getXY() const { return fStorage; } in getXY() 42 SkFixed fStorage[kCount * 2]; 43 SkFixed fX, fY;
|
D | SkGlyphCache.h | 56 const SkGlyph& getUnicharMetrics(SkUnichar, SkFixed x, SkFixed y); 57 const SkGlyph& getGlyphIDMetrics(uint16_t, SkFixed x, SkFixed y); 226 SkGlyph* lookupByChar(SkUnichar id, MetricsType type, SkFixed x = 0, SkFixed y = 0);
|
D | SkBitmapProcState_shaderproc.h | 26 const SkFixed oneX = s.fFilterOneX; in SCALE_FILTER_NAME() 27 const SkFixed dx = s.fInvSx; in SCALE_FILTER_NAME() 28 SkFixed fx; in SCALE_FILTER_NAME() 35 SkFixed fy = mapper.fixedY(); in SCALE_FILTER_NAME()
|
/external/skia/bench/ |
D | InterpBench.cpp | 62 SkFixed curr = SkFloatToFixed(fx); in performTest() 63 SkFixed step = SkFloatToFixed(dx); in performTest() 83 SkFixed tmp; in performTest() 85 tmp = (SkFixed)(curr >> 16); in performTest() 89 tmp = (SkFixed)(curr >> 16); in performTest() 93 tmp = (SkFixed)(curr >> 16); in performTest() 97 tmp = (SkFixed)(curr >> 16); in performTest() 114 SkFixed tmp; in performTest() 116 tmp = (SkFixed) (curr >> 32); dst[i + 0] = TILE(tmp, count); curr += step; in performTest() 117 tmp = (SkFixed) (curr >> 32); dst[i + 1] = TILE(tmp, count); curr += step; in performTest() [all …]
|
/external/skia/tools/ |
D | test_font_data.cpp | 471 const SkFixed CourierNewkNormalWidths[] = { 804 const SkFixed CourierNewkBoldWidths[] = { 1156 const SkFixed CourierNewkItalicWidths[] = { 1486 const SkFixed CourierNewkBoldItalicWidths[] = { 2415 const SkFixed LiberationSanskNormalWidths[] = { 3362 const SkFixed LiberationSanskBoldWidths[] = { 3720 const SkFixed LiberationSanskItalicWidths[] = { 4645 const SkFixed LiberationSanskBoldItalicWidths[] = { 4802 const SkFixed HiraginoMaruGothicProkNormalWidths[] = { 5502 const SkFixed PapyruskNormalWidths[] = { [all …]
|
D | test_font_serif.cpp | 1247 const SkFixed LiberationSerifNormalWidths[] = { 2497 const SkFixed LiberationSerifBoldWidths[] = { 3815 const SkFixed LiberationSerifItalicWidths[] = { 5127 const SkFixed LiberationSerifBoldItalicWidths[] = {
|
D | test_font_sans_serif.cpp | 1170 const SkFixed LiberationSansNormalWidths[] = { 2334 const SkFixed LiberationSansBoldWidths[] = { 3575 const SkFixed LiberationSansItalicWidths[] = { 4835 const SkFixed LiberationSansBoldItalicWidths[] = {
|
D | test_font_monospace.cpp | 1176 const SkFixed LiberationMonoNormalWidths[] = { 2326 const SkFixed LiberationMonoBoldWidths[] = { 3592 const SkFixed LiberationMonoItalicWidths[] = { 4825 const SkFixed LiberationMonoBoldItalicWidths[] = {
|
/external/skia/src/opts/ |
D | SkBitmapProcState_opts_SSE2.cpp | 236 static inline uint32_t ClampX_ClampY_pack_filter(SkFixed f, unsigned max, in ClampX_ClampY_pack_filter() 237 SkFixed one) { in ClampX_ClampY_pack_filter() 253 const SkFixed one = s.fFilterOneX; in ClampX_ClampY_filter_scale_SSE2() 254 const SkFixed dx = s.fInvSx; in ClampX_ClampY_filter_scale_SSE2() 257 const SkFixed fy = mapper.fixedY(); in ClampX_ClampY_filter_scale_SSE2() 262 SkFixed fx = mapper.fixedX(); in ClampX_ClampY_filter_scale_SSE2() 377 SkFixed fx = mapper.fixedX(); in ClampX_ClampY_nofilter_scale_SSE2() 385 const SkFixed dx = s.fInvSx; in ClampX_ClampY_nofilter_scale_SSE2() 487 SkFixed oneX = s.fFilterOneX; in ClampX_ClampY_filter_affine_SSE2() 488 SkFixed oneY = s.fFilterOneY; in ClampX_ClampY_filter_affine_SSE2() [all …]
|
D | SkBitmapProcState_matrix_neon.h | 197 const SkFixed* SK_RESTRICT srcXY = iter.getXY(); in PERSP_NOFILTER_NAME() 219 srcXY = (const SkFixed *) mysrc; in PERSP_NOFILTER_NAME() 231 static inline uint32_t PACK_FILTER_Y_NAME(SkFixed f, unsigned max, in PACK_FILTER_Y_NAME() 232 SkFixed one PREAMBLE_PARAM_Y) { in PACK_FILTER_Y_NAME() 238 static inline uint32_t PACK_FILTER_X_NAME(SkFixed f, unsigned max, in PACK_FILTER_X_NAME() 239 SkFixed one PREAMBLE_PARAM_X) { in PACK_FILTER_X_NAME() 246 SkFixed one PREAMBLE_PARAM_X) { in PACK_FILTER_X4_NAME() 267 SkFixed one PREAMBLE_PARAM_X) { in PACK_FILTER_Y4_NAME() 296 const SkFixed one = s.fFilterOneX; in SCALE_FILTER_NAME() 302 const SkFixed fy = mapper.fixedY(); in SCALE_FILTER_NAME() [all …]
|
D | 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) { in decal_nofilter_scale_neon() 153 SkFixed dx8 = dx * 8; in decal_nofilter_scale_neon() 185 void decal_filter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count) { in decal_filter_scale_neon() 187 SkFixed dx8 = dx * 8; in decal_filter_scale_neon()
|
/external/skia/src/effects/ |
D | SkEmbossMask.cpp | 88 SkFixed lx = SkScalarToFixed(light.fDirection[0]); in Emboss() 89 SkFixed ly = SkScalarToFixed(light.fDirection[1]); in Emboss() 90 SkFixed lz = SkScalarToFixed(light.fDirection[2]); in Emboss() 91 SkFixed lz_dot_nz = lz * kDelta; in Emboss() 112 SkFixed numer = lx * nx + ly * ny + lz_dot_nz; in Emboss() 119 SkFixed dot = numer / denom; in Emboss() 126 …SkFixed dot = (unsigned)(numer >> 4) * gInvSqrtTable[(SkAbs32(nx) >> 1 << 7) | (SkAbs32(ny) >> 1)]… in Emboss()
|
/external/skia/src/gpu/ |
D | GrGlyph.h | 66 static inline unsigned ExtractSubPixelBitsFromFixed(SkFixed pos) { in ExtractSubPixelBitsFromFixed() 71 static inline PackedID Pack(uint16_t glyphID, SkFixed x, SkFixed y, MaskStyle ms) { in Pack() 78 static inline SkFixed UnpackFixedX(PackedID packed) { in UnpackFixedX() 82 static inline SkFixed UnpackFixedY(PackedID packed) { in UnpackFixedY()
|
/external/skia/src/effects/gradients/ |
D | SkGradientShaderPriv.h | 42 static inline SkFixed clamp_tileproc(SkFixed x) { in clamp_tileproc() 48 static inline SkFixed repeat_tileproc(SkFixed x) { in repeat_tileproc() 60 static inline SkFixed mirror_tileproc(SkFixed x) { in mirror_tileproc() 71 typedef SkFixed (*TileProc)(SkFixed); 237 SkFixed fPos; // 0...1
|
/external/skia/tests/ |
D | ClampRangeTest.cpp | 58 static void test_range(SkFixed fx, SkFixed dx, int count) { in test_range() 91 SkFixed fx = rand.nextS() >> 1; in DEF_TEST() 92 SkFixed sx = rand.nextS() >> 1; in DEF_TEST() 94 SkFixed dx = (sx - fx) / count; in DEF_TEST()
|
/external/skia/src/ports/ |
D | SkFontHost_FreeType_common.h | 51 SkFixed fMinimum; 52 SkFixed fDefault; 53 SkFixed fMaximum; 63 SkFixed* axisValues,
|