/third_party/skia/tests/ |
H A D | MipMapTest.cpp | 38 SkScalar scale = SK_Scalar1; in DEF_TEST() local 40 scale = scale * 2 / 3; in DEF_TEST() 43 if (mm->extractLevel(SkSize::Make(scale, scale), &level)) { in DEF_TEST()
|
/third_party/skia/gm/ |
H A D | rectangletexture.cpp | 166 for (auto scale : kScales) { 168 canvas->scale(scale, scale); 196 canvas->translate(0, kPad + 1.5f*h*scale);
|
H A D | dftext.cpp | 72 // apply global scale to test glyph positioning 73 canvas->scale(1.05f, 1.05f); 91 canvas->scale(scales[i], scales[i]); 121 canvas->scale(scaleFactor, scaleFactor); 131 canvas->scale(2.0f, 2.0f); 220 canvas->scale(375, 375);
|
H A D | patheffects.cpp | 69 static SkPath scale(const SkPath& path, SkScalar scale) { in scale() argument 71 m.setScale(scale, scale); in scale() 82 SkPath path = scale(b.detach(), 1.5f); in one_d_pe() 390 canvas->scale(2.5, 0.5f); 403 canvas->scale(2.5, 0.5f);
|
/third_party/skia/modules/particles/src/ |
H A D | SkParticleDrawable.cpp | 33 float posX, float posY, float dirX, float dirY, float scale) { in make_rsxform() 34 const float s = dirX * scale; in make_rsxform() 35 const float c = -dirY * scale; in make_rsxform() 61 float* scale = particles.fData[SkParticles::kScale].get(); in DrawAtlasArrays() local 64 fXforms[i] = make_rsxform(center, pos[0][i], pos[1][i], dir[0][i], dir[1][i], scale[i]); in DrawAtlasArrays() 32 make_rsxform(SkPoint ofs, float posX, float posY, float dirX, float dirY, float scale) make_rsxform() argument
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | gradient_style_modifier.cpp | 225 ColorAnimatableArithmetic ColorAnimatableArithmetic::Multiply(const float scale) const in Multiply() 231 Color color = Color::FromARGB(colors_[index].GetAlpha() * scale, colors_[index].GetRed() * scale, in Multiply() 232 colors_[index].GetGreen() * scale, colors_[index].GetBlue() * scale); in Multiply() 308 ColorStopAnimatableArithmetic ColorStopAnimatableArithmetic::Multiply(const float scale) const in Multiply() 314 auto colorStop = colorStops_[index].Value() * scale; in Multiply()
|
/kernel/linux/linux-5.10/arch/m68k/math-emu/ |
H A D | fp_arith.c | 656 int scale, oldround; in fp_fscale() local 683 scale = fp_conv_ext2long(src); in fp_fscale() 687 scale += dest->exp; in fp_fscale() 689 if (scale >= 0x7fff) { in fp_fscale() 691 } else if (scale <= 0) { in fp_fscale() 693 fp_denormalize(dest, -scale); in fp_fscale() 695 dest->exp = scale; in fp_fscale()
|
/kernel/linux/linux-6.6/arch/m68k/math-emu/ |
H A D | fp_arith.c | 656 int scale, oldround; in fp_fscale() local 683 scale = fp_conv_ext2long(src); in fp_fscale() 687 scale += dest->exp; in fp_fscale() 689 if (scale >= 0x7fff) { in fp_fscale() 691 } else if (scale <= 0) { in fp_fscale() 693 fp_denormalize(dest, -scale); in fp_fscale() 695 dest->exp = scale; in fp_fscale()
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
H A D | hx711.c | 24 /* gain to pulse and scale conversion */ 31 int scale; member 36 * .scale depends on AVDD which in turn is known as soon as the regulator 38 * therefore we set .scale in hx711_probe() 65 return hx711_gain_to_scale[i].scale; in hx711_get_gain_to_scale() 69 static int hx711_get_scale_to_gain(int scale) in hx711_get_scale_to_gain() argument 74 if (hx711_gain_to_scale[i].scale == scale) in hx711_get_scale_to_gain() 314 * a scale greater than 1 mV per LSB is not possible in hx711_write_raw() 397 hx711_gain_to_scale[i].scale); in hx711_scale_available_show() [all...] |
/kernel/linux/linux-5.10/drivers/iio/light/ |
H A D | lv0104cs.c | 42 u8 scale; member 167 regval |= lv0104cs_scales[lv0104cs->scale].regval; in lv0104cs_get_lux() 200 switch (lv0104cs->scale) { in lv0104cs_get_lux() 253 *val = lv0104cs_scales[lv0104cs->scale].val; in lv0104cs_read_raw() 254 *val2 = lv0104cs_scales[lv0104cs->scale].val2; in lv0104cs_read_raw() 339 lv0104cs->scale = i; in lv0104cs_set_scale() 496 lv0104cs->scale = LV0104CS_SCALE_1X; in lv0104cs_probe()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i2c/ |
H A D | ch7006_drv.c | 233 if (~mode->valid_scales & 1<<priv->scale || in ch7006_encoder_get_modes() 255 priv->scale_property = drm_property_create_range(dev, 0, "scale", 0, 2); in ch7006_encoder_create_resources() 276 priv->scale); in ch7006_encoder_create_resources() 351 priv->scale = val; in ch7006_encoder_set_property() 457 priv->scale = 1; in ch7006_encoder_init() 480 priv->scale = ch7006_scale; in ch7006_encoder_init() 482 ch7006_err(client, "Invalid scale setting \"%d\".\n", in ch7006_encoder_init() 538 module_param_named(scale, ch7006_scale, int, 0600); 539 MODULE_PARM_DESC(scale, "Default scale [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i2c/ |
H A D | ch7006_drv.c | 235 if (~mode->valid_scales & 1<<priv->scale || in ch7006_encoder_get_modes() 257 priv->scale_property = drm_property_create_range(dev, 0, "scale", 0, 2); in ch7006_encoder_create_resources() 278 priv->scale); in ch7006_encoder_create_resources() 353 priv->scale = val; in ch7006_encoder_set_property() 457 priv->scale = 1; in ch7006_encoder_init() 480 priv->scale = ch7006_scale; in ch7006_encoder_init() 482 ch7006_err(client, "Invalid scale setting \"%d\".\n", in ch7006_encoder_init() 538 module_param_named(scale, ch7006_scale, int, 0600); 539 MODULE_PARM_DESC(scale, "Default scale [all...] |
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | hx711.c | 24 /* gain to pulse and scale conversion */ 31 int scale; member 36 * .scale depends on AVDD which in turn is known as soon as the regulator 38 * therefore we set .scale in hx711_probe() 65 return hx711_gain_to_scale[i].scale; in hx711_get_gain_to_scale() 69 static int hx711_get_scale_to_gain(int scale) in hx711_get_scale_to_gain() argument 74 if (hx711_gain_to_scale[i].scale == scale) in hx711_get_scale_to_gain() 314 * a scale greater than 1 mV per LSB is not possible in hx711_write_raw() 397 hx711_gain_to_scale[i].scale); in hx711_scale_available_show() [all...] |
/kernel/linux/linux-6.6/drivers/iio/light/ |
H A D | lv0104cs.c | 42 u8 scale; member 167 regval |= lv0104cs_scales[lv0104cs->scale].regval; in lv0104cs_get_lux() 200 switch (lv0104cs->scale) { in lv0104cs_get_lux() 253 *val = lv0104cs_scales[lv0104cs->scale].val; in lv0104cs_read_raw() 254 *val2 = lv0104cs_scales[lv0104cs->scale].val2; in lv0104cs_read_raw() 339 lv0104cs->scale = i; in lv0104cs_set_scale() 495 lv0104cs->scale = LV0104CS_SCALE_1X; in lv0104cs_probe()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_colorcontrast.c | 76 ng = av_clipf((g0 * gmw + g1 * byw + g2 * rcw) * scale, 0.f, max); \ 77 nb = av_clipf((b0 * gmw + b1 * byw + b2 * rcw) * scale, 0.f, max); \ 78 nr = av_clipf((r0 * gmw + r1 * byw + r2 * rcw) * scale, 0.f, max); \ 114 const float scale = 1.f / sum; in colorcontrast_slice8() local 168 const float scale = 1.f / sum; in colorcontrast_slice16() local 220 const float scale = 1.f / sum; in colorcontrast_slice8p() local 272 const float scale = 1.f / sum; in colorcontrast_slice16p() local
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/ |
H A D | rs_properties_painter.cpp | 171 float scale = std::min(rect.width_ / w, rect.height_ / h); in GetGravityMatrix() local 172 if (ROSEN_EQ(scale, 0.f)) { in GetGravityMatrix() 175 mat.PreScale(scale, scale); in GetGravityMatrix() 176 mat.PreTranslate((rect.width_ / scale - w) / PARAM_DOUBLE, (rect.height_ / scale - h) / PARAM_DOUBLE); in GetGravityMatrix() 183 float scale = std::min(rect.width_ / w, rect.height_ / h); in GetGravityMatrix() local 184 mat.PreScale(scale, scale); in GetGravityMatrix() 191 float scale in GetGravityMatrix() local 203 float scale = std::max(rect.width_ / w, rect.height_ / h); GetGravityMatrix() local 215 float scale = std::max(rect.width_ / w, rect.height_ / h); GetGravityMatrix() local 223 float scale = std::max(rect.width_ / w, rect.height_ / h); GetGravityMatrix() local [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | tx_template.c | 529 const void *scale) in ff_tx_fft_sr_codelet_init() 659 const void *scale) in ff_tx_fft_sr_init() 669 if ((ret = ff_tx_init_subtx(s, TX_TYPE(FFT), flags, &sub_opts, len, inv, scale))) in ff_tx_fft_sr_init() 786 const void *scale) in ff_tx_fft_pfa_init() 797 sub_len, inv, scale))) in ff_tx_fft_pfa_init() 859 const void *scale) in ff_tx_mdct_naive_init() 861 s->scale_d = *((SCALE_TYPE *)scale); in ff_tx_mdct_naive_init() 871 double scale = s->scale_d; in ff_tx_mdct_naive_fwd() local 883 dst[i*stride] = RESCALE(sum*scale); in ff_tx_mdct_naive_fwd() 892 double scale in ff_tx_mdct_naive_inv() local 524 ff_tx_fft_sr_codelet_init(AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale) ff_tx_fft_sr_codelet_init() argument 654 ff_tx_fft_sr_init(AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale) ff_tx_fft_sr_init() argument 781 ff_tx_fft_pfa_init(AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale) ff_tx_fft_pfa_init() argument 854 ff_tx_mdct_naive_init(AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale) ff_tx_mdct_naive_init() argument 943 ff_tx_mdct_sr_init(AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale) ff_tx_mdct_sr_init() argument 1065 ff_tx_mdct_inv_full_init(AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale) ff_tx_mdct_inv_full_init() argument 1117 ff_tx_mdct_pfa_init(AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale) ff_tx_mdct_pfa_init() argument 1280 ff_tx_rdft_init(AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale) ff_tx_rdft_init() argument 1411 double scale = s->scale_d; ff_tx_mdct_gen_exp() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/ |
H A D | water_flow_layout_info_base.cpp | 51 const std::vector<WaterFlowSections::Section>& sections, const ScaleProperty& scale, float percentWidth) in InitMargins() 60 margins_[i] = ConvertToMarginPropertyF(*sections[i].margin, scale, percentWidth); in InitMargins() 50 InitMargins( const std::vector<WaterFlowSections::Section>& sections, const ScaleProperty& scale, float percentWidth) InitMargins() argument
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/window_scene/mock/ |
H A D | mock_mmi_event_convertor.cpp | 25 const NG::VectorF& scale, int32_t udegree) in CalculatePointerEvent() 29 const NG::VectorF& scale, const int32_t udegree) in CalculateWindowCoordinate() 24 CalculatePointerEvent(const NG::OffsetF& offsetF, const std::shared_ptr<MMI::PointerEvent>& point, const NG::VectorF& scale, int32_t udegree) CalculatePointerEvent() argument 28 CalculateWindowCoordinate(const NG::OffsetF& offsetF, const std::shared_ptr<MMI::PointerEvent>& point, const NG::VectorF& scale, const int32_t udegree) CalculateWindowCoordinate() argument
|
/kernel/linux/linux-6.6/tools/perf/tests/shell/ |
H A D | stat+shadow_stat.sh | 36 res=`printf "%.2f" "$(echo "scale=6; $num / $cyc" | bc -q)"` 70 res=`printf "%.2f" "$(echo "scale=6; $num / $cyc" | bc -q)"`
|
/third_party/ffmpeg/tests/fate/ |
H A D | cdxl.mak | 11 fate-cdxl-pal8: CMD = framecrc -i $(TARGET_SAMPLES)/cdxl/maku.cdxl -pix_fmt rgb24 -frames:v 11 -vf scale 14 fate-cdxl-pal8-small: CMD = framecrc -i $(TARGET_SAMPLES)/cdxl/fruit.cdxl -an -pix_fmt rgb24 -frames:v 46 -vf scale
|
/third_party/icu/icu4j/perf-tests/ |
H A D | Dataset.pm | 47 my ($self, $scale) = @_; 48 $self->{_scale} = $scale;
|
/third_party/skia/third_party/externals/freetype/src/psaux/ |
H A D | psblues.h | 125 CF2_Fixed scale; member 151 CF2_Fixed scale; member
|
/third_party/skia/docs/examples/ |
H A D | SKIA_LOGO_svg.cpp | 6 canvas->scale(4.0f, 4.0f); in REG_FIDDLE() 16 canvas->scale(0.363f, 0.363f); in REG_FIDDLE()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | wndw.c | 162 if (asyw->set.scale) wndw->func->scale_set(wndw, asyw); in nv50_wndw_flush_set() 322 asyw->scale.sx = asyw->state.src_x >> 16; in nv50_wndw_atomic_check_acquire() 323 asyw->scale.sy = asyw->state.src_y >> 16; in nv50_wndw_atomic_check_acquire() 324 asyw->scale.sw = asyw->state.src_w >> 16; in nv50_wndw_atomic_check_acquire() 325 asyw->scale.sh = asyw->state.src_h >> 16; in nv50_wndw_atomic_check_acquire() 326 asyw->scale.dw = asyw->state.crtc_w; in nv50_wndw_atomic_check_acquire() 327 asyw->scale.dh = asyw->state.crtc_h; in nv50_wndw_atomic_check_acquire() 328 if (memcmp(&armw->scale, &asyw->scale, sizeof(asyw->scale))) in nv50_wndw_atomic_check_acquire() [all...] |