/external/skia/tests/ |
ShaderOpacityTest.cpp | 61 auto grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); local 62 REPORTER_ASSERT(reporter, grad); 63 REPORTER_ASSERT(reporter, grad->isOpaque()); 68 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); 69 REPORTER_ASSERT(reporter, grad); 70 REPORTER_ASSERT(reporter, !grad->isOpaque()); 75 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); 76 REPORTER_ASSERT(reporter, grad); 77 REPORTER_ASSERT(reporter, !grad->isOpaque()); 82 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
grad.rs | 106 UPointData* grad = &grads[i]; 107 float t = clamp(x*grad->dx+y*grad->dy+grad->off,0.f,1.0f); 109 t*(rsMatrixMultiply(&grad->colorMatrix ,wsum.xyz)+grad->rgbOff);
|
FilterGradRepresentation.java | 39 private static final String SERIALIZATION_NAME = "grad"; 42 super("Grad"); 47 setTextId(R.string.grad);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/general/ |
GaussNewtonOptimizer.java | 84 final double[] grad = jacobian[i]; local 91 b[j] += wr * grad[j]; 97 double wgk = weight * grad[k]; 99 ak[l] += wgk * grad[l];
|
/system/core/libpixelflinger/ |
pixelflinger.cpp | 227 static void ggl_colorGrad12xv(void* con, const GGLcolor* grad) 235 c->shade.r0 = grad[ 0] + round; 236 c->shade.drdx = grad[ 1]; 237 c->shade.drdy = grad[ 2]; 238 c->shade.g0 = grad[ 3] + round; 239 c->shade.dgdx = grad[ 4]; 240 c->shade.dgdy = grad[ 5]; 241 c->shade.b0 = grad[ 6] + round; 242 c->shade.dbdx = grad[ 7]; 243 c->shade.dbdy = grad[ 8] [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/estimation/ |
GaussNewtonEstimator.java | 167 double[] grad = new double[parameters.length]; local 188 grad[j] = measurements[i].getPartial(parameters[j]); 189 bDecrementData[j] = weight * residual * grad[j]; 194 double gk = grad[k]; 196 wGradGradT.setEntry(k, l, weight * gk * grad[l]);
|
/external/mesa3d/src/compiler/glsl/ |
ir_equals.cpp | 173 if (!lod_info.grad.dPdx->equals(other->lod_info.grad.dPdx, ignore) || 174 !lod_info.grad.dPdy->equals(other->lod_info.grad.dPdy, ignore))
|
ir_clone.cpp | 238 new_tex->lod_info.grad.dPdx = this->lod_info.grad.dPdx->clone(mem_ctx, ht); 239 new_tex->lod_info.grad.dPdy = this->lod_info.grad.dPdy->clone(mem_ctx, ht);
|
ir_rvalue_visitor.cpp | 76 handle_rvalue(&ir->lod_info.grad.dPdx); 77 handle_rvalue(&ir->lod_info.grad.dPdy);
|
opt_tree_grafting.cpp | 295 if (do_graft(&ir->lod_info.grad.dPdx) || 296 do_graft(&ir->lod_info.grad.dPdy))
|
ir_hv_accept.cpp | 218 s = this->lod_info.grad.dPdx->accept(v); 222 s = this->lod_info.grad.dPdy->accept(v);
|
ir_print_visitor.cpp | 356 ir->lod_info.grad.dPdx->accept(this); 358 ir->lod_info.grad.dPdy->accept(this);
|
ir_reader.cpp | [all...] |
/external/libopus/src/ |
mlp_train.c | 164 float grad = 1-netOut[i]*netOut[i]; local 165 W1_grad[i*(hiddenDim+1)] += error[i]*grad; 167 W1_grad[i*(hiddenDim+1)+j+1] += grad*error[i]*hidden[j]; 171 double grad; local 172 grad = 0; 174 grad += error[j]*W1[j*(hiddenDim+1)+i+1]; 175 grad *= 1-hidden[i]*hidden[i]; 176 W0_grad[i*(inDim+1)] += grad; 178 W0_grad[i*(inDim+1)+j+1] += grad*in[j];
|
/external/skia/experimental/docs/ |
canvasBackend.js | 107 var grad = ctx.createRadialGradient(g.cx, g.cy, 0, g.cx, g.cy, g.r); 112 grad.addColorStop(index, color); 114 canvasGradients[gradName] = grad;
|
/system/core/libpixelflinger/include/pixelflinger/ |
pixelflinger.h | 233 void (*colorGrad12xv)(void* c, const GGLcolor* grad); 236 void (*zGrad3xv)(void* c, const GGLfixed32* grad); 239 void (*wGrad3xv)(void* c, const GGLfixed* grad); 242 void (*fogGrad3xv)(void* c, const GGLfixed* grad);
|
/external/skia/gm/ |
vertices.cpp | 25 sk_sp<SkShader> grad = SkGradientShader::MakeLinear(pts, colors, nullptr, local 31 ? grad 33 sk_make_sp<SkLocalMatrixShader>(std::move(grad), SkMatrix::MakeTrans(-10, 0)),
|
/external/mesa3d/src/gallium/drivers/r600/sb/ |
sb_bc_parser.cpp | 605 vvec *grad = NULL; local 609 grad = &grad_v; 612 grad = &grad_h; 615 grad = &texture_offsets; 622 if (grad->empty()) 623 grad->resize(4); 628 (*grad)[s] = sh->get_gpr_value(true, n->bc.src_gpr, 631 (*grad)[s] = sh->get_const_value(0.0f); 633 (*grad)[s] = sh->get_const_value(1.0f);
|
/prebuilts/ndk/r13/sources/third_party/shaderc/third_party/glslang/glslang/Include/ |
intermediate.h | 759 bool grad; member in struct:glslang::TCrackedTextureOp 790 cracked.grad = false; 860 cracked.grad = true; 864 cracked.grad = true; 869 cracked.grad = true; 873 cracked.grad = true; 877 cracked.grad = true; 883 cracked.grad = true; [all...] |
/external/mesa3d/src/mesa/program/ |
prog_noise.c | 152 float grad = 1.0f + (h & 7); /* Gradient value 1.0, 2.0, ..., 8.0 */ local 154 grad = -grad; /* Set a random sign for the gradient */ 155 return (grad * x); /* Multiply the gradient with the distance */
|
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/ |
pitch_estimator.c | 484 double grad[4]; local 536 grad[k] = tmp * Wnrg; 552 grad[k] += tmp * Wfluct; 563 grad[k] += tmp * tmp * Wgain; 567 grad[3] += 1.33 * (tmp * tmp * Wgain); 584 /* Compute update as delta_gains = -inv(H) * grad */ 587 dG[k] = -grad[k];
|
/external/skia/src/shaders/ |
SkPerlinNoiseShader.cpp | 544 static SkScalar grad(int hash, SkScalar x, SkScalar y, SkScalar z) { 578 result += lerp(w, lerp(v, lerp(u, grad(permutations[AA ], px , py , pz ), 579 grad(permutations[BA ], px - 1, py , pz )), 580 lerp(u, grad(permutations[AB ], px , py - 1, pz ), 581 grad(permutations[BB ], px - 1, py - 1, pz ))), 582 lerp(v, lerp(u, grad(permutations[AA + 1], px , py , pz - 1), 583 grad(permutations[BA + 1], px - 1, py , pz - 1)), 584 lerp(u, grad(permutations[AB + 1], px , py - 1, pz - 1), 585 grad(permutations[BB + 1], px - 1, py - 1, pz - 1)))) / [all...] |
/external/skia/resources/ |
slides.lua | 298 local grad = Sk.newLinearGradient( 0, 0, { a=1, r=0, g=0, b=.3 }, 300 bgPaint:setShader(grad)
|
/prebuilts/ndk/r13/sources/third_party/shaderc/third_party/glslang/glslang/MachineIndependent/ |
Initialize.cpp | [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
EditorGrad.java | 127 view.setText(mContext.getString(R.string.grad));
|