/third_party/skia/tests/ |
H A D | ShaderOpacityTest.cpp | 61 auto grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient() local 62 REPORTER_ASSERT(reporter, grad); in test_gradient() 63 REPORTER_ASSERT(reporter, grad->isOpaque()); in test_gradient() 68 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient() 69 REPORTER_ASSERT(reporter, grad); in test_gradient() 70 REPORTER_ASSERT(reporter, !grad->isOpaque()); in test_gradient() 75 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient() 76 REPORTER_ASSERT(reporter, grad); in test_gradient() 77 REPORTER_ASSERT(reporter, !grad->isOpaque()); in test_gradient() 82 grad in test_gradient() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_blockdetect.c | 84 float *grad, int grad_linesize, in calculate_blockiness() 103 grad[j * grad_linesize + i] = in calculate_blockiness() 112 grad[j * grad_linesize + i] /= temp; in calculate_blockiness() 115 grad[i] += grad[j * grad_linesize + i]; in calculate_blockiness() 128 block += FFMAX(FFMAX(grad[i + 0], grad[i + 1]), grad[i - 1]); in calculate_blockiness() 131 nonblock += grad[i]; in calculate_blockiness() 146 grad[ in calculate_blockiness() 83 calculate_blockiness(BLKContext *s, int w, int h, float *grad, int grad_linesize, uint8_t* src, int src_linesize) calculate_blockiness() argument [all...] |
H A D | vsrc_testsrc.c | 562 int grad, dgrad, rgrad, drgrad; in test_fill_picture() local 603 grad = (256 * test->nb_frame * test->time_base.num / test->time_base.den) % in test_fill_picture() 610 grad < 256 || grad >= 5 * 256 ? 255 : in test_fill_picture() 611 grad >= 2 * 256 && grad < 4 * 256 ? 0 : in test_fill_picture() 612 grad < 2 * 256 ? 2 * 256 - 1 - grad : grad - 4 * 256; in test_fill_picture() 614 grad > in test_fill_picture() [all...] |
/third_party/skia/modules/skottie/src/layers/shapelayer/ |
H A D | Gradient.cpp | 71 auto* grad = static_cast<sksg::LinearGradient*>(fGradient.get()); variable 72 grad->setStartPoint(s_point); 73 grad->setEndPoint(e_point); 78 auto* grad = static_cast<sksg::RadialGradient*>(fGradient.get()); variable 79 grad->setStartCenter(s_point); 80 grad->setEndCenter(s_point); 81 grad->setStartRadius(0); 82 grad->setEndRadius(SkPoint::Distance(s_point, e_point));
|
/third_party/mesa3d/src/compiler/glsl/ |
H A D | ir_equals.cpp | 179 if (!lod_info.grad.dPdx->equals(other->lod_info.grad.dPdx, ignore) || in equals() 180 !lod_info.grad.dPdy->equals(other->lod_info.grad.dPdy, ignore)) in equals()
|
H A D | ir_clone.cpp | 248 new_tex->lod_info.grad.dPdx = this->lod_info.grad.dPdx->clone(mem_ctx, ht); in clone() 249 new_tex->lod_info.grad.dPdy = this->lod_info.grad.dPdy->clone(mem_ctx, ht); in clone()
|
H A D | ir_rvalue_visitor.cpp | 77 handle_rvalue(&ir->lod_info.grad.dPdx); in rvalue_visit() 78 handle_rvalue(&ir->lod_info.grad.dPdy); in rvalue_visit()
|
H A D | opt_tree_grafting.cpp | 295 if (do_graft(&ir->lod_info.grad.dPdx) || in visit_enter() 296 do_graft(&ir->lod_info.grad.dPdy)) in visit_enter()
|
H A D | ir_hv_accept.cpp | 224 s = this->lod_info.grad.dPdx->accept(v); in accept() 228 s = this->lod_info.grad.dPdy->accept(v); in accept()
|
H A D | ir_reader.cpp | 1137 tex->lod_info.grad.dPdx = read_rvalue(s_dx); in read_texture() 1138 if (tex->lod_info.grad.dPdx == NULL) { in read_texture() 1142 tex->lod_info.grad.dPdy = read_rvalue(s_dy); in read_texture() 1143 if (tex->lod_info.grad.dPdy == NULL) { in read_texture()
|
H A D | ir_print_visitor.cpp | 382 ir->lod_info.grad.dPdx->accept(this); in visit() 384 ir->lod_info.grad.dPdy->accept(this); in visit()
|
H A D | glsl_to_nir.cpp | 2589 nir_src_for_ssa(evaluate_rvalue(ir->lod_info.grad.dPdx)); in visit() 2593 nir_src_for_ssa(evaluate_rvalue(ir->lod_info.grad.dPdy)); in visit()
|
/third_party/skia/gm/ |
H A D | crbug_938592.cpp | 30 auto grad = SkGradientShader::MakeLinear(pts, colors, pos, 6, SkTileMode::kClamp); in DEF_SIMPLE_GM() local 32 paint.setShader(grad); in DEF_SIMPLE_GM()
|
H A D | vertices.cpp | 46 sk_sp<SkShader> grad = SkGradientShader::MakeLinear(pts, colors, nullptr, in make_shader1() local 52 ? grad in make_shader1() 54 sk_make_sp<SkLocalMatrixShader>(std::move(grad), SkMatrix::Translate(-10, 0)), in make_shader1()
|
H A D | drawimageset.cpp | 48 auto grad = SkGradientShader::MakeLinear(pts1, colors, nullptr, 2, SkTileMode::kClamp); in make_image_tiles() local 49 paint.setShader(std::move(grad)); in make_image_tiles() 61 grad = SkGradientShader::MakeLinear(pts2, colors + 2, nullptr, 2, SkTileMode::kClamp); in make_image_tiles() 62 paint.setShader(std::move(grad)); in make_image_tiles()
|
/third_party/skia/experimental/docs/ |
H A D | 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;
|
/third_party/glslang/glslang/Include/ |
H A D | intermediate.h | 1403 bool grad; member 1454 cracked.grad = false; in crackTexture() 1517 cracked.grad = true; in crackTexture() 1521 cracked.grad = true; in crackTexture() 1525 cracked.grad = true; in crackTexture() 1529 cracked.grad = true; in crackTexture() 1544 cracked.grad = true; in crackTexture() 1549 cracked.grad = true; in crackTexture() 1606 cracked.grad = true; in crackTexture() 1610 cracked.grad in crackTexture() [all...] |
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
H A D | sfn_nir_lower_tex.cpp | 179 nir_ssa_def *grad = nir_fmul(b, lambda_exp, scale); in lower_txl_txf_array_or_cube() local 187 nir_tex_instr_add_src(tex, nir_tex_src_ddx, nir_src_for_ssa(grad)); in lower_txl_txf_array_or_cube() 188 nir_tex_instr_add_src(tex, nir_tex_src_ddy, nir_src_for_ssa(grad)); in lower_txl_txf_array_or_cube()
|
H A D | sfn_shader_fs.cpp | 841 auto grad = vf.temp_vec4(pin_group); in load_barycentric_at_sample() local 848 auto tex = new TexInstr(TexInstr::get_gradient_h, grad, {0, 1, 7, 7}, interp, 0, 0); in load_barycentric_at_sample() 856 tex = new TexInstr(TexInstr::get_gradient_v, grad, {7,7,0,1}, interp, 0, 0); in load_barycentric_at_sample() 867 emit_instruction(new AluInstr(op3_muladd, tmp0, grad[0], slope[2], interpolator.j, {alu_write})); in load_barycentric_at_sample() 868 emit_instruction(new AluInstr(op3_muladd, tmp1, grad[1], slope[2], interpolator.i, {alu_write, alu_last_instr})); in load_barycentric_at_sample() 870 emit_instruction(new AluInstr(op3_muladd, vf.dest(instr->dest, 0, pin_none), grad[3], slope[3], tmp1, {alu_write})); in load_barycentric_at_sample() 871 emit_instruction(new AluInstr(op3_muladd, vf.dest(instr->dest, 1, pin_none), grad[2], slope[3], tmp0, {alu_write, alu_last_instr})); in load_barycentric_at_sample()
|
/third_party/mesa3d/src/gallium/drivers/r600/sb/ |
H A D | sb_bc_parser.cpp | 675 vvec *grad = NULL; in prepare_fetch_clause() local 679 grad = &grad_v; in prepare_fetch_clause() 682 grad = &grad_h; in prepare_fetch_clause() 685 grad = &texture_offsets; in prepare_fetch_clause() 692 if (grad->empty()) in prepare_fetch_clause() 693 grad->resize(4); in prepare_fetch_clause() 698 (*grad)[s] = sh->get_gpr_value(true, n->bc.src_gpr, in prepare_fetch_clause() 701 (*grad)[s] = sh->get_const_value(0.0f); in prepare_fetch_clause() 703 (*grad)[s] = sh->get_const_value(1.0f); in prepare_fetch_clause()
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | SpirvShaderSampling.cpp | 182 for(uint32_t j = 0; j < instruction.grad; j++, i++) in emitSamplerRoutine() 187 for(uint32_t j = 0; j < instruction.grad; j++, i++) in emitSamplerRoutine()
|
H A D | SpirvShaderImage.cpp | 194 grad = spirv.getObjectType(gradDxId).componentCount; in ImageInstruction() 238 bool grad = imageOperands & spv::ImageOperandsGradMask; in parseVariantAndMethod() local 243 case spv::OpImageSampleExplicitLod: return { None, grad ? Grad : Lod }; in parseVariantAndMethod() 245 case spv::OpImageSampleDrefExplicitLod: return { Dref, grad ? Grad : Lod }; in parseVariantAndMethod() 247 case spv::OpImageSampleProjExplicitLod: return { Proj, grad ? Grad : Lod }; in parseVariantAndMethod() 249 case spv::OpImageSampleProjDrefExplicitLod: return { ProjDref, grad ? Grad : Lod }; in parseVariantAndMethod()
|
/third_party/mesa3d/src/microsoft/compiler/ |
H A D | dxil_nir_lower_int_samplers.c | 348 nir_ssa_def *grad = nir_fmax(b, in evalute_active_lod() local 352 nir_ssa_def *r = nir_fmul(b, grad, nir_i2f32(b, params->size)); in evalute_active_lod()
|
/third_party/weex-loader/deps/weex-styler/lib/ |
H A D | validator.js | 212 var SUPPORT_CSS_ANGLE_UNIT = ["deg", "rad", "grad", "turn"]
|
/third_party/glslang/glslang/MachineIndependent/ |
H A D | Initialize.cpp | 6780 for (int grad = 0; grad <= 1; ++grad) { // loop over "bool" grad or not in addSamplingFunctions() 6782 if (grad && (lod || bias || sampler.isMultiSample() || !sampler.isCombined())) in addSamplingFunctions() 6784 if (grad && sampler.isBuffer()) in addSamplingFunctions() 6786 if (proj + offset + fetch + grad + bias + lod > 3) in addSamplingFunctions() 6868 if (grad) in addSamplingFunctions() 6917 if (grad) { in addSamplingFunctions() 6976 if (!grad in addSamplingFunctions() [all...] |