/third_party/ffmpeg/libavcodec/ |
H A D | ituh263dec.c | 447 int x, y, wrap, a, c, pred_dc, scale; in h263_pred_acdc() local 457 scale = s->y_dc_scale; in h263_pred_acdc() 464 scale = s->c_dc_scale; in h263_pred_acdc() 514 block[0] = block[0] * scale + pred_dc; in h263_pred_acdc()
|
H A D | vc1.c | 571 int scale, shift, i; \ 573 scale = -64; \ 578 scale = lumscale + 32; \ 587 luty[i] = av_clip_uint8((scale * iy + shift + 32) >> 6); \ 588 lutuv[i] = av_clip_uint8((scale * (iu - 128) + 128*64 + 32) >> 6);\
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_paletteuse.c | 118 { "bayer_scale", "set scale for bayer dithering", OFFSET(bayer_scale), AV_OPT_TYPE_INT, {.i64=2}, 0, 5, FLAGS }, 157 int eb, int scale, int shift) in dither_color() 160 | av_clip_uint8((px >> 16 & 0xff) + ((er * scale) / (1<<shift))) << 16 in dither_color() 161 | av_clip_uint8((px >> 8 & 0xff) + ((eg * scale) / (1<<shift))) << 8 in dither_color() 162 | av_clip_uint8((px & 0xff) + ((eb * scale) / (1<<shift))); in dither_color() 156 dither_color(uint32_t px, int er, int eg, int eb, int scale, int shift) dither_color() argument
|
/third_party/node/deps/v8/src/codegen/mips64/ |
H A D | macro-assembler-mips64.h | 510 void SmiScale(Register dst, Register src, int scale) { in SmiScale() argument 513 dsra(dst, src, kSmiShift - scale); in SmiScale() 516 DCHECK_GE(scale, kSmiTagSize); in SmiScale() 517 sll(dst, src, scale - kSmiTagSize); in SmiScale()
|
/third_party/node/deps/v8/src/codegen/riscv64/ |
H A D | macro-assembler-riscv64.h | 1253 void SmiScale(Register dst, Register src, int scale) { in SmiScale() argument 1256 srai(dst, src, (kSmiShift - scale) & 0x3F); in SmiScale() 1259 DCHECK_GE(scale, kSmiTagSize); in SmiScale() 1260 slliw(dst, src, scale - kSmiTagSize); in SmiScale()
|
/third_party/mesa3d/src/gallium/drivers/asahi/ |
H A D | agx_state.c | 651 float abs_scale_x = fabsf(vp->scale[0]), abs_scale_y = fabsf(vp->scale[1]); in agx_upload_viewport_scissor() 654 * the viewport is an odd number of pixels, both the translate and the scale in agx_upload_viewport_scissor() 683 cfg.scale_x = vp->scale[0]; in agx_upload_viewport_scissor() 684 cfg.scale_y = vp->scale[1]; in agx_upload_viewport_scissor()
|
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
H A D | glcCompressedFormatTests.cpp | 218 "uniform highp vec4 scale;\n" 224 " out_color = texture(sampler, v_texCoord) * scale + offset;\n" 230 Vec4 scale; member 304 m_scaleLoc = gl.getUniformLocation(program, "scale"); in init() 1586 gl.uniform4fv(m_data->scaleLoc(), 1, defaultOffset.scale.getPtr()); in iterate() 1621 gl.uniform4fv(m_data->scaleLoc(), 1, defaultOffset.scale.getPtr()); in iterate() 1629 gl.uniform4fv(m_data->scaleLoc(), 1, offset.scale.getPtr()); in iterate()
|
/third_party/skia/src/gpu/geometry/ |
H A D | GrQuadUtils.cpp | 256 // Don't scale anything in barycentric_coords() 304 // These are relative to the vertices, so there's no need to undo the scale factor in barycentric_coords() 1080 V4f scale = if_then_else(fW < 0.f, V4f(-1.f), V4f(1.f)); 1081 fX *= scale; 1082 fY *= scale; 1083 fW *= scale;
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
H A D | IceAssemblerX8632.h | 75 ScaleFactor scale() const { in scale() function in Ice::X8632::AsmOperand 104 void SetSIB(ScaleFactor scale, GPRRegister index, GPRRegister base) { in SetSIB() argument 106 assert((scale & ~3) == 0); in SetSIB() 107 encoding_[1] = (scale << 6) | (index << 3) | base; in SetSIB()
|
H A D | IceAssemblerX8664.h | 85 ScaleFactor scale() const { in scale() function in Ice::X8664::AsmOperand 114 void SetSIB(ScaleFactor scale, GPRRegister index, GPRRegister base) { in SetSIB() argument 116 assert((scale & ~3) == 0); in SetSIB() 117 encoding_[1] = (scale << 6) | ((index & 0x07) << 3) | (base & 0x07); in SetSIB()
|
/third_party/skia/fuzz/ |
H A D | FuzzCanvas.cpp | 606 SkScalar scale; in make_fuzz_imageFilter() local 608 fuzz->next(&scale, &useCropRect); in make_fuzz_imageFilter() 615 return SkImageFilters::DisplacementMap(xChannelSelector, yChannelSelector, scale, in make_fuzz_imageFilter() 1106 canvas->scale(x, y);
|
/third_party/backends/backend/ |
H A D | mustek.c | 3575 SANE_Int color, pixel, res, half_res, scale; in fix_line_distance_se() local 3690 scale = 0; in fix_line_distance_se() 3699 scale += half_res; in fix_line_distance_se() 3700 if (scale >= half_res) in fix_line_distance_se() 3702 scale -= res; in fix_line_distance_se() 3726 scale += res; in fix_line_distance_se() 3727 if (scale >= max_value) in fix_line_distance_se() 3729 scale -= max_value; in fix_line_distance_se() 3762 scale = 0; in fix_line_distance_se() 3773 scale in fix_line_distance_se() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/ |
H A D | image_source_test.cpp | 2071 float scale = 0;
in HWTEST_F() local 2072 ret = imageSource->SetGainMapDecodeOption(decoder, plInfo, scale);
in HWTEST_F() 2079 bool result = imageSource->DecodeJpegGainMap(hdrType, scale, gainMapCtx, metadata);
in HWTEST_F() 2098 float scale = 0;
in HWTEST_F() local 2100 bool ret = imageSource->ApplyGainMap(hdrType, baseCtx, hdrCtx, scale);
in HWTEST_F()
|
/kernel/linux/linux-5.10/sound/soc/ |
H A D | soc-topology.c | 699 struct snd_kcontrol_new *kc, struct snd_soc_tplg_tlv_dbscale *scale) in soc_tplg_create_tlv_db_scale() 710 p[2] = le32_to_cpu(scale->min); in soc_tplg_create_tlv_db_scale() 711 p[3] = (le32_to_cpu(scale->step) & TLV_DB_SCALE_MASK) in soc_tplg_create_tlv_db_scale() 712 | (le32_to_cpu(scale->mute) ? TLV_DB_SCALE_MUTE : 0); in soc_tplg_create_tlv_db_scale() 732 &tplg_tlv->scale); in soc_tplg_create_tlv() 698 soc_tplg_create_tlv_db_scale(struct soc_tplg *tplg, struct snd_kcontrol_new *kc, struct snd_soc_tplg_tlv_dbscale *scale) soc_tplg_create_tlv_db_scale() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
H A D | intel_panel.c | 375 /* Aspects match, Let hw scale both directions */ in i9xx_scale_aspect() 459 * scale - scale values from one range to another 469 static u32 scale(u32 source_val, in scale() function 498 hw_level = scale(user_level, 0, user_max, 0, panel->backlight.max); in clamp_user_to_hw() 510 return scale(hw_level, panel->backlight.min, panel->backlight.max, in scale_hw_to_user() 1253 return scale(user_level, 0, user_max, in scale_user_to_hw() 1612 return scale(min, 0, 255, 0, panel->backlight.max); in get_backlight_min_vbt()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | synthetic-events.c | 1377 ADD(SCALE, config->scale) in perf_event__synthesize_stat_config() 2000 ev->scale.scale = evsel->scale; in perf_event__synthesize_event_update_scale() 2071 return evsel->scale != 1; in has_scale() 2082 * attr event - unit, scale, name in perf_event__synthesize_extra_attr() 2089 * Synthesize unit and scale only if it's defined. in perf_event__synthesize_extra_attr()
|
/kernel/linux/linux-6.6/sound/soc/ |
H A D | soc-topology.c | 601 struct snd_kcontrol_new *kc, struct snd_soc_tplg_tlv_dbscale *scale) in soc_tplg_create_tlv_db_scale() 612 p[2] = le32_to_cpu(scale->min); in soc_tplg_create_tlv_db_scale() 613 p[3] = (le32_to_cpu(scale->step) & TLV_DB_SCALE_MASK) in soc_tplg_create_tlv_db_scale() 614 | (le32_to_cpu(scale->mute) ? TLV_DB_SCALE_MUTE : 0); in soc_tplg_create_tlv_db_scale() 634 &tplg_tlv->scale); in soc_tplg_create_tlv() 600 soc_tplg_create_tlv_db_scale(struct soc_tplg *tplg, struct snd_kcontrol_new *kc, struct snd_soc_tplg_tlv_dbscale *scale) soc_tplg_create_tlv_db_scale() argument
|
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_fs_generator.cpp | 231 int scale = brw_jump_scale(p->devinfo); in patch_halt_jumps() local 246 brw_inst_set_uip(p->devinfo, last_halt, 1 * scale); in patch_halt_jumps() 247 brw_inst_set_jip(p->devinfo, last_halt, 1 * scale); in patch_halt_jumps() 258 brw_inst_set_uip(p->devinfo, patch, (ip - patch_ip->ip) * scale); in patch_halt_jumps() 260 brw_set_src1(p, patch, brw_imm_d((ip - patch_ip->ip) * scale)); in patch_halt_jumps()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
H A D | nv50_surface.c | 969 struct ureg_src scale; in nv50_blitter_make_fp() local 981 scale = ureg_imm4f(ureg, in nv50_blitter_make_fp() 1000 ureg_MUL(ureg, outs, ssrc, ureg_scalar(scale, TGSI_SWIZZLE_X)); in nv50_blitter_make_fp() 1004 ureg_MUL(ureg, zdst, zsrc, ureg_scalar(scale, TGSI_SWIZZLE_W)); in nv50_blitter_make_fp() 1008 ureg_MUL(ureg, zdst3, zsrc3, scale); in nv50_blitter_make_fp() 1452 * arranged in a way to yield the desired offset and scale. in nv50_blit_3d()
|
/third_party/node/deps/v8/src/interpreter/ |
H A D | interpreter-generator.cc | 45 Bytecode bytecode, OperandScale scale) \ 46 : BaseAssembler(state, bytecode, scale) {} \ 50 OperandScale scale); \ 56 OperandScale scale) { \ 57 Name##Assembler assembler(state, Bytecode::k##Name, scale); \
|
/third_party/skia/dm/ |
H A D | DMSrcSink.cpp | 158 static SkString get_scaled_name(const Path& path, float scale) { in get_scaled_name() argument 159 return SkStringPrintf("%s_%.3f", SkOSPath::Basename(path.c_str()).c_str(), scale); in get_scaled_name() 355 float scale) in CodecSrc() 360 , fScale(scale) in CodecSrc() 450 // Try to scale the image if it is desired in draw() 747 // And scale in draw() 1321 // Used to force-scale tiny fixed-size images. 1359 canvas->scale(fScale, fScale); in draw() 2265 // Undoes any flip or 90 degree rotate without changing the scale of the bitmap. 354 CodecSrc(Path path, Mode mode, DstColorType dstColorType, SkAlphaType dstAlphaType, float scale) CodecSrc() argument
|
/third_party/node/deps/v8/src/compiler/backend/x64/ |
H A D | instruction-selector-x64.cc | 220 m.index(), m.scale(), m.base(), m.displacement(), in GetEffectiveAddressMemoryOperand() 226 // modes for the scale. in GetEffectiveAddressMemoryOperand() 227 return GenerateMemoryOperandInputs(m.index(), m.scale(), m.displacement(), in GetEffectiveAddressMemoryOperand() 984 Node* result, Node* index, int scale, Node* base, in EmitLea() 991 g.GenerateMemoryOperandInputs(index, scale, base, displacement, in EmitLea() 1012 EmitLea(this, kX64Lea32, node, index, m.scale(), base, nullptr, in VisitWord32Shl() 1025 EmitLea(this, kX64Lea, node, index, m.scale(), base, nullptr, in VisitWord64Shl() 1223 EmitLea(this, kX64Lea32, node, m.index(), m.scale(), m.base(), in VisitInt32Add() 1239 EmitLea(this, kX64Lea, node, m.index(), m.scale(), m.base(), in VisitInt64Add() 1383 EmitLea(this, kX64Lea32, node, index, m.scale(), bas in VisitInt32Mul() 983 EmitLea(InstructionSelector* selector, InstructionCode opcode, Node* result, Node* index, int scale, Node* base, Node* displacement, DisplacementMode displacement_mode) EmitLea() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/panfrost/ |
H A D | pan_cmdstream.c | 734 /* Derive min/max from translate/scale. Note since |x| >= 0 by in panfrost_emit_viewport() 735 * definition, we have that -|x| <= |x| hence translate - |scale| <= in panfrost_emit_viewport() 736 * translate + |scale|, so the ordering is correct here. */ in panfrost_emit_viewport() 737 float vp_minx = vp->translate[0] - fabsf(vp->scale[0]); in panfrost_emit_viewport() 738 float vp_maxx = vp->translate[0] + fabsf(vp->scale[0]); in panfrost_emit_viewport() 739 float vp_miny = vp->translate[1] - fabsf(vp->scale[1]); in panfrost_emit_viewport() 740 float vp_maxy = vp->translate[1] + fabsf(vp->scale[1]); in panfrost_emit_viewport() 741 float minz = (vp->translate[2] - fabsf(vp->scale[2])); in panfrost_emit_viewport() 742 float maxz = (vp->translate[2] + fabsf(vp->scale[2])); in panfrost_emit_viewport() 1057 uniform->f[0] = vp->scale[ in panfrost_upload_viewport_scale_sysval() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_view_abstract.cpp | 613 NG::ScaleOptions scale(1.0f, 1.0f, 1.0f, 0.5_pct, 0.5_pct); in ParseChainedScaleTransition() 614 ParseJsScale(effectOption, scale.xScale, scale.yScale, scale.zScale, scale.centerX, scale.centerY); in ParseChainedScaleTransition() 615 return AceType::MakeRefPtr<NG::ChainedScaleEffect>(scale); in ParseChainedScaleTransition() 684 { "scale", ParseChainedScaleTransition }, in ParseChainedTransition() 1642 double scale = 0.0; in JsScale() local 1643 if (ParseJsDouble(jsVal, scale)) { in JsScale() 2833 double scale = jsOption->GetProperty("scale")->ToNumber<double>(); ParseBlurStyleOption() local 3034 double scale = jsOption->GetProperty("scale")->ToNumber<double>(); JsForegroundBlurStyle() local [all...] |
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/inner_model/ |
H A D | inner_model_test.cpp | 1437 std::vector<float> scale; in HWTEST_F() local 1447 void* primitive = mindspore::lite::MindIR_DetectionPostProcess_CreatePrimitive(format, inputSize, scale, in HWTEST_F() 1523 float scale {1.0f}; in HWTEST_F() 1525 void* primitive = mindspore::lite::MindIR_ExpFusion_CreatePrimitive(base, scale, shift); in HWTEST_F() 2220 float scale {1.0f}; in HWTEST_F() 2222 void* primitive = mindspore::lite::MindIR_PowFusion_CreatePrimitive(scale, shift); in HWTEST_F()
|