/external/eigen/demos/opengl/ |
H A D | quaternion_demo.cpp | 39 float radius = 100; local 45 mRadii.push_back(radius); 48 radius *= 0.45; 54 mRadii.push_back(radius); 71 radius *= scale; 80 Affine3f t = Translation3f(c) * q * Scaling(mRadii[i]+radius); 85 * (mRadii[i] + radius*0.8); 87 mRadii.push_back(radius);
|
/external/skia/experimental/StrokePathRenderer/ |
H A D | GrStrokePathRenderer.cpp | 125 const SkScalar radius = SkScalarMul(width, 0.5f); local 143 if (dir.setLength(radius)) { 188 SkScalarDiv(SkScalarMul(radius, radius),
|
/external/skia/samplecode/ |
H A D | SampleAll.cpp | 165 Dot2DPathEffect(SkScalar radius, const SkMatrix& matrix) argument 166 : Sk2DPathEffect(matrix), fRadius(radius) {}
|
/external/skia/src/animator/ |
H A D | SkDrawExtraPathEffect.cpp | 75 SkScalar radius; member in class:SkDrawCornerPathEffect 387 SK_MEMBER(radius, Float) 395 fType(type), radius(0) { 402 return SkCornerPathEffect::Create(radius);
|
/external/skia/src/effects/gradients/ |
H A D | SkRadialGradient.cpp | 58 void rad_to_unit_matrix(const SkPoint& center, SkScalar radius, argument 60 SkScalar inv = SkScalarInvert(radius); 148 SkRadialGradient::SkRadialGradient(const SkPoint& center, SkScalar radius, argument 152 fRadius(radius) 157 rad_to_unit_matrix(center, radius, &fPtsToUnit); 531 SkScalar radius = random->nextUScalar1(); local 538 SkAutoTUnref<SkShader> shader(SkGradientShader::CreateRadial(center, radius, 609 str->append(") radius: ");
|
/external/skia/tests/ |
H A D | PathOpsAngleIdeas.cpp | 74 static void orderQuads(skiatest::Reporter* reporter, const SkDQuad& quad, double radius, argument 76 double r = radius;
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/sdk/ |
H A D | CSSMetadata.js | 660 "border-radius": { m: "background" }, 769 "border-bottom-left-radius": 50, 770 "border-bottom-right-radius": 50, 778 "border-radius": 50, 785 "border-top-left-radius": 49, 786 "border-top-right-radius": 49,
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
H A D | CSSGradientValue.cpp | 918 float CSSRadialGradientValue::resolveRadius(CSSPrimitiveValue* radius, const CSSToLengthConversionData& conversionData, float* widthOrHeight) argument 921 if (radius->isNumber()) // Can the radius be a percentage? 922 result = radius->getFloatValue() * conversionData.zoom(); 923 else if (widthOrHeight && radius->isPercentage()) 924 result = *widthOrHeight * radius->getFloatValue() / 100; 926 result = radius->computeLength<float>(conversionData); 997 // Compute horizontal radius of ellipse with center at 0,0 which passes through p, and has
|
/external/chromium_org/third_party/libvpx/source/libvpx/third_party/libyuv/source/ |
H A D | planar_functions.cc | 1617 // aligned to 16 byte boundary. height can be radius * 2 + 2 to save memory 1623 int width, int height, int radius) { 1641 if (radius > height) { 1642 radius = height; 1644 if (radius > (width / 2 - 1)) { 1645 radius = width / 2 - 1; 1647 if (radius <= 0) { 1660 width, radius); 1662 src_argb = src_argb + radius * src_stride_argb; 1663 cumsum_bot_row = &dst_cumsum[(radius 1620 ARGBBlur(const uint8* src_argb, int src_stride_argb, uint8* dst_argb, int dst_stride_argb, int32* dst_cumsum, int dst_stride32_cumsum, int width, int height, int radius) argument [all...] |
/external/chromium_org/third_party/libyuv/source/ |
H A D | planar_functions.cc | 1617 // aligned to 16 byte boundary. height can be radius * 2 + 2 to save memory 1623 int width, int height, int radius) { 1641 if (radius > height) { 1642 radius = height; 1644 if (radius > (width / 2 - 1)) { 1645 radius = width / 2 - 1; 1647 if (radius <= 0) { 1660 width, radius); 1662 src_argb = src_argb + radius * src_stride_argb; 1663 cumsum_bot_row = &dst_cumsum[(radius 1620 ARGBBlur(const uint8* src_argb, int src_stride_argb, uint8* dst_argb, int dst_stride_argb, int32* dst_cumsum, int dst_stride32_cumsum, int width, int height, int radius) argument [all...] |
/external/chromium_org/third_party/skia/bench/ |
H A D | PathBench.cpp | 599 SkScalar radius = rand.nextUScalar1() * 3; variable 602 r.fRight = r.fLeft + 2 * radius; 603 r.fBottom = r.fTop + 2 * radius; 627 // In its "zero radius" incarnation it creates degenerate round rects. 724 bool fZeroRad; // should 0 radius rounds rects be tested?
|
/external/chromium_org/third_party/skia/include/core/ |
H A D | SkPath.h | 472 SkScalar radius); 477 void arcTo(const SkPoint p1, const SkPoint p2, SkScalar radius) { argument 478 this->arcTo(p1.fX, p1.fY, p2.fX, p2.fY, radius); 643 * @param radius The radius of a circle to add as a closed contour to the 648 void addCircle(SkScalar x, SkScalar y, SkScalar radius, 662 * @param rx The x-radius of the rounded corners on the round-rectangle 663 * @param ry The y-radius of the rounded corners on the round-rectangle 672 * two radius values [X, Y]. The corners are ordered top-left, top-right,
|
/external/chromium_org/third_party/skia/samplecode/ |
H A D | SampleSlides.cpp | 562 static SkPathEffect* MakeDotEffect(SkScalar radius, const SkMatrix& matrix) { argument 564 path.addCircle(0, 0, radius);
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkStroke.cpp | 48 SkScalar radius, 54 unitNormal->scale(radius, normal); 59 SkScalar radius, 65 unitNormal->scale(radius, normal); 74 SkScalar radius, SkScalar miterLimit, SkPaint::Cap cap, 191 SkScalar radius, SkScalar miterLimit, 193 : fRadius(radius) { 552 SkScalar radius = SkScalarHalf(fWidth); local 556 if (radius <= 0) { 578 SkPathStroker stroker(src, radius, fMiterLimi 58 set_normal_unitnormal(const SkVector& vec, SkScalar radius, SkVector* normal, SkVector* unitNormal) argument 190 SkPathStroker(const SkPath& src, SkScalar radius, SkScalar miterLimit, SkPaint::Cap cap, SkPaint::Join join) argument 692 SkScalar radius = SkScalarHalf(fWidth); local [all...] |
/external/chromium_org/third_party/skia/src/effects/ |
H A D | SkBlurMask.cpp | 25 SkScalar SkBlurMask::ConvertRadiusToSigma(SkScalar radius) { argument 26 return radius > 0 ? kBLUR_SIGMA_SCALE * radius + 0.5f : 0.0f; 36 * This function performs a box blur in X, of the given radius. If the 230 * keeps two running sums: an outer sum for the rounded-up kernel radius, and 231 * an inner sum for the rounded-down kernel radius. For each pixel, it linearly 282 int radius, int width, int height, 285 int diameter = radius * 2; 672 a blurred half-plane with the given blur radius. Since we're 281 boxBlurInterp(const uint8_t* src, int src_y_stride, uint8_t* dst, int radius, int width, int height, bool transpose, uint8_t outer_weight) argument
|
H A D | SkMorphologyImageFilter.cpp | 54 int radius, int width, int height, 61 radius = SkMin32(radius, width - 1); 62 const SkPMColor* upperSrc = src + radius * srcStrideX; 84 if (x >= radius) src += srcStrideX; 85 if (x + radius < width - 1) upperSrc += srcStrideX; 92 int radius, int width, int height, 99 radius = SkMin32(radius, width - 1); 100 const SkPMColor* upperSrc = src + radius * srcStride 53 erode(const SkPMColor* src, SkPMColor* dst, int radius, int width, int height, int srcStride, int dstStride) argument 91 dilate(const SkPMColor* src, SkPMColor* dst, int radius, int width, int height, int srcStride, int dstStride) argument 173 SkVector radius = SkVector::Make(SkIntToScalar(this->radius().width()), local 252 SkVector radius = SkVector::Make(SkIntToScalar(this->radius().width()), local 298 Create(GrTexture* tex, Direction dir, int radius, MorphologyType type) argument 435 GrMorphologyEffect(GrTexture* texture, Direction direction, int radius, MorphologyType type) argument 476 int radius = random->nextRangeU(1, kMaxRadius); local 485 apply_morphology_pass(GrContext* context, GrTexture* texture, const SkIRect& srcRect, const SkIRect& dstRect, int radius, GrMorphologyEffect::MorphologyType morphType, Gr1DKernelEffect::Direction direction) argument 500 apply_morphology(const SkBitmap& input, const SkIRect& rect, GrMorphologyEffect::MorphologyType morphType, SkISize radius, SkBitmap* dst) argument 572 SkVector radius = SkVector::Make(SkIntToScalar(this->radius().width()), local [all...] |
/external/chromium_org/third_party/skia/src/effects/gradients/ |
H A D | SkRadialGradient.cpp | 58 void rad_to_unit_matrix(const SkPoint& center, SkScalar radius, argument 60 SkScalar inv = SkScalarInvert(radius); 148 SkRadialGradient::SkRadialGradient(const SkPoint& center, SkScalar radius, const Descriptor& desc) argument 151 , fRadius(radius) 156 rad_to_unit_matrix(center, radius, &fPtsToUnit); 269 const SkScalar radius = buffer.readScalar(); local 270 return SkGradientShader::CreateRadial(center, radius, desc.fColors, desc.fPos, desc.fCount, 543 SkScalar radius = random->nextUScalar1(); local 550 SkAutoTUnref<SkShader> shader(SkGradientShader::CreateRadial(center, radius, 621 str->append(") radius [all...] |
H A D | SkTwoPointConicalGradient_gpu.cpp | 24 * the start radius <= end radius. Our first case (kInside_) is when the start circle 78 SkScalar radius() const { return fRadius0; } function in class:Edge2PtConicalEffect 100 // When deciding if we are in edge case, we scaled by the end radius for cases when the 101 // start radius was close to zero, otherwise we scaled by the start radius. In addition 240 SkString p0; // start radius 241 SkString p1; // start radius squared 288 SkScalar radius0 = data.radius(); 323 SkScalar radius local [all...] |
/external/chromium_org/third_party/skia/src/gpu/ |
H A D | GrOvalRenderer.cpp | 60 * specified as offset_x, offset_y (both from center point), outer radius and inner radius. 535 SkScalar radius = vm.mapRadius(SkScalarHalf(circle.width())); local 560 SkScalar outerRadius = radius; 571 innerRadius = radius - halfWidth; 579 // clamp(distance-to-center - radius, 0, 1). Second, the outer radius is used to compute the 725 // We've extended the outer x radius out half a pixel to antialias. 804 // set inner radius (if needed) 842 // This adjusts the "radius" t [all...] |
/external/chromium_org/third_party/skia/src/gpu/effects/ |
H A D | GrDashingEffect.cpp | 428 * interval). The radius of the dots is given by the strokeWidth and the spacing by the DashInfo. 441 SkScalar radius); 464 DashingCircleEffect(GrPrimitiveEdgeType edgeType, const DashInfo& info, SkScalar radius); 522 // The param uniforms, xyz, refer to circle radius - 0.5, cicles center x coord, and 557 SkScalar radius = dce.getRadius(); local 560 if (radius != fPrevRadius || centerX != fPrevCenterX || intervalLength != fPrevIntervalLength) { 561 pdman.set3f(fParamUniform, radius - 0.5f, centerX, intervalLength); 562 fPrevRadius = radius; 577 SkScalar radius) { 582 return SkNEW_ARGS(DashingCircleEffect, (edgeType, info, radius)); 576 Create(GrPrimitiveEdgeType edgeType, const DashInfo& info, SkScalar radius) argument 595 DashingCircleEffect(GrPrimitiveEdgeType edgeType, const DashInfo& info, SkScalar radius) argument [all...] |
/external/chromium_org/ui/events/x/ |
H A D | events_x.cc | 114 // A 'special event' is a touch event with maximum radius and pressure at 132 double radius = ui::GetTouchRadiusX(native_event), min, max; local 140 return radius * 2 == max; 290 void ScaleTouchRadius(XEvent* xev, double* radius) { argument 294 xiev->sourceid, radius); 789 double radius = GetTouchParamFromXEvent(native_event, local 791 ScaleTouchRadius(native_event, &radius); 792 return radius; 796 double radius = GetTouchParamFromXEvent(native_event, local 798 ScaleTouchRadius(native_event, &radius); [all...] |
/external/chromium_org/ui/gfx/ |
H A D | canvas.cc | 291 int radius, 294 SkIntToScalar(center_point.y()), SkIntToScalar(radius), paint); 298 int radius, 300 canvas_->drawRoundRect(RectToSkRect(rect), SkIntToScalar(radius), 301 SkIntToScalar(radius), paint); 290 DrawCircle(const Point& center_point, int radius, const SkPaint& paint) argument 297 DrawRoundRect(const Rect& rect, int radius, const SkPaint& paint) argument
|
/external/libyuv/files/source/ |
H A D | planar_functions.cc | 1272 // aligned to 16 byte boundary. height can be radius * 2 + 2 to save memory 1278 int width, int height, int radius) { 1296 width, radius); 1298 src_argb = src_argb + radius * src_stride_argb; 1299 int32* cumsum_bot_row = &dst_cumsum[(radius - 1) * dst_stride32_cumsum]; 1302 &dst_cumsum[(radius * 2 + 2) * dst_stride32_cumsum]; 1306 int top_y = ((y - radius - 1) >= 0) ? (y - radius - 1) : 0; 1307 int bot_y = ((y + radius) < height) ? (y + radius) 1275 ARGBBlur(const uint8* src_argb, int src_stride_argb, uint8* dst_argb, int dst_stride_argb, int32* dst_cumsum, int dst_stride32_cumsum, int width, int height, int radius) argument [all...] |
/external/opencv/cv/src/ |
H A D | cvshapedescr.cpp | 135 CvPoint2D32f pt2, CvPoint2D32f * center, float *radius ) 153 *radius = (float) icvDistanceL2_32f( *center, pt0 ); 158 radius = 0; 166 CV_INLINE double icvIsPtInCircle( CvPoint2D32f pt, CvPoint2D32f center, float radius ) 170 return (double)radius*radius - dx*dx - dy*dy; 184 float radius, min_radius = FLT_MAX; local 188 radius = 1.f; 218 radius = (float)(icvDistanceL2_32f( pts[idxs[0]], center )*1.03); 219 if( radius < 283 float radius = 0; local [all...] |
/external/qemu/android/skin/ |
H A D | trackball.c | 306 double radius = diameter*0.5; local 320 if (r0 <= radius) { /* ball pixel */ 321 double rx = x0/radius; 322 double ry = y0/radius; 332 if (r0 >= radius-1.) { 333 coord->alpha = 256*(radius - r0);
|