Searched defs:rad (Results 1 - 25 of 41) sorted by relevance

12

/external/skia/bench/
H A DBlurBench.cpp37 BlurBench(SkScalar rad, SkBlurStyle bs, uint32_t flags = 0) { argument
38 fRadius = rad;
41 const char* name = rad > 0 ? gStyleName[bs] : "none";
44 if (SkScalarFraction(rad) != 0) {
45 fName.printf("blur_%.2f_%s_%s", SkScalarToFloat(rad), name, quality);
47 fName.printf("blur_%d_%s_%s", SkScalarRoundToInt(rad), name, quality);
H A DMorphologyBench.cpp36 MorphologyBench(SkScalar rad, MorphologyType style) argument
38 fRadius = rad;
40 const char* name = rad > 0 ? gStyleName[style] : "none";
41 if (SkScalarFraction(rad) != 0) {
42 fName.printf("morph_%.2f_%s", SkScalarToFloat(rad), name);
44 fName.printf("morph_%d_%s", SkScalarRoundToInt(rad), name);
H A DBlurRectBench.cpp29 BlurRectBench(SkScalar rad) { argument
30 fRadius = rad;
79 BlurRectDirectBench(SkScalar rad) : INHERITED(rad) { argument
82 if (SkScalarFraction(rad) != 0) {
83 name.printf("blurrect_direct_%.2f", SkScalarToFloat(rad));
85 name.printf("blurrect_direct_%d", SkScalarRoundToInt(rad));
106 BlurRectSeparableBench(SkScalar rad) : INHERITED(rad) { } argument
131 BlurRectBoxFilterBench(SkScalar rad) argument
159 BlurRectGaussianBench(SkScalar rad) argument
[all...]
H A DDashBench.cpp143 SkScalar rad = -SK_ScalarPI / 2; local
148 rad += drad;
149 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV);
/external/skia/gm/
H A Ddrawatlas.cpp66 const SkScalar rad = SkDegreesToRadians(fDegrees); local
67 xform->fSCos = fScale * SkScalarCos(rad);
68 xform->fSSin = fScale * SkScalarSin(rad);
H A Daddarc.cpp93 const SkScalar rad = SkDegreesToRadians(deg); variable
94 SkScalar rx = SkScalarCos(rad) * R;
95 SkScalar ry = SkScalarSin(rad) * R;
102 SkScalar arcLen = rad * R;
H A Dpathfill.cpp77 SkScalar rad = -SK_ScalarPI / 2; local
82 rad += drad;
83 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV);
H A Dsmallpaths.cpp45 SkScalar rad = -SK_ScalarPI / 2; local
50 rad += drad;
51 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV);
H A Ddashing.cpp103 SkScalar rad = -SK_ScalarPI / 2; local
108 rad += drad;
109 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV);
H A Dtilemodes.cpp168 SkScalar rad = SkIntToScalar(gWidth)/2; local
176 return SkGradientShader::CreateRadial(center, rad, colors, nullptr, SK_ARRAY_COUNT(colors), tx);
H A Dtilemodes_scaled.cpp172 SkScalar rad = SkIntToScalar(gWidth)/2; local
180 return SkGradientShader::CreateRadial(center, rad, colors, nullptr, SK_ARRAY_COUNT(colors), tx);
/external/skia/samplecode/
H A DSamplePathFill.cpp79 SkScalar rad = -SK_ScalarPI / 2; local
84 rad += drad;
85 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV);
H A DClockFaceView.cpp137 SkScalar rad = 3 + SkIntToScalar(4) * (1 - interp); local
138 lattice.setScale(rad*2, rad*2, 0, 0);
140 return new Dot2DPathEffect(rad, lattice, pts);
H A DSampleBitmapRect.cpp46 SkScalar rad = SkDegreesToRadians(SkIntToScalar(degrees)); local
48 s = SkScalarSinCos(rad, &c);
H A DSamplePath.cpp247 const SkScalar rad = 50; local
257 fArcToPaint.setPathEffect(SkArcToPathEffect::Create(rad))->unref();
263 fCornerPaint.setPathEffect(SkCornerPathEffect::Create(rad*2))->unref();
H A DSamplePathClip.cpp286 const SkScalar rad = 8; local
289 return dx*dx + dy*dy <= rad*rad;
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/pie/
H A DPieRenderer.java80 float rad, float startAngle, float sweep) {
89 donutSizePx = donutSize * rad;
92 donutSizePx = (donutSize > 0)?donutSize:(rad + donutSize);
99 PointF r1Outer = calculateLineEnd(cx, cy, rad, startAngle);
103 PointF r2Outer = calculateLineEnd(cx, cy, rad, startAngle + sweep);
115 clip.arcTo(new RectF(bounds.left - rad,
116 bounds.top - rad,
117 bounds.right + rad,
118 bounds.bottom + rad),
149 canvas.drawCircle(cx, cy, rad,
79 drawSegment(Canvas canvas, RectF bounds, Segment seg, SegmentFormatter f, float rad, float startAngle, float sweep) argument
196 calculateLineEnd(float x, float y, float rad, float deg) argument
200 calculateLineEnd(PointF origin, float rad, float deg) argument
[all...]
/external/clang/test/Analysis/
H A Darray-struct-region.c22 void nested_compound_literals(int rad) { argument
28 vec[a][0] *= rad; // no-warning
29 vec[a][1] *= rad; // no-warning
33 void nested_compound_literals_float(float rad) { argument
39 vec[a][0] *= rad; // no-warning
40 vec[a][1] *= rad; // no-warning
/external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/
H A DNeuQuant.java236 int radius, rad, alpha, step, delta, samplepixels;
251 rad = radius >> radiusbiasshift;
252 if (rad <= 1)
253 rad = 0;
254 for (i = 0; i < rad; i++)
255 radpower[i] = alpha * (((rad * rad - i * i) * radbias) / (rad * rad));
257 // fprintf(stderr,"beginning 1D learning: initial radius=%d\n", rad);
406 alterneigh(int rad, int i, int b, int g, int r) argument
[all...]
/external/opencv3/samples/cpp/
H A Dtvl1_optical_flow.cpp59 const float rad = sqrt(fx * fx + fy * fy); local
76 if (rad <= 1)
77 col = 1 - rad * (1 - col); // increase saturation with radius
/external/opencv3/samples/gpu/
H A Doptical_flow.cpp61 const float rad = sqrt(fx * fx + fy * fy); local
78 if (rad <= 1)
79 col = 1 - rad * (1 - col); // increase saturation with radius
/external/skia/src/effects/
H A DSkGpuBlurUtils.cpp116 SkScalar rad = SkIntToScalar(radius); local
123 midRect.inset(rad, 0);
135 midRect.inset(0, rad);
/external/skia/src/gpu/batches/
H A DGrNonAAStrokeRectBatch.cpp23 const SkScalar rad = SkScalarHalf(width); local
26 //SkASSERT(rad < rect.width() / 2 && rad < rect.height() / 2);
28 verts[0].set(rect.fLeft + rad, rect.fTop + rad);
29 verts[1].set(rect.fLeft - rad, rect.fTop - rad);
30 verts[2].set(rect.fRight - rad, rect.fTop + rad);
31 verts[3].set(rect.fRight + rad, rec
97 SkScalar rad = SkScalarHalf(geo.fStrokeWidth); local
[all...]
/external/opencv3/modules/videostab/src/
H A Dinpainting.cpp237 for (int dy = -rad; dy <= rad; ++dy)
239 for (int dx = -rad; dx <= rad; ++dx)
320 int rad; member in class:cv::videostab::MotionInpaintBody
363 body.rad = 2;
/external/skia/tests/
H A DRRectInPathTest.cpp138 const SkScalar rad = 12814; local
139 const SkVector vec[] = { { rad, rad }, { 0, rad }, { rad, rad }, { 0, rad } };
159 const SkScalar rad = 40; local
160 rr.setRectXY(bounds, rad, rad);
344 set_radii(SkVector radii[4], int index, float rad) argument
354 const float rad = 33436320; local
[all...]

Completed in 1867 milliseconds

12