Home
last modified time | relevance | path

Searched refs:scale (Results 251 - 275 of 2473) sorted by relevance

1...<<11121314151617181920>>...99

/kernel/linux/linux-6.6/drivers/iio/
H A Dindustrialio-gts-helper.c2 /* gain-time-scale conversion helpers for IIO light sensors
22 * iio_gts_get_gain - Convert scale to total gain
24 * Internal helper for converting scale to total gain.
26 * @max: Maximum linearized scale. As an example, when scale is created
27 * in magnitude of NANOs and max scale is 64.1 - The linearized
28 * scale is 64 100 000 000.
29 * @scale: Linearized scale to compute the gain for.
31 * Return: (floored) gain corresponding to the scale
34 iio_gts_get_gain(const u64 max, const u64 scale) iio_gts_get_gain() argument
60 gain_get_scale_fraction(const u64 max, u64 scale, int known, int *unknown) gain_get_scale_fraction() argument
930 iio_gts_get_scale_linear(struct iio_gts *gts, int gain, int time, u64 *scale) iio_gts_get_scale_linear() argument
1002 u64 scale; iio_gts_find_new_gain_sel_by_old_gain_time() local
1059 u64 scale; iio_gts_find_new_gain_by_old_gain_time() local
[all...]
/third_party/astc-encoder/Source/
H A Dastcenc_color_unquantize.cpp133 * @param scale The packed quantized scale.
140 uint8_t scale, in rgb_scale_alpha_unpack()
147 output0 = asr<8>(input0 * scale); in rgb_scale_alpha_unpack()
157 * @param scale The packed scale.
163 int scale, in rgb_scale_unpack()
170 output0 = asr<8>(input0 * scale); in rgb_scale_unpack()
325 int scale = v3 & 0x1F; in hdr_rgbo_unpack() local
347 scale | in hdr_rgbo_unpack()
137 rgb_scale_alpha_unpack( vint4 input0, uint8_t alpha1, uint8_t scale, vint4& output0, vint4& output1 ) rgb_scale_alpha_unpack() argument
161 rgb_scale_unpack( vint4 input0, int scale, vint4& output0, vint4& output1 ) rgb_scale_unpack() argument
810 uint8_t scale = input[3]; unpack_color_endpoints() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dsheet_drag_bar_pattern.cpp202 auto propertyCallback = [weak](float scale) { in CreatePropertyCallback()
203 if (NearZero(scale)) { in CreatePropertyCallback()
214 auto widthValue = BAR_WIDTH.Value() + BAR_WIDTH.Value() * (SCALE - 1.0f) * scale; in CreatePropertyCallback()
217 leftPoint.SetX(Dimension(POINT_L_INITIAL.GetX().Value() + leftX * scale, DimensionUnit::VP)); in CreatePropertyCallback()
218 rightPoint.SetX(Dimension(POINT_R_INITIAL.GetX().Value() + rightX * scale, DimensionUnit::VP)); in CreatePropertyCallback()
226 auto widthValue = BAR_WIDTH.Value() * SCALE + BAR_WIDTH.Value() * (1.0f - SCALE) * scale; in CreatePropertyCallback()
229 leftPoint.SetX(Dimension(POINT_L_TOUCH.GetX().Value() + leftX * scale, DimensionUnit::VP)); in CreatePropertyCallback()
230 rightPoint.SetX(Dimension(POINT_R_TOUCH.GetX().Value() + rightX * scale, DimensionUnit::VP)); in CreatePropertyCallback()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/
H A Drs_vector2.h46 Vector2 operator/(T scale) const;
47 Vector2 operator*(T scale) const;
150 Vector2<T> Vector2<T>::operator/(T scale) const in operator /()
152 if (ROSEN_EQ<T>(scale, 0)) { in operator /()
155 const T invScale = 1.0f / scale; in operator /()
160 Vector2<T> Vector2<T>::operator*(T scale) const in operator *()
165 rData[0] *= scale; in operator *()
166 rData[1] *= scale; in operator *()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/
H A Drs_render_particle_test.cpp65 RenderParticleParaType<float> scale; in SetUp() local
67 params = std::make_shared<ParticleRenderParams>(emitterConfig, velocity, acceleration, color, opacity, scale, spin); in SetUp()
144 RenderParticleParaType<float> scale; in HWTEST_F() local
146 params = std::make_shared<ParticleRenderParams>(emitterConfig, velocity, acceleration, color, opacity, scale, spin); in HWTEST_F()
182 RenderParticleParaType<float> scale; in HWTEST_F() local
184 params = std::make_shared<ParticleRenderParams>(emitterConfig, velocity, acceleration, color, opacity, scale, spin); in HWTEST_F()
223 RenderParticleParaType<float> scale; in HWTEST_F() local
225 params = std::make_shared<ParticleRenderParams>(emitterConfig, velocity, acceleration, color, opacity, scale, spin); in HWTEST_F()
/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/brightness/
H A Dcpu_brightness_algo.cpp68 float scale = brightness / SCALE_FACTOR; in OnApplyRGBA8888() local
69 scale = pow(2.4f, scale); // 2.4 is algorithm parameter. in OnApplyRGBA8888()
74 current = 1.f - pow(current, scale); in OnApplyRGBA8888()
117 float scale = brightness / SCALE_FACTOR; in OnApplyYUVNV21() local
118 scale = pow(2.4f, scale); // 2.4 is algorithm parameter. in OnApplyYUVNV21()
123 current = 1.f - pow(current, scale); in OnApplyYUVNV21()
/foundation/multimodalinput/input/util/common/include/
H A Dmmi_vector2.h47 Vector2 operator/(T scale) const;
48 Vector2 operator*(T scale) const;
147 Vector2<T> Vector2<T>::operator/(T scale) const in operator /()
149 if (MMI_EQ(scale, 0)) { in operator /()
152 const T invScale = 1.0f / scale; in operator /()
157 Vector2<T> Vector2<T>::operator*(T scale) const in operator *()
162 rData[0] *= scale; in operator *()
163 rData[1] *= scale; in operator *()
/kernel/linux/linux-6.6/drivers/hwmon/
H A Dscmi-hwmon.c40 int scale = sensor->scale; in scmi_hwmon_scale() local
47 scale += 3; in scmi_hwmon_scale()
51 scale += 6; in scmi_hwmon_scale()
57 if (scale == 0) in scmi_hwmon_scale()
60 if (abs(scale) > 19) in scmi_hwmon_scale()
63 f = __pow10(abs(scale)); in scmi_hwmon_scale()
64 if (scale > 0) in scmi_hwmon_scale()
H A Dscpi-hwmon.c19 unsigned int scale; member
59 if (scpi_scale[sensor->info.class] != sensor->scale) { in scpi_scale_reading()
61 do_div(*value, sensor->scale); in scpi_scale_reading()
138 const u32 *scale; in scpi_hwmon_probe() local
173 scale = of_device_get_match_data(&pdev->dev); in scpi_hwmon_probe()
174 if (!scale) { in scpi_hwmon_probe()
226 sensor->scale = scale[sensor->info.class]; in scpi_hwmon_probe()
/third_party/mesa3d/src/gallium/tests/trivial/
H A Dtri.c179 float scale, bias; in init_prog() local
182 scale = -1.0f; in init_prog()
185 scale = 1.0f; in init_prog()
189 p->viewport.scale[0] = half_width; in init_prog()
190 p->viewport.scale[1] = half_height * scale; in init_prog()
191 p->viewport.scale[2] = half_depth; in init_prog()
194 p->viewport.translate[1] = (half_height + y) * scale + bias; in init_prog()
/third_party/mesa3d/src/gallium/auxiliary/util/
H A Du_tile.c106 const float scale = 1.0f / 65535.0f; in z16_get_tile_rgba() local
115 pRow[3] = *src++ * scale; in z16_get_tile_rgba()
135 const double scale = 1.0 / (double) 0xffffffff; in z32_get_tile_rgba() local
144 pRow[3] = (float) (*src++ * scale); in z32_get_tile_rgba()
162 const double scale = 1.0 / ((1 << 24) - 1); in s8z24_get_tile_rgba() local
171 pRow[3] = (float) (scale * (*src++ & 0xffffff)); in s8z24_get_tile_rgba()
189 const double scale = 1.0 / ((1 << 24) - 1); in z24s8_get_tile_rgba() local
198 pRow[3] = (float) (scale * (*src++ >> 8)); in z24s8_get_tile_rgba()
H A Du_texture.c53 /* Compute sc = +/-scale and tc = +/-scale. in util_map_texcoords2d_onto_cubemap()
55 * though that can still sometimes happen with this scale factor... in util_map_texcoords2d_onto_cubemap()
57 * XXX: Yep, there is no safe scale factor that will prevent sampling in util_map_texcoords2d_onto_cubemap()
63 const float scale = allow_scale ? 0.9999f : 1.0f; in util_map_texcoords2d_onto_cubemap() local
64 const float sc = (2 * in_st[0] - 1) * scale; in util_map_texcoords2d_onto_cubemap()
65 const float tc = (2 * in_st[1] - 1) * scale; in util_map_texcoords2d_onto_cubemap()
/third_party/skia/src/effects/imagefilters/
H A DSkAlphaThresholdImageFilter.cpp151 half scale = outerThreshold / color.a; in make_alpha_threshold_fp()
152 color.rgb *= scale; in make_alpha_threshold_fp()
156 half scale = innerThreshold / max(0.001, color.a); in make_alpha_threshold_fp()
157 color.rgb *= scale; in make_alpha_threshold_fp()
281 float scale = (float)innerThreshold / alpha; in onFilterImage() local
283 (U8CPU)(SkColorGetR(source) * scale), in onFilterImage()
284 (U8CPU)(SkColorGetG(source) * scale), in onFilterImage()
285 (U8CPU)(SkColorGetB(source) * scale)); in onFilterImage()
289 float scale = (float)outerThreshold / SkColorGetA(source); in onFilterImage() local
291 (U8CPU)(SkColorGetR(source) * scale), in onFilterImage()
[all...]
/third_party/skia/modules/skottie/src/effects/
H A DFractalNoiseEffect.cpp36 // * Transform -- offset/scale/rotate the noise effect (local matrix)
44 // * Sub Scaling/Rotation/Offset -- relative scale for sublayers (cumulative)
406 // Adjust scale when cycling to ensure an integral period (post scaling). in noise()
407 scale = fCycleEvolution in noise() local
411 evo = evo_rad*scale, in noise()
431 const auto scale = (SkScalarRoundToInt(fUniformScaling) == 1) in shaderMatrix() local
436 * SkMatrix::Scale(SkTPin(scale.x, 1.0f, 10000.0f) * 0.01f, in shaderMatrix()
437 SkTPin(scale.y, 1.0f, 10000.0f) * 0.01f) in shaderMatrix()
443 const auto scale = 100 / SkTPin(fSubScale, 10.0f, 10000.0f); in subMatrix() local
447 * SkMatrix::Scale(scale, scal in subMatrix()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/root/
H A Drender_root.h36 void SetScale(float scale) in SetScale() argument
38 if (!NearEqual(scale_, scale)) { in SetScale()
39 scale_ = scale; in SetScale()
/third_party/ffmpeg/libavcodec/x86/
H A Dsynth_filter_init.c29 float out[32], intptr_t offset, float scale); \
33 float out[32], const float in[32], float scale) \
40 out, *synth_buf_offset, scale); \
/third_party/cups-filters/filter/pdftopdf/
H A Dqpdf_pdftopdf.h30 Matrix &scale(double sx,double sy);
31 Matrix &scale(double s) { return scale(s,s); } in scale() function in Matrix
/third_party/skia/third_party/externals/dng_sdk/source/
H A Ddng_xy_coord.cpp60 real64 scale = 0.999999 / (temp.x + temp.y); in XYtoXYZ() local
61 temp.x *= scale; in XYtoXYZ()
62 temp.y *= scale; in XYtoXYZ()
/third_party/skia/docs/examples/
H A DPaint_getFillPath.cpp17 SkMatrix scale = SkMatrix::Scale(300, 300); in REG_FIDDLE() local
20 fillPath.transform(scale); in REG_FIDDLE()
25 strokePath.transform(scale); in REG_FIDDLE()
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
H A Dmb86a20s.c1407 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mb86a20s_get_main_CNR()
1451 c->cnr.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_get_blk_error_layer_CNR()
1495 c->cnr.stat[1 + layer].scale = FE_SCALE_DECIBEL; in mb86a20s_get_blk_error_layer_CNR()
1547 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mb86a20s_stats_not_ready()
1552 c->cnr.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1553 c->pre_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1554 c->pre_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1555 c->post_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1556 c->post_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1557 c->block_error.stat[layer].scale in mb86a20s_stats_not_ready()
[all...]
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/
H A Dmb86a20s.c1407 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mb86a20s_get_main_CNR()
1451 c->cnr.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_get_blk_error_layer_CNR()
1495 c->cnr.stat[1 + layer].scale = FE_SCALE_DECIBEL; in mb86a20s_get_blk_error_layer_CNR()
1547 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mb86a20s_stats_not_ready()
1552 c->cnr.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1553 c->pre_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1554 c->pre_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1555 c->post_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1556 c->post_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1557 c->block_error.stat[layer].scale in mb86a20s_stats_not_ready()
[all...]
/third_party/node/deps/v8/src/compiler/
H A Dnode-matchers.h399 int scale() const { return scale_; } in scale() function
438 int scale() const { in scale() function
448 scale_ = left_matcher.scale(); in Initialize()
459 scale_ = right_matcher.scale(); in Initialize()
523 int scale() const { return scale_; } in scale() function
538 // displacements and scale factors that are used as inputs, so instead of in Initialize()
541 // find all of the interesting cases (S = index * scale, B = base input, D = in Initialize()
563 int scale = 0; in Initialize() local
566 scale = m.scale(); in Initialize()
[all...]
/kernel/linux/linux-5.10/drivers/video/backlight/
H A Dpwm_bl.c30 unsigned int scale; member
103 do_div(duty_cycle, pb->scale); in compute_duty_cycle()
147 #define PWM_LUMINANCE_SCALE (1 << PWM_LUMINANCE_SHIFT) /* luminance scale */
170 * as a fixed-point number in scale in cie1931()
563 if (data->levels[i] > pb->scale) in pwm_backlight_probe()
564 pb->scale = data->levels[i]; in pwm_backlight_probe()
567 props.scale = BACKLIGHT_SCALE_LINEAR; in pwm_backlight_probe()
569 props.scale = BACKLIGHT_SCALE_NON_LINEAR; in pwm_backlight_probe()
591 if (data->levels[i] > pb->scale) in pwm_backlight_probe()
592 pb->scale in pwm_backlight_probe()
[all...]
/kernel/linux/linux-6.6/drivers/video/backlight/
H A Dpwm_bl.c30 unsigned int scale; member
88 do_div(duty_cycle, pb->scale); in compute_duty_cycle()
147 #define PWM_LUMINANCE_SCALE (1 << PWM_LUMINANCE_SHIFT) /* luminance scale */
170 * as a fixed-point number in scale in cie1931()
549 if (data->levels[i] > pb->scale) in pwm_backlight_probe()
550 pb->scale = data->levels[i]; in pwm_backlight_probe()
553 props.scale = BACKLIGHT_SCALE_LINEAR; in pwm_backlight_probe()
555 props.scale = BACKLIGHT_SCALE_NON_LINEAR; in pwm_backlight_probe()
577 if (data->levels[i] > pb->scale) in pwm_backlight_probe()
578 pb->scale in pwm_backlight_probe()
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_hsvkey.c38 float scale; member
58 const float scale = s->scale; in do_hsvkey_pixel() local
67 const float val = val_key < 0.f ? -val_key : scale * y; in do_hsvkey_pixel()
150 const float scale = s->scale; in do_hsvhold_slice() local
165 float f = 1.f - t * scale; in do_hsvhold_slice()
186 const float scale = s->scale; in do_hsvhold16_slice() local
202 float f = 1.f - t * scale; in do_hsvhold16_slice()
[all...]

Completed in 19 milliseconds

1...<<11121314151617181920>>...99