Home
last modified time | relevance | path

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

12

/external/lottie/lottie/src/main/java/com/airbnb/lottie/animation/content/
DEllipseContent.java86 float halfWidth = size.x / 2f; in getPath() local
90 float cpW = halfWidth * ELLIPSE_CONTROL_POINT_PERCENTAGE; in getPath()
96 path.cubicTo(0 - cpW, -halfHeight, -halfWidth, 0 - cpH, -halfWidth, 0); in getPath()
97 path.cubicTo(-halfWidth, 0 + cpH, 0 - cpW, halfHeight, 0, halfHeight); in getPath()
98 path.cubicTo(0 + cpW, halfHeight, halfWidth, 0 + cpH, halfWidth, 0); in getPath()
99 path.cubicTo(halfWidth, 0 - cpH, 0 + cpW, -halfHeight, 0, -halfHeight); in getPath()
102 path.cubicTo(0 + cpW, -halfHeight, halfWidth, 0 - cpH, halfWidth, 0); in getPath()
103 path.cubicTo(halfWidth, 0 + cpH, 0 + cpW, halfHeight, 0, halfHeight); in getPath()
104 path.cubicTo(0 - cpW, halfHeight, -halfWidth, 0 + cpH, -halfWidth, 0); in getPath()
105 path.cubicTo(-halfWidth, 0 - cpH, 0 - cpW, -halfHeight, 0, -halfHeight); in getPath()
DRectangleContent.java100 float halfWidth = size.x / 2f; in getPath() local
105 radius = Math.min(roundedCornersAnimation.getValue(), Math.min(halfWidth, halfHeight)); in getPath()
107 float maxRadius = Math.min(halfWidth, halfHeight); in getPath()
115 path.moveTo(position.x + halfWidth, position.y - halfHeight + radius); in getPath()
117 path.lineTo(position.x + halfWidth, position.y + halfHeight - radius); in getPath()
120 rect.set(position.x + halfWidth - 2 * radius, in getPath()
122 position.x + halfWidth, in getPath()
127 path.lineTo(position.x - halfWidth + radius, position.y + halfHeight); in getPath()
130 rect.set(position.x - halfWidth, in getPath()
132 position.x - halfWidth + 2 * radius, in getPath()
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_aaline.c49 GLfloat halfWidth; /* half of line width */ member
374 xLeft = x0 - line->halfWidth; in segment()
375 xRight = x1 + line->halfWidth; in segment()
377 yBot = y0 - 3.0F * line->halfWidth; in segment()
378 yTop = y0 + line->halfWidth; in segment()
381 yBot = y0 - line->halfWidth; in segment()
382 yTop = y0 + 3.0F * line->halfWidth; in segment()
386 xLeft = x1 - line->halfWidth; in segment()
387 xRight = x0 + line->halfWidth; in segment()
389 yBot = y1 - 3.0F * line->halfWidth; in segment()
[all …]
Ds_aalinetemp.h122 line.halfWidth = 0.5F * CLAMP(ctx->Line.Width, in NAME()
132 line.xAdj = line.dx / line.len * line.halfWidth; in NAME()
133 line.yAdj = line.dy / line.len * line.halfWidth; in NAME()
/external/skia/src/effects/
DSkDashPathEffect.cpp305 SkScalar halfWidth, halfHeight; in onAsPoints() local
307 halfWidth = SkScalarHalf(clampedInitialDashLength); in onAsPoints()
310 halfWidth = SkScalarHalf(rec.getWidth()); in onAsPoints()
315 results->fFirst.addRect(x - halfWidth, y - halfHeight, in onAsPoints()
316 x + halfWidth, y + halfHeight); in onAsPoints()
356 SkScalar halfWidth, halfHeight; in onAsPoints() local
358 halfWidth = SkScalarHalf(temp); in onAsPoints()
361 halfWidth = SkScalarHalf(rec.getWidth()); in onAsPoints()
364 results->fLast.addRect(x - halfWidth, y - halfHeight, in onAsPoints()
365 x + halfWidth, y + halfHeight); in onAsPoints()
/external/skia/src/gpu/ganesh/ops/
DShadowRRectOp.cpp283 SkScalar halfWidth = 0.5f * bounds.width(); in fillInCircleVerts() local
286 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
292 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
298 (*verts)->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
304 (*verts)->fPos = center + SkPoint::Make(halfWidth, octOffset * halfWidth); in fillInCircleVerts()
310 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, halfWidth); in fillInCircleVerts()
316 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, halfWidth); in fillInCircleVerts()
322 (*verts)->fPos = center + SkPoint::Make(-halfWidth, octOffset * halfWidth); in fillInCircleVerts()
328 (*verts)->fPos = center + SkPoint::Make(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
DGrOvalOpFactory.cpp1057 SkScalar halfWidth = 0; in CircleOp() local
1060 halfWidth = SK_ScalarHalf; in CircleOp()
1062 halfWidth = SkScalarHalf(strokeWidth); in CircleOp()
1065 outerRadius += halfWidth; in CircleOp()
1067 innerRadius = radius - halfWidth; in CircleOp()
1213 radius += halfWidth; in CircleOp()
1314 SkScalar halfWidth = 0.5f * bounds.width(); in onPrepareDraws() local
1328 offsetClipDist = 0.5f / halfWidth; in onPrepareDraws()
1336 vertices << (center + offset * halfWidth) in onPrepareDraws()
1549 SkScalar halfWidth = 0; in ButtCapDashedCircleOp() local
[all …]
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/
DvktDynamicStateVPTests.cpp321 const float halfWidth = (float)WIDTH / 2; in iterate() local
328 { 0.0f, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
329 { halfWidth, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
330 { halfWidth, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
331 { 0.0f, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f } in iterate()
337 { { (deInt32)halfWidth, quarterHeight }, { quarterWidth, quarterHeight } }, in iterate()
338 { { (deInt32)halfWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
/external/skia/src/gpu/ganesh/effects/
DGrGaussianConvolutionFragmentProcessor.cpp125 int halfWidth, in Make() argument
139 halfWidth = 0; in Make()
148 case Direction::kX: domain.outset(halfWidth, 0); break; in Make()
149 case Direction::kY: domain.outset(0, halfWidth); break; in Make()
174 std::move(child), dir, halfWidth, gaussianSigma)); in Make()
DGrGaussianConvolutionFragmentProcessor.h39 int halfWidth,
64 int halfWidth,
/external/replicaisland/src/com/replica/replicaisland/
DInputGameInterface.java99 final float halfWidth = ButtonConstants.MOVEMENT_SLIDER_BAR_WIDTH / 2.0f; in update() local
100 final float center = ButtonConstants.MOVEMENT_SLIDER_X + halfWidth; in update()
102 float magnitudeRamp = Math.abs(offset) > halfWidth ? 1.0f : (Math.abs(offset) / halfWidth); in update()
DSimpleCollisionComponent.java62 final float halfWidth = parentObject.width / 2.0f; in update() local
65 parentObject.getPosition().x = mHitPoint.x - halfWidth; in update()
DGameRenderer.java214 final float halfWidth = mHalfWidth; in onDrawFrame() local
222 x = (x - mCameraX) + halfWidth; in onDrawFrame()
/external/skia/src/gpu/graphite/render/
DAnalyticRRectRenderStep.cpp770 SkASSERT(params.strokeStyle().halfWidth() >= 0.f); in writeVertices()
771 SkASSERT(shape.isRect() || params.strokeStyle().halfWidth() == 0.f || in writeVertices()
774 const float strokeRadius = params.strokeStyle().halfWidth(); in writeVertices()
775 skvx::float2 innerGap = bounds.size() - 2.f * params.strokeStyle().halfWidth(); in writeVertices()
786 if (params.strokeStyle().halfWidth() > 0.f) { in writeVertices()
DTessellateStrokesRenderStep.cpp139 writer.updateStrokeParamsAttrib({params.strokeStyle().halfWidth(), in writeVertices()
/external/deqp/external/vulkancts/modules/vulkan/mesh_shader/
DvktMeshShaderBuiltinTests.cpp462 const auto halfWidth = width / 2; in verifyResults() local
471 expected = ((x < halfWidth) ? m_topLeft : m_topRight); in verifyResults()
473 expected = ((x < halfWidth) ? m_bottomLeft : m_bottomRight); in verifyResults()
919 const auto halfWidth = static_cast<float>(extent.width) / 2.0f; in createInstance() local
929 viewports.emplace_back(makeViewport(0.0f, 0.0f, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
930 viewports.emplace_back(makeViewport(halfWidth, 0.0f, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
931 viewports.emplace_back(makeViewport(0.0f, halfHeight, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
932 viewports.emplace_back(makeViewport(halfWidth, halfHeight, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
DvktMeshShaderBuiltinTestsEXT.cpp574 const auto halfWidth = width / 2; in verifyResults() local
583 expected = ((x < halfWidth) ? m_topLeft : m_topRight); in verifyResults()
585 expected = ((x < halfWidth) ? m_bottomLeft : m_bottomRight); in verifyResults()
1062 const auto halfWidth = static_cast<float>(extent.width) / 2.0f; in createInstance() local
1072 viewports.emplace_back(makeViewport(0.0f, 0.0f, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
1073 viewports.emplace_back(makeViewport(halfWidth, 0.0f, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
1074 viewports.emplace_back(makeViewport(0.0f, halfHeight, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
1075 viewports.emplace_back(makeViewport(halfWidth, halfHeight, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
DvktMeshShaderMiscTestsEXT.cpp430 const auto halfWidth = iWidth / 2; in generateReferenceLevel() local
442 const float green = ((x < halfWidth) ? 0.0f : 1.0f); in generateReferenceLevel()
677 const auto halfWidth = static_cast<int>(m_params->width / 2u); in generateReferenceLevel() local
681 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
821 const auto halfWidth = static_cast<int>(m_params->width / 2u); in generateReferenceLevel() local
826 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
2274 const auto halfWidth = iWidth / 2; in generateReferenceLevel() local
2286 for (int y = 0; y < halfWidth; ++y) in generateReferenceLevel()
3253 const auto halfWidth = width / 2u; in getQuadrantColors() local
3255 const auto iHalfWidth = static_cast<int>(halfWidth); in getQuadrantColors()
[all …]
DvktMeshShaderSmokeTests.cpp662 const float halfWidth = (1.0 / (width - 1.0)) / 2.0; in initGradientPrograms()
664 const float minGreen = -halfWidth; in initGradientPrograms()
665 const float maxGreen = 1.0+halfWidth; in initGradientPrograms()
DvktMeshShaderMiscTests.cpp425 const auto halfWidth = iWidth / 2; in generateReferenceLevel() local
437 const float green = ((x < halfWidth) ? 0.0f : 1.0f); in generateReferenceLevel()
673 const auto halfWidth = static_cast<int>(m_params->width / 2u); in generateReferenceLevel() local
677 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
816 const auto halfWidth = static_cast<int>(m_params->width / 2u); in generateReferenceLevel() local
821 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
2071 const auto halfWidth = iWidth / 2; in generateReferenceLevel() local
2083 for (int y = 0; y < halfWidth; ++y) in generateReferenceLevel()
/external/skia/src/gpu/graphite/
DDrawParams.h44 float halfWidth() const { return fHalfWidth; } in halfWidth() function
/external/deqp/external/vulkancts/modules/vulkan/clipping/
DvktClippingTests.cpp971 const float halfWidth = lineWidth / float(RENDER_SIZE); in testWideLines() local
987 tcu::Vec4(vertices[vertexNdx0] + lineNormalDir * halfWidth), in testWideLines()
988 tcu::Vec4(vertices[vertexNdx0] - lineNormalDir * halfWidth), in testWideLines()
989 tcu::Vec4(vertices[vertexNdx1] - lineNormalDir * halfWidth), in testWideLines()
990 tcu::Vec4(vertices[vertexNdx1] + lineNormalDir * halfWidth) in testWideLines()
/external/deqp/external/vulkancts/modules/vulkan/wsi/
DvktWsiSwapchainTests.cpp2089 const deUint32 halfWidth = desiredSize.x() / 2; in deviceGroupRenderTest2() local
2093 { { 0, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2()
2094 { { (deInt32)halfWidth, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2()
2095 { { 0, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2()
2096 { { (deInt32)halfWidth, 0 }, { halfWidth, height } } // offset, extent in deviceGroupRenderTest2()
/external/freetype/src/psaux/
Dpshints.c700 CF2_Fixed halfWidth = in cf2_hintmap_insertHint() local
706 firstHintEdge->dsCoord = SUB_INT32( midpoint, halfWidth ); in cf2_hintmap_insertHint()
707 secondHintEdge->dsCoord = ADD_INT32( midpoint, halfWidth ); in cf2_hintmap_insertHint()
/external/skia/src/gpu/ganesh/
DSurfaceDrawContext.cpp1658 const SkScalar halfWidth = 0.5f * stroke.getWidth(); in drawStrokedLine() local
1659 if (halfWidth <= 0.f) { in drawStrokedLine()
1674 parallel *= halfWidth; in drawStrokedLine()

12