Home
last modified time | relevance | path

Searched refs:grad (Results 1 – 25 of 42) sorted by relevance

12

/external/skia/tests/
DShaderOpacityTest.cpp67 SkShader* grad = SkGradientShader::CreateLinear(pts, colors, pos, count, in test_gradient() local
69 REPORTER_ASSERT(reporter, grad); in test_gradient()
70 REPORTER_ASSERT(reporter, grad->isOpaque()); in test_gradient()
71 grad->unref(); in test_gradient()
76 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode); in test_gradient()
77 REPORTER_ASSERT(reporter, grad); in test_gradient()
78 REPORTER_ASSERT(reporter, !grad->isOpaque()); in test_gradient()
79 grad->unref(); in test_gradient()
84 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode); in test_gradient()
85 REPORTER_ASSERT(reporter, grad); in test_gradient()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/estimation/
DGaussNewtonEstimator.java167 double[] grad = new double[parameters.length]; in estimate() local
188 grad[j] = measurements[i].getPartial(parameters[j]); in estimate()
189 bDecrementData[j] = weight * residual * grad[j]; in estimate()
194 double gk = grad[k]; in estimate()
196 wGradGradT.setEntry(k, l, weight * gk * grad[l]); in estimate()
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/general/
DGaussNewtonOptimizer.java84 final double[] grad = jacobian[i]; in doOptimize() local
91 b[j] += wr * grad[j]; in doOptimize()
97 double wgk = weight * grad[k]; in doOptimize()
99 ak[l] += wgk * grad[l]; in doOptimize()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_lower_texture_gradients.cpp95 const glsl_type *grad_type = ir->lod_info.grad.dPdx->type; in visit_leave()
121 emit(dPdx, mul(size, ir->lod_info.grad.dPdx)); in visit_leave()
125 emit(dPdy, mul(size, ir->lod_info.grad.dPdy)); in visit_leave()
Dbrw_fs_visitor.cpp815 for (int i = 0; i < ir->lod_info.grad.dPdx->type->vector_elements; i++) { in emit_texture_gen4()
819 mlen += MAX2(ir->lod_info.grad.dPdx->type->vector_elements, 2); in emit_texture_gen4()
821 for (int i = 0; i < ir->lod_info.grad.dPdy->type->vector_elements; i++) { in emit_texture_gen4()
825 mlen += MAX2(ir->lod_info.grad.dPdy->type->vector_elements, 2); in emit_texture_gen4()
1000 for (int i = 0; i < ir->lod_info.grad.dPdx->type->vector_elements; i++) { in emit_texture_gen5()
1313 ir->lod_info.grad.dPdx->accept(this); in visit()
1316 ir->lod_info.grad.dPdy->accept(this); in visit()
/external/skia/experimental/docs/
DcanvasBackend.js107 var grad = ctx.createRadialGradient(g.cx, g.cy, 0, g.cx, g.cy, g.r);
112 grad.addColorStop(index, color);
114 canvasGradients[gradName] = grad;
/external/skia/gm/
Dglyph_pos_align.cpp28 SkAutoTUnref<SkShader> grad(SkGradientShader::CreateLinear(pts, colors, nullptr, in DEF_SIMPLE_GM_BG() local
31 paint.setShader(grad); in DEF_SIMPLE_GM_BG()
/external/icu/icu4c/source/data/unit/
Dsq.txt41 dnam{"gradë"}
42 one{"{0} gradë"}
43 other{"{0} gradë"}
569 dnam{"gradë Celsius"}
570 one{"{0} gradë Celsius"}
571 other{"{0} gradë Celsius"}
574 dnam{"gradë Farenhait"}
575 one{"{0} gradë Farenhait"}
576 other{"{0} gradë Farenhait"}
1535 dnam{"gradë C"}
[all …]
Dnb.txt42 one{"{0} grad"}
570 one{"{0} grad celsius"}
575 one{"{0} grad fahrenheit"}
Dda.txt42 one{"{0} grad"}
570 one{"{0} grad celsius"}
575 one{"{0} grad fahrenheit"}
/external/mesa3d/src/glsl/
Dir_clone.cpp259 new_tex->lod_info.grad.dPdx = this->lod_info.grad.dPdx->clone(mem_ctx, ht); in clone()
260 new_tex->lod_info.grad.dPdy = this->lod_info.grad.dPdy->clone(mem_ctx, ht); in clone()
Dir_rvalue_visitor.cpp70 handle_rvalue(&ir->lod_info.grad.dPdx); in rvalue_visit()
71 handle_rvalue(&ir->lod_info.grad.dPdy); in rvalue_visit()
Dopt_tree_grafting.cpp288 if (do_graft(&ir->lod_info.grad.dPdx) || in visit_enter()
289 do_graft(&ir->lod_info.grad.dPdy)) in visit_enter()
Dir_hv_accept.cpp230 s = this->lod_info.grad.dPdx->accept(v); in accept()
234 s = this->lod_info.grad.dPdy->accept(v); in accept()
Dir_print_visitor.cpp291 ir->lod_info.grad.dPdx->accept(this); in visit()
293 ir->lod_info.grad.dPdy->accept(this); in visit()
Dir_reader.cpp1033 tex->lod_info.grad.dPdx = read_rvalue(s_dx); in read_texture()
1034 if (tex->lod_info.grad.dPdx == NULL) { in read_texture()
1038 tex->lod_info.grad.dPdy = read_rvalue(s_dy); in read_texture()
1039 if (tex->lod_info.grad.dPdy == NULL) { in read_texture()
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
Dpitch_estimator.c484 double grad[4]; in WebRtcIsac_PitchAnalysis() local
536 grad[k] = tmp * Wnrg; in WebRtcIsac_PitchAnalysis()
552 grad[k] += tmp * Wfluct; in WebRtcIsac_PitchAnalysis()
563 grad[k] += tmp * tmp * Wgain; in WebRtcIsac_PitchAnalysis()
567 grad[3] += 1.33 * (tmp * tmp * Wgain); in WebRtcIsac_PitchAnalysis()
587 dG[k] = -grad[k]; in WebRtcIsac_PitchAnalysis()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
DNoiseGenerator.java655 …eMath.lerp(floorZ, NoiseMath.lerp(floorY, NoiseMath.lerp(floorX, NoiseMath.grad(hash[AA], x, y, z), in newPerlin()
656 NoiseMath.grad(hash[BA], x - 1, y, z)), in newPerlin()
657 NoiseMath.lerp(floorX, NoiseMath.grad(hash[AB], x, y - 1, z), in newPerlin()
658 NoiseMath.grad(hash[BB], x - 1, y - 1, z))), in newPerlin()
659 … NoiseMath.lerp(floorY, NoiseMath.lerp(floorX, NoiseMath.grad(hash[AA + 1], x, y, z - 1), in newPerlin()
660 NoiseMath.grad(hash[BA + 1], x - 1, y, z - 1)), in newPerlin()
661 NoiseMath.lerp(floorX, NoiseMath.grad(hash[AB + 1], x, y - 1, z - 1), in newPerlin()
662 NoiseMath.grad(hash[BB + 1], x - 1, y - 1, z - 1)))); in newPerlin()
824 public static float grad(int hash, float x, float y, float z) { in grad() method in NoiseGenerator.NoiseMath
/external/mesa3d/src/mesa/program/
Dprog_noise.c152 float grad = 1.0f + (h & 7); /* Gradient value 1.0, 2.0, ..., 8.0 */ in grad1() local
154 grad = -grad; /* Set a random sign for the gradient */ in grad1()
155 return (grad * x); /* Multiply the gradient with the distance */ in grad1()
/external/skia/experimental/SkPerlinNoiseShader2/
DSkPerlinNoiseShader2.cpp495 static SkScalar grad(int hash, SkScalar x, SkScalar y, SkScalar z) { in grad() function
529 result += lerp(w, lerp(v, lerp(u, grad(permutations[AA ], px , py , pz ), in calculateImprovedNoiseValueForPoint()
530 grad(permutations[BA ], px - 1, py , pz )), in calculateImprovedNoiseValueForPoint()
531 lerp(u, grad(permutations[AB ], px , py - 1, pz ), in calculateImprovedNoiseValueForPoint()
532 grad(permutations[BB ], px - 1, py - 1, pz ))), in calculateImprovedNoiseValueForPoint()
533 lerp(v, lerp(u, grad(permutations[AA + 1], px , py , pz - 1), in calculateImprovedNoiseValueForPoint()
534 grad(permutations[BA + 1], px - 1, py , pz - 1)), in calculateImprovedNoiseValueForPoint()
535 lerp(u, grad(permutations[AB + 1], px , py - 1, pz - 1), in calculateImprovedNoiseValueForPoint()
536 grad(permutations[BB + 1], px - 1, py - 1, pz - 1)))) / in calculateImprovedNoiseValueForPoint()
/external/skia/resources/
Dslides.lua298 local grad = Sk.newLinearGradient( 0, 0, { a=1, r=0, g=0, b=.3 },
300 bgPaint:setShader(grad)
/external/llvm/include/llvm/IR/
DIntrinsicsNVVM.td1067 "llvm.nvvm.tex.1d.grad.v4f32.f32">;
1084 "llvm.nvvm.tex.1d.grad.v4s32.f32">;
1101 "llvm.nvvm.tex.1d.grad.v4u32.f32">;
1120 "llvm.nvvm.tex.1d.array.grad.v4f32.f32">;
1138 "llvm.nvvm.tex.1d.array.grad.v4s32.f32">;
1156 "llvm.nvvm.tex.1d.array.grad.v4u32.f32">;
1175 "llvm.nvvm.tex.2d.grad.v4f32.f32">;
1193 "llvm.nvvm.tex.2d.grad.v4s32.f32">;
1211 "llvm.nvvm.tex.2d.grad.v4u32.f32">;
1233 "llvm.nvvm.tex.2d.array.grad.v4f32.f32">;
[all …]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/basis/
DImprovedNoise.java89 static float grad(final int hash, final float x, final float y, final float z) { in grad() method in ImprovedNoise
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletDynamics/ConstraintSolver/
DbtConeTwistConstraint.cpp968 btScalar grad = y/z; in adjustSwingAxisToUseEllipseNormal() local
969 grad *= m_swingSpan2 / m_swingSpan1; in adjustSwingAxisToUseEllipseNormal()
973 y = fabs(grad * z); in adjustSwingAxisToUseEllipseNormal()
975 y = -fabs(grad * z); in adjustSwingAxisToUseEllipseNormal()
/external/llvm/lib/Target/NVPTX/
DNVPTXIntrinsics.td1971 "tex.grad.1d.v4.f32.f32\t\\{$r, $g, $b, $a\\}, "
1999 "tex.grad.1d.v4.s32.f32\t\\{$r, $g, $b, $a\\}, "
2027 "tex.grad.1d.v4.u32.f32\t\\{$r, $g, $b, $a\\}, "
2058 "tex.grad.a1d.v4.f32.f32\t\\{$r, $g, $b, $a\\}, "
2088 "tex.grad.a1d.v4.s32.f32\t\\{$r, $g, $b, $a\\}, "
2118 "tex.grad.a1d.v4.u32.f32\t\\{$r, $g, $b, $a\\}, "
2150 "tex.grad.2d.v4.f32.f32\t\\{$r, $g, $b, $a\\}, "
2182 "tex.grad.2d.v4.s32.f32\t\\{$r, $g, $b, $a\\}, "
2214 "tex.grad.2d.v4.u32.f32\t\\{$r, $g, $b, $a\\}, "
2249 "tex.grad.a2d.v4.f32.f32\t\\{$r, $g, $b, $a\\}, "
[all …]

12