Home
last modified time | relevance | path

Searched refs:scale (Results 476 - 500 of 2295) sorted by relevance

1...<<11121314151617181920>>...92

/kernel/linux/linux-6.6/drivers/hwmon/
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()
/test/testfwk/arkxtest/uitest/addon/
H A Dscreen_copy.cpp55 explicit ScreenCopy(float scale): scale_(scale) {}; in ScreenCopy() argument
88 const auto scale = g_screenCopy->scale_; in AdapteScreenChange() local
90 g_screenCopy = make_unique<ScreenCopy>(scale); in AdapteScreenChange()
104 pendingError_ = "Error: Illegal scale value!"; in Run()
235 // resize the pixelmap to fit scale in ScaleNewsetFrameLocked()
257 // resize the pixelmap to fit scale in WaitAndConsumeFrames()
298 bool StartScreenCopy(float scale, ScreenCopyHandler handler) in StartScreenCopy() argument
300 if (scale <= 0 || scale > in StartScreenCopy()
[all...]
/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...]
/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...]
H A Dvf_nnedi.c106 int width, int height, float scale);
109 int width, int height, int depth, float scale);
209 int n, float scale, float bias) in dot_dsp()
215 y = sum * scale + bias + 1e-20f; in dot_dsp()
330 const float scale = 1.f / model->nsize; in gather_input() local
349 mstd[0] = sum * scale; in gather_input()
352 tmp = sum_sq * scale - mstd[0] * mstd[0]; in gather_input()
407 float scale; in predictor() local
413 scale = mstd[2]; in predictor()
416 activation[nn] = dot_dsp(s, softmax_q1_filter(nn, model), input, filter_size, scale, mode in predictor()
208 dot_dsp(const NNEDIContext *const s, const float *kernel, const float *input, int n, float scale, float bias) dot_dsp() argument
439 read_bytes(const uint8_t *src, float *dst, int src_stride, int dst_stride, int width, int height, float scale) read_bytes() argument
458 read_words(const uint8_t *srcp, float *dst, int src_stride, int dst_stride, int width, int height, float scale) read_words() argument
481 write_bytes(const float *src, uint8_t *dst, int src_stride, int dst_stride, int width, int height, int depth, float scale) write_bytes() argument
495 write_words(const float *src, uint8_t *dstp, int src_stride, int dst_stride, int width, int height, int depth, float scale) write_words() argument
895 const float scale = 1.f / nns; subtract_mean_predictor() local
[all...]
/third_party/ffmpeg/tests/fate/
H A Dscreen.mak3 fate-cscd: CMD = framecrc -i $(TARGET_SAMPLES)/CSCD/sample_video.avi -an -pix_fmt rgb24 -vf scale
31 fate-fraps-v3: CMD = framecrc -i $(TARGET_SAMPLES)/fraps/psclient-partial.avi -pix_fmt rgb24 -vf scale
59 fate-rscc-8bit: CMD = framecrc -i $(TARGET_SAMPLES)/rscc/8bpp.avi -an -pix_fmt rgb24 -vf scale
91 fate-tscc-15bit: CMD = framecrc -i $(TARGET_SAMPLES)/tscc/oneminute.avi -t 15 -pix_fmt rgb24 -vf scale
94 fate-tscc-32bit: CMD = framecrc -i $(TARGET_SAMPLES)/tscc/2004-12-17-uebung9-partial.avi -pix_fmt rgb24 -an -vf scale
110 fate-vmnc-16bit: CMD = framecrc -i $(TARGET_SAMPLES)/VMnc/test.avi -pix_fmt rgb24 -vf scale
113 fate-vmnc-32bit: CMD = framecrc -i $(TARGET_SAMPLES)/VMnc/VS2k5DebugDemo-01-partial.avi -pix_fmt rgb24 -vf scale
120 fate-zmbv-8bit: CMD = framecrc -i $(TARGET_SAMPLES)/zmbv/wc2_001-partial.avi -an -pix_fmt rgb24 -vf scale
123 fate-zmbv-15bit: CMD = framecrc -i $(TARGET_SAMPLES)/zmbv/zmbv_15bit.avi -pix_fmt rgb24 -t 25 -vf scale
126 fate-zmbv-16bit: CMD = framecrc -i $(TARGET_SAMPLES)/zmbv/zmbv_16bit.avi -pix_fmt rgb24 -t 25 -vf scale
[all...]
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_format_float.c426 LLVMValueRef scale, in lp_build_rgb9_to_float_helper()
442 * So just do (float)comp_bits * scale in lp_build_rgb9_to_float_helper()
449 return lp_build_mul(&f32_bld, src, scale); in lp_build_rgb9_to_float_helper()
466 LLVMValueRef shift, scale, bias, exp; in lp_build_rgb9e5_to_float() local
484 * scale factor is 2 ^ (exp - bias) in lp_build_rgb9e5_to_float()
494 scale = lp_build_add(&i32_bld, exp, bias); in lp_build_rgb9e5_to_float()
496 scale = lp_build_shl(&i32_bld, scale, shift); in lp_build_rgb9e5_to_float()
497 scale = LLVMBuildBitCast(builder, scale, f32_bl in lp_build_rgb9e5_to_float()
423 lp_build_rgb9_to_float_helper(struct gallivm_state *gallivm, struct lp_type f32_type, LLVMValueRef src, LLVMValueRef scale, unsigned mantissa_start) lp_build_rgb9_to_float_helper() argument
[all...]
H A Dlp_bld_conv.c254 * of register bits the typically scale and cast approach would require double
290 double scale; in lp_build_clamped_float_to_unsigned_norm() local
295 scale = (double)mask/ubound; in lp_build_clamped_float_to_unsigned_norm()
298 res = LLVMBuildFMul(builder, src, lp_build_const_vec(gallivm, src_type, scale), ""); in lp_build_clamped_float_to_unsigned_norm()
312 double scale; in lp_build_clamped_float_to_unsigned_norm() local
316 scale = (double)((1ULL << dst_width) - 1); in lp_build_clamped_float_to_unsigned_norm()
319 lp_build_const_vec(gallivm, src_type, scale), ""); in lp_build_clamped_float_to_unsigned_norm()
341 double scale = (double)(1ULL << n); in lp_build_clamped_float_to_unsigned_norm() local
348 lp_build_const_vec(gallivm, src_type, scale), ""); in lp_build_clamped_float_to_unsigned_norm()
407 double scale; in lp_build_unsigned_norm_to_float() local
869 LLVMValueRef scale = lp_build_const_vec(gallivm, tmp_type, dst_scale); lp_build_conv() local
997 LLVMValueRef scale = lp_build_const_vec(gallivm, tmp_type, 1.0/src_scale); lp_build_conv() local
[all...]
/kernel/linux/linux-5.10/drivers/thunderbolt/
H A Dusb4.c1535 static unsigned int usb3_bw_to_mbps(u32 bw, u8 scale) in usb3_bw_to_mbps() argument
1539 uframes = bw * 512UL << scale; in usb3_bw_to_mbps()
1543 static u32 mbps_to_usb3_bw(unsigned int mbps, u8 scale) in mbps_to_usb3_bw() argument
1549 return DIV_ROUND_UP(uframes, 512UL << scale); in mbps_to_usb3_bw()
1556 u32 val, bw, scale; in usb4_usb3_port_read_allocated_bandwidth() local
1564 ret = tb_port_read(port, &scale, TB_CFG_PORT, in usb4_usb3_port_read_allocated_bandwidth()
1569 scale &= ADP_USB3_CS_3_SCALE_MASK; in usb4_usb3_port_read_allocated_bandwidth()
1572 *upstream_bw = usb3_bw_to_mbps(bw, scale); in usb4_usb3_port_read_allocated_bandwidth()
1575 *downstream_bw = usb3_bw_to_mbps(bw, scale); in usb4_usb3_port_read_allocated_bandwidth()
1610 u32 val, bw, scale; in usb4_usb3_port_read_consumed_bandwidth() local
1638 u32 val, ubw, dbw, scale; usb4_usb3_port_write_allocated_bandwidth() local
[all...]
/third_party/libinput/test/
H A Dtest-gestures.c301 double scale, oldscale; in test_gesture_pinch_2fg() local
379 scale = libinput_event_gesture_get_scale(gevent); in test_gesture_pinch_2fg()
382 ck_assert(scale == 1.0); in test_gesture_pinch_2fg()
391 oldscale = scale; in test_gesture_pinch_2fg()
392 scale = libinput_event_gesture_get_scale(gevent); in test_gesture_pinch_2fg()
394 ck_assert(scale < oldscale); in test_gesture_pinch_2fg()
424 double scale, oldscale; in test_gesture_pinch_3fg() local
493 scale = libinput_event_gesture_get_scale(gevent); in test_gesture_pinch_3fg()
496 ck_assert(scale == 1.0); in test_gesture_pinch_3fg()
505 oldscale = scale; in test_gesture_pinch_3fg()
539 double scale, oldscale; test_gesture_pinch_4fg() local
661 double scale, oldscale; test_gesture_spread() local
[all...]
/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()
/third_party/ffmpeg/libavcodec/
H A Dpnm.c194 if (av_sscanf(buf1, "%f", &s->scale) != 1 || s->scale == 0.0 || !isfinite(s->scale)) { in ff_pnm_decode_header()
195 av_log(avctx, AV_LOG_ERROR, "Invalid scale.\n"); in ff_pnm_decode_header()
198 s->endian = s->scale < 0.f; in ff_pnm_decode_header()
199 s->scale = fabsf(s->scale); in ff_pnm_decode_header()
/third_party/python/Lib/
H A Dtimeit.py344 scale = units[unit]
346 scales = [(scale, unit) for unit, scale in units.items()]
348 for scale, unit in scales:
349 if dt >= scale:
352 return "%.*g %s" % (precision, dt / scale, unit)
/third_party/skia/gm/
H A Doffsetimagefilter.cpp76 SkScalar scale, const SkIRect& cropRect) { in DrawClippedImage()
81 canvas->scale(scale, scale); in DrawClippedImage()
87 SkMatrix::Scale(scale, scale).mapRect(&cropRectFloat, SkRect::Make(cropRect)); in DrawClippedImage()
75 DrawClippedImage(SkCanvas* canvas, const SkImage* image, const SkPaint& paint, SkScalar scale, const SkIRect& cropRect) DrawClippedImage() argument
/third_party/skia/tests/
H A DPathOpsExtendedTest.cpp116 static void scaleMatrix(const SkPath& one, const SkPath& two, SkMatrix& scale) { in scaleMatrix() argument
129 scale.reset(); in scaleMatrix()
130 scale.preScale(hScale, vScale); in scaleMatrix()
139 scale.postTranslate(dx, dy); in scaleMatrix()
182 SkMatrix scale;
183 scaleMatrix(one, two, scale);
184 one.transform(scale, &scaledOne);
185 two.transform(scale, &scaledTwo);
252 const SkPathOp shapeOp, const SkMatrix& scale) {
270 const SkPath& a, const SkPath& b, const SkPathOp shapeOp, const SkMatrix& scale,
581 SkMatrix scale; innerPathOp() local
[all...]
/kernel/linux/linux-5.10/drivers/leds/
H A Dleds-lp8788.c31 enum lp8788_isink_scale scale; member
37 .scale = LP8788_ISINK_SCALE_100mA,
50 cfg->scale = pdata->scale; in lp8788_led_init_device()
57 /* scale configuration */ in lp8788_led_init_device()
60 val = cfg->scale << (cfg->num + LP8788_ISINK_SCALE_OFFSET); in lp8788_led_init_device()

Completed in 16 milliseconds

1...<<11121314151617181920>>...92