Home
last modified time | relevance | path

Searched refs:fx (Results 1 – 25 of 29) sorted by relevance

12

/external/skia/src/core/
DSkBitmapProcState_matrixProcs.cpp5 void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
6 void decal_filter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
26 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) argument
28 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) argument
34 #define TILEX_PROCF(fx, max) (((fx) & 0xFFFF) * ((max) + 1) >> 16) argument
36 #define TILEX_LOW_BITS(fx, max) ((((fx) & 0xFFFF) * ((max) + 1) >> 12) & 0xF) argument
47 #define TILEX_PROCF(fx, max) (tileProcX(fx) * ((max) + 1) >> 16) argument
49 #define TILEX_LOW_BITS(fx, max) ((tileProcX(fx) * ((max) + 1) >> 12) & 0xF) argument
131 void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count) in decal_nofilter_scale() argument
137 *dst++ = pack_two_shorts(fx >> 16, (fx + dx) >> 16); in decal_nofilter_scale()
[all …]
DSkBitmapProcState_matrix.h29 SkFixed fx; in SCALE_NOFILTER_NAME() local
34 fx = SkScalarToFixed(pt.fY); in SCALE_NOFILTER_NAME()
36 *xy++ = TILEY_PROCF(fx, maxY); in SCALE_NOFILTER_NAME()
37 fx = SkScalarToFixed(pt.fX); in SCALE_NOFILTER_NAME()
50 if ((unsigned)(fx >> 16) <= maxX && in SCALE_NOFILTER_NAME()
51 (unsigned)((fx + dx * (count - 1)) >> 16) <= maxX) { in SCALE_NOFILTER_NAME()
52 decal_nofilter_scale(xy, fx, dx, count); in SCALE_NOFILTER_NAME()
59 a = TILEX_PROCF(fx, maxX); fx += dx; in SCALE_NOFILTER_NAME()
60 b = TILEX_PROCF(fx, maxX); fx += dx; in SCALE_NOFILTER_NAME()
66 a = TILEX_PROCF(fx, maxX); fx += dx; in SCALE_NOFILTER_NAME()
[all …]
DARGB32_Clamp_Bilinear_BitmapShader.h12 SkPMColor sample_bilerp(SkFixed fx, SkFixed fy, unsigned srcMaxX, unsigned srcMaxY,
14 SkPMColor sample_bilerp(SkFixed fx, SkFixed fy, unsigned srcMaxX, unsigned srcMaxY, in sample_bilerp() argument
17 int ix = fx >> 16; in sample_bilerp()
36 SkFilterPtrProc proc = SkGetBilinearFilterPtrProc(proc_table, fx, fy); in sample_bilerp()
40 static inline SkPMColor sample_bilerpx(SkFixed fx, unsigned srcMaxX, const SkPMColor* srcPixels, in sample_bilerpx() argument
43 int ix = fx >> 16; in sample_bilerpx()
54 SkFilterPtrProc proc = SkGetBilinearFilterPtrXProc(proc_table, fx); in sample_bilerpx()
85 SkFixed fx = *srcXY++ - SK_FixedHalf; in shadeSpan() local
87 *dstC++ = sample_bilerp(fx, fy, srcMaxX, srcMaxY, srcPixels, srcRB, proc_table); in shadeSpan()
98 SkFixed fx = *srcXY++ - SK_FixedHalf; in shadeSpan() local
[all …]
DSkBitmapShaderTemplate.h76 SkFixed fx, fy, dx, dy; in shadeSpan() local
99 fx = *srcXY++; in shadeSpan()
101 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); in shadeSpan()
110 fx = *srcXY++; in shadeSpan()
112 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); in shadeSpan()
128 fx = SkScalarToFixed(srcPt.fX); in shadeSpan()
142 fx >>= level; in shadeSpan()
157 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); in shadeSpan()
158 fx += dx; in shadeSpan()
164 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); in shadeSpan()
[all …]
DSkBitmapShader16BilerpTemplate.h55 SkFixed fx = *srcXY++ - SK_FixedHalf; in shadeSpan() local
57 int ix = fx >> 16; in shadeSpan()
75 SkFilterProc proc = SkGetBilinearFilterProc(proc_table, fx, fy); in shadeSpan()
87 SkFixed fx, fy, dx, dy; in shadeSpan() local
95 fx = SkScalarToFixed(srcPt.fX) - SK_FixedHalf; in shadeSpan()
108 int ix = fx >> 16; in shadeSpan()
126 SkFilterProc proc = SkGetBilinearFilterProc(proc_table, fx, fy); in shadeSpan()
133 fx += dx; in shadeSpan()
164 SkFixed fx = *srcXY++ - SK_FixedHalf; in shadeSpan16() local
166 int ix = fx >> 16; in shadeSpan16()
[all …]
DSkPoint.cpp109 float fx = (float)x; in fixlen() local
112 return (int)floorf(sqrtf(fx*fx + fy*fy) + 0.5f); in fixlen()
306 float fx = SkAbs32(ox)/65536.0f; in setLength() local
308 float mag = sqrtf(fx*fx + fy*fy); in setLength()
309 fx /= mag; in setLength()
311 SkFixed xx = (int)floorf(fx * 65536 + 0.5f); in setLength()
DSkScan_Antihair.cpp149 static SkFixed vline(int y, int stopy, SkFixed fx, SkFixed /*slope*/, SkBlitter* blitter, int mod64) in vline() argument
152 fx += SK_Fixed1/2; in vline()
154 int x = fx >> 16; in vline()
155 int a = (uint8_t)(fx >> 8); in vline()
164 return fx - SK_Fixed1/2; in vline()
167 static SkFixed vertish(int y, int stopy, SkFixed fx, SkFixed dx, SkBlitter* blitter, int mod64) in vertish() argument
179 fx += SK_Fixed1/2; in vertish()
181 int x = fx >> 16; in vertish()
182 uint8_t a = (uint8_t)(fx >> 8); in vertish()
192 fx += dx; in vertish()
[all …]
DSkDraw.cpp1438 SkFixed fx = SkScalarToFixed(x); in drawText() local
1447 fx = (fx + 0x8000) & ~0xFFFF; in drawText()
1451 fx += SK_Fixed1/2; in drawText()
1460 const SkGlyph& glyph = glyphCacheProc(cache, &text, fx, fy); in drawText()
1462 fx += autokern.adjust(glyph); in drawText()
1465 proc(d1g, glyph, SkFixedFloor(fx), SkFixedFloor(fy)); in drawText()
1467 fx += glyph.fAdvanceX; in drawText()
1611 SkFixed fx = SkScalarToFixed(tms.fLoc.fX); in drawPosText() local
1617 fx = (fx + 0x8000) & ~0xFFFF; in drawPosText()
1620 const SkGlyph& glyph = glyphCacheProc(cache, &text, fx, fy); in drawPosText()
[all …]
DSkBitmapShader.cpp177 SkFixed fx = SkScalarToFixed(srcPt.fX);
191 fx >>= level;
201 dstC[i] = sampler->sample(fx, fy);
202 fx += dx;
210 uint32_t c = sampler->sample(fx, fy);
212 fx += dx;
DSkScan_Hairline.cpp33 static void vertline(int y, int stopy, SkFixed fx, SkFixed dx, SkBlitter* blitter) in vertline() argument
38 blitter->blitH(fx >> 16, y, 1); in vertline()
39 fx += dx; in vertline()
/external/skia/src/effects/
DSkGradientShader.cpp611 static inline bool no_need_for_clamp(int fx, int dx, int count) in no_need_for_clamp() argument
614 return (unsigned)((fx | (fx + (count - 1) * dx)) >> 8) <= 0xFF; in no_need_for_clamp()
629 SkFixed dx, fx = SkScalarToFixed(srcPt.fX); in shadeSpan() local
645 unsigned fi = proc(fx); in shadeSpan()
652 if (no_need_for_clamp(fx, dx, count)) in shadeSpan()
657 fi = fx >> 8; SkASSERT(fi <= 0xFF); fx += dx; *dstC++ = cache[fi]; in shadeSpan()
658 fi = fx >> 8; SkASSERT(fi <= 0xFF); fx += dx; *dstC++ = cache[fi]; in shadeSpan()
659 fi = fx >> 8; SkASSERT(fi <= 0xFF); fx += dx; *dstC++ = cache[fi]; in shadeSpan()
660 fi = fx >> 8; SkASSERT(fi <= 0xFF); fx += dx; *dstC++ = cache[fi]; in shadeSpan()
666 fi = fx >> 8; in shadeSpan()
[all …]
/external/webkit/WebCore/svg/
DSVGRadialGradientElement.cpp94 double adjustedFocusX = attributes.fx(); in buildGradient()
97 double fdx = attributes.fx() - attributes.cx(); in buildGradient()
104 double angle = atan2(attributes.fy() * 100.0, attributes.fx() * 100.0); in buildGradient()
109 FloatPoint focalPoint = FloatPoint::narrowPrecision(attributes.fx(), attributes.fy()); in buildGradient()
177 attributes.setFx(radial->fx().valueAsPercentage()); in collectGradientProperties()
DRadialGradientAttributes.h49 double fx() const { return m_fx; } in fx() function
DSVGRadialGradientElement.h52 …adialGradientElement, SVGNames::radialGradientTagString, SVGNames::fxAttrString, SVGLength, Fx, fx)
DSVGRadialGradientElement.idl32 readonly attribute SVGAnimatedLength fx;
Dsvgattrs.in80 fx
/external/freetype/src/autofit/
Dafhints.c180 point->fx, in af_glyph_hints_dump_points()
413 in_x = end->fx - start->fx; in af_glyph_hints_compute_inflections()
429 out_x = start->fx - before->fx; in af_glyph_hints_compute_inflections()
457 out_x = after->fx - end->fx; in af_glyph_hints_compute_inflections()
650 point->fx = (FT_Short)vec->x; in af_glyph_hints_reload()
716 in_x = first->fx - prev->fx; in af_glyph_hints_reload()
725 out_x = next->fx - point->fx; in af_glyph_hints_reload()
918 u = point->fx; in af_glyph_hints_align_strong_points()
1253 point->x = FT_MulFix( point->fx, scale ) + delta; in af_glyph_hints_scale_dim()
Dafwarp.c184 X1 = X2 = points[0].fx; in af_warper_compute()
187 FT_Int X = points[nn].fx; in af_warper_compute()
Dafhints.h112 FT_Short fx, fy; /* original, unscaled position (font units) */ member
Daflatin.c638 point->u = point->fx; in af_latin_hints_compute_segments()
651 point->v = point->fx; in af_latin_hints_compute_segments()
/external/opencore/tools_v2/build/make/
Dsdkinfo_nr.mk104 …parent_basis_stream := $(shell $(ACCUREV) show -fx -s $(basis_stream) streams | $(GREP) "basis=" |…
109 …transaction_id := $(shell $(ACCUREV) show -fx -s $(basis_stream) streams | $(GREP) "name=" | $(CUT…
/external/skia/src/svg/
DSkSVGRadialGradient.cpp24 SVG_ATTRIBUTE(fx),
/external/webkit/JavaScriptCore/runtime/
DNumberPrototype.cpp328 double fx = floor(x * tenToTheF) / tenToTheF; in numberProtoFuncToExponential() local
331 if (fabs(fx - x) < fabs(cx - x)) in numberProtoFuncToExponential()
332 x = fx; in numberProtoFuncToExponential()
/external/webkit/WebCore/rendering/
DRenderBlock.cpp2363 int fx = leftRelOffset(y,lo, false, &heightRemainingLeft); in positionNewFloats() local
2364 while (rightRelOffset(y,ro, false, &heightRemainingRight)-fx < fwidth) { in positionNewFloats()
2366 fx = leftRelOffset(y,lo, false, &heightRemainingLeft); in positionNewFloats()
2368 fx = max(0, fx); in positionNewFloats()
2369 f->m_left = fx; in positionNewFloats()
2370 o->setLocation(fx + o->marginLeft(), y + o->marginTop()); in positionNewFloats()
2374 int fx = rightRelOffset(y,ro, false, &heightRemainingRight); in positionNewFloats() local
2375 while (fx - leftRelOffset(y,lo, false, &heightRemainingLeft) < fwidth) { in positionNewFloats()
2377 fx = rightRelOffset(y, ro, false, &heightRemainingRight); in positionNewFloats()
2379 f->m_left = fx - f->m_width; in positionNewFloats()
[all …]
/external/opencore/fileformats/mp3/parser/src/
Dmp3parser.cpp1853 OsclFloat fa, fb, fx; in SeekPointFromTimestamp() local
1877 fx = fa + (fb - fa) * ((100.00f * fpc) - (OsclFloat)pc); in SeekPointFromTimestamp()
1878 percent = fx; in SeekPointFromTimestamp()
1881 seekPoint = (int32)((fx / 256.00f) * (OsclFloat)iXingHeader.bytes); in SeekPointFromTimestamp()

12