Home
last modified time | relevance | path

Searched refs:rad (Results 1 – 25 of 232) sorted by relevance

12345678910

/third_party/skia/bench/
DBlurRectBench.cpp29 BlurRectBench(SkScalar rad) { in BlurRectBench() argument
30 fRadius = rad; in BlurRectBench()
79 BlurRectDirectBench(SkScalar rad) : INHERITED(rad) { in BlurRectDirectBench() argument
82 if (SkScalarFraction(rad) != 0) { in BlurRectDirectBench()
83 name.printf("blurrect_direct_%.2f", SkScalarToFloat(rad)); in BlurRectDirectBench()
85 name.printf("blurrect_direct_%d", SkScalarRoundToInt(rad)); in BlurRectDirectBench()
106 BlurRectSeparableBench(SkScalar rad) : INHERITED(rad) { } in BlurRectSeparableBench() argument
131 BlurRectBoxFilterBench(SkScalar rad) : INHERITED(rad) { in BlurRectBoxFilterBench() argument
134 if (SkScalarFraction(rad) != 0) { in BlurRectBoxFilterBench()
135 name.printf("blurrect_boxfilter_%.2f", SkScalarToFloat(rad)); in BlurRectBoxFilterBench()
[all …]
DPolyUtilsBench.cpp121 SkScalar rad = 0; in makePoly() local
124 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r1, c + SkScalarSin(rad) * r1); in makePoly()
125 rad += drad; in makePoly()
126 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r2, c + SkScalarSin(rad) * r2); in makePoly()
127 rad += drad; in makePoly()
146 SkScalar rad = 0; in makePoly() local
149 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly()
150 rad += drad; in makePoly()
170 SkScalar rad = -SK_ScalarPI / 2; in makePoly() local
174 rad += drad; in makePoly()
[all …]
DMorphologyBench.cpp36 MorphologyBench(SkScalar rad, MorphologyType style) in MorphologyBench() argument
38 fRadius = rad; in MorphologyBench()
40 const char* name = rad > 0 ? gStyleName[style] : "none"; in MorphologyBench()
41 if (SkScalarFraction(rad) != 0) { in MorphologyBench()
42 fName.printf("morph_%.2f_%s", SkScalarToFloat(rad), name); in MorphologyBench()
44 fName.printf("morph_%d_%s", SkScalarRoundToInt(rad), name); in MorphologyBench()
DBlurBench.cpp37 BlurBench(SkScalar rad, SkBlurStyle bs) { in BlurBench() argument
38 fRadius = rad; in BlurBench()
40 const char* name = rad > 0 ? gStyleName[bs] : "none"; in BlurBench()
42 if (SkScalarFraction(rad) != 0) { in BlurBench()
43 fName.printf("blur_%.2f_%s_%s", SkScalarToFloat(rad), name, quality); in BlurBench()
45 fName.printf("blur_%d_%s_%s", SkScalarRoundToInt(rad), name, quality); in BlurBench()
DDashBench.cpp140 SkScalar rad = -SK_ScalarPI / 2; in make_unit_star() local
145 rad += drad; in make_unit_star()
146 path->lineTo(SkScalarCos(rad), SkScalarSin(rad)); in make_unit_star()
/third_party/skia/tests/
DTracingTest.cpp118 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
119 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
129 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
130 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
131 TRACE_COUNTER1("skia", "cos", SkScalarCos(rad) * 1000.0f + 1000.0f); in test_trace_counters()
142 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
144 "sin", SkScalarSin(rad) * 1000.0f + 1000.0f, in test_trace_counters()
145 "cos", SkScalarCos(rad) * 1000.0f + 1000.0f); in test_trace_counters()
DRRectInPathTest.cpp175 const SkScalar rad = 12814; in test_tricky_radii() local
176 const SkVector vec[] = { { rad, rad }, { 0, rad }, { rad, rad }, { 0, rad } }; in test_tricky_radii()
200 const SkScalar rad = 40; in test_empty_crbug_458524() local
201 rr.setRectXY(bounds, rad, rad); in test_empty_crbug_458524()
416 static void set_radii(SkVector radii[4], int index, float rad) { in set_radii() argument
418 radii[index].set(rad, rad); in set_radii()
426 const float rad = 33436320; in test_skbug_3239() local
435 set_radii(radii, i, rad); in test_skbug_3239()
DPolyUtilsTest.cpp201 SkScalar rad = 0; in DEF_TEST() local
204 *poly.push() = SkPoint::Make(c + SkScalarCos(rad) * r1, c + SkScalarSin(rad) * r1); in DEF_TEST()
205 rad += drad; in DEF_TEST()
206 *poly.push() = SkPoint::Make(c + SkScalarCos(rad) * r2, c + SkScalarSin(rad) * r2); in DEF_TEST()
207 rad += drad; in DEF_TEST()
/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/
DMatrix.java143 public Matrix rotateX(float rad) { in rotateX() argument
144 nRotate(this.mNativeInstance, 1, 0, 0, rad); in rotateX()
153 public Matrix rotateY(float rad) { in rotateY() argument
154 nRotate(this.mNativeInstance, 0, 1, 0, rad); in rotateY()
163 public Matrix rotateZ(float rad) { in rotateZ() argument
164 nRotate(this.mNativeInstance, 0, 0, 1, rad); in rotateZ()
173 public Matrix rotate(float x, float y, float z, float rad) { in rotate() argument
174 nRotate(this.mNativeInstance, x, y, z, rad); in rotate()
210 … private static native void nRotate(long mNativeInstance, float x, float y, float z, float rad); in nRotate() argument
/third_party/skia/src/gpu/ops/
DStrokeRectOp.cpp65 const SkScalar rad = SkScalarHalf(width); in init_nonaa_stroke_rect_strip() local
67 verts[0].set(rect.fLeft + rad, rect.fTop + rad); in init_nonaa_stroke_rect_strip()
68 verts[1].set(rect.fLeft - rad, rect.fTop - rad); in init_nonaa_stroke_rect_strip()
69 verts[2].set(rect.fRight - rad, rect.fTop + rad); in init_nonaa_stroke_rect_strip()
70 verts[3].set(rect.fRight + rad, rect.fTop - rad); in init_nonaa_stroke_rect_strip()
71 verts[4].set(rect.fRight - rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip()
72 verts[5].set(rect.fRight + rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip()
73 verts[6].set(rect.fLeft + rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip()
74 verts[7].set(rect.fLeft - rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip()
80 if (2*rad >= rect.width()) { in init_nonaa_stroke_rect_strip()
[all …]
/third_party/skia/gm/
Dbackdrop.cpp27 static sk_sp<SkShader> make_shader(SkScalar cx, SkScalar cy, SkScalar rad) { in make_shader() argument
44 const SkScalar cx = 128, cy = 128, rad = 100; in do_draw() local
46 p.setShader(make_shader(cx, cy, rad)); in do_draw()
48 canvas->drawCircle(cx, cy, rad, p); in do_draw()
Daddarc.cpp95 const SkScalar rad = SkDegreesToRadians(deg); variable
96 SkScalar rx = SkScalarCos(rad) * R;
97 SkScalar ry = SkScalarSin(rad) * R;
102 SkScalar arcLen = rad * R;
Dsmallpaths.cpp66 SkScalar rad = -SK_ScalarPI / 2; in make_star() local
72 rad += drad; in make_star()
73 b.lineTo(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in make_star()
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-number.c775 int32_t rad = ecma_number_to_int32 (radix_num); in ecma_number_parse_int() local
781 if (rad != 0) in ecma_number_parse_int()
784 if (rad < 2 || rad > 36) in ecma_number_parse_int()
789 else if (rad != 16) in ecma_number_parse_int()
797 rad = 10; in ecma_number_parse_int()
810 rad = 16; in ecma_number_parse_int()
836 current_number = rad; in ecma_number_parse_int()
839 if (!(current_number < rad)) in ecma_number_parse_int()
878 multiplier *= (ecma_number_t) rad; in ecma_number_parse_int()
/third_party/skia/docs/examples/
DPath_incReserve.cpp10 SkScalar rad = SK_ScalarPI * 2 * i / sides; in draw() local
11 path->lineTo(SkScalarCos(rad) * size, SkScalarSin(rad) * size); in draw()
DBlendModes.cpp7 auto rad = SkGradientShader::MakeRadial(SkPoint::Make(128, 128), 128, radColors, nullptr, 3, in drawBG() local
16 auto comp = SkShaders::Blend(SkBlendMode::kModulate, std::move(rad), std::move(sweep)); in drawBG()
/third_party/cups-filters/filter/pdftopdf/
Dqpdf_pdftopdf.cc147 Matrix &Matrix::rotate(double rad) // {{{ in rotate() argument
151 tmp.ctm[0]=cos(rad); in rotate()
152 tmp.ctm[1]=sin(rad); in rotate()
153 tmp.ctm[2]=-sin(rad); in rotate()
154 tmp.ctm[3]=cos(rad); in rotate()
/third_party/python/Lib/turtledemo/
Dfractalcurves.py47 def fractalgon(self, n, rad, lev, dir): argument
52 edge = 2 * rad * math.sin(math.pi / n)
54 self.fd(rad)
62 self.bk(rad)
/third_party/skia/modules/skottie/src/effects/
DDropShadowEffect.cpp60 const auto rad = SkDegreesToRadians(90 - fDirection); in onSync() local
61 fDropShadow->setOffset(SkVector::Make( fDistance * SkScalarCos(rad), in onSync()
62 -fDistance * SkScalarSin(rad))); in onSync()
DShadowStyles.cpp44 const auto rad = SkDegreesToRadians(180 + fAngle), // 0deg -> left (style) in onSync() local
48 const auto offset = SkV2{ fDistance * SkScalarCos(rad), in onSync()
49 -fDistance * SkScalarSin(rad)}; in onSync()
/third_party/ffmpeg/libavfilter/
Daf_acrusher.c277 double rad, sunder, smax, sover; in config_input() local
284 rad = s->lforange / 2.; in config_input()
285 s->smin = FFMAX(s->samples - rad, 1.); in config_input()
286 sunder = s->samples - rad - s->smin; in config_input()
287 smax = FFMIN(s->samples + rad, 250.); in config_input()
288 sover = s->samples + rad - smax; in config_input()
/third_party/skia/site/docs/user/modules/
Dparticles.md188 "float4x4 rx(float rad) {",
189 " float c = cos(rad);",
190 " float s = sin(rad);",
197 "float4x4 ry(float rad) {",
198 " float c = cos(rad);",
199 " float s = sin(rad);",
206 "float4x4 rz(float rad) {",
207 " float c = cos(rad);",
208 " float s = sin(rad);",
/third_party/skia/modules/canvaskit/
Dutil.js8 function radiansToDegrees(rad) { argument
9 return (rad / Math.PI) * 180;
/third_party/ffmpeg/libavfilter/opencl/
Davgblur.cl24 int rad)
34 for (int xx = max(0, loc.x - rad); xx < min(loc.x + rad + 1, size.x); xx++) {
/third_party/skia/third_party/externals/oboe/samples/drumthumper/src/main/java/com/plausibleaudio/drumthumper/
DTriggerPad.kt156 var rad = minOf(mDrawRect.width() / 8.0f, mDrawRect.height() / 8.0f) in onDraw() variable
157 canvas.drawRoundRect(mDrawRect, rad, rad, mPaint) in onDraw()

12345678910