/third_party/musl/porting/liteos_a/kernel/src/time/ |
H A D | __tz.c | 54 int scale = 3 - (trans == zi+44); in scan_trans() local 58 size_t a = 0, n = (index-trans)>>scale, m; in scan_trans() 68 x = zi_read32(trans + (m<<scale)); in scan_trans() 69 if (scale == 3) x = x<<32 | zi_read32(trans + (m<<scale) + 4); in scan_trans() 82 n = (index-trans)>>scale; in scan_trans() 86 if (scale == 3) x = x<<32 | zi_read32(trans + 4); in scan_trans()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
H A D | DecimalQuantity_DualStorageBCD.java | 180 scale -= numDigits; in shiftLeft() 197 scale += numDigits; in shiftRight() 222 scale = 0; in setBcdToZero() 241 scale = 0; in readIntToBcd() 255 scale = 0; in readLongToBcd() 266 scale = 0; in readLongToBcd() 282 scale = 0; in readBigIntegerToBcd() 301 // Test that the new scale fits inside the BigDecimal in bcdToBigDecimal() 302 long newScale = result.scale() + scale in bcdToBigDecimal() [all...] |
/third_party/skia/third_party/externals/freetype/src/psaux/ |
H A D | psblues.c | 98 blues->scale = font->innerTransform.d; in cf2_blues_init() 164 blues->scale ) ) - in cf2_blues_init() 166 blues->emBoxBottomEdge.scale = blues->scale; in cf2_blues_init() 176 blues->scale ) ) + in cf2_blues_init() 178 blues->emBoxTopEdge.scale = blues->scale; in cf2_blues_init() 279 csUnitsPerPixel = FT_DivFix( cf2_intToFixed( 1 ), blues->scale ); in cf2_blues_init() 369 /* clamp at maximum scale */ in cf2_blues_init() 375 * TODO: Revisit the bug fix for 613448. The minimum scale in cf2_blues_init() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_exposure.c | 36 float scale; member 50 const float scale = s->scale; in exposure_slice() local 57 ptr[x] = (ptr[x] - black) * scale; in exposure_slice() 71 s->scale = 1.f / (exp2f(-s->exposure) - s->black); in filter_frame()
|
H A D | vf_hsvkey.c | 38 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 D | vf_nnedi.c | 106 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/mesa3d/src/util/ |
H A D | format_rgb9e5.h | 109 union { float f; uint32_t u; } scale; in rgb9e5_to_float3() local 112 scale.u = (exponent + 127) << 23; in rgb9e5_to_float3() 114 retval[0] = ( rgb & 0x1ff) * scale.f; in rgb9e5_to_float3() 115 retval[1] = ((rgb >> 9) & 0x1ff) * scale.f; in rgb9e5_to_float3() 116 retval[2] = ((rgb >> 18) & 0x1ff) * scale.f; in rgb9e5_to_float3()
|
/third_party/skia/src/core/ |
H A D | SkEdge.h | 100 float scale = float(1 << (shift + 6)); 101 x0 = int(p0.fX * scale); 102 y0 = int(p0.fY * scale); 103 x1 = int(p1.fX * scale); 104 y1 = int(p1.fY * scale);
|
H A D | SkPoint3.cpp | 75 // using a float instead of a double for scale loses too much precision in normalize() 76 double scale = 1 / sqrt(invScale); in normalize() local 77 fX *= scale; in normalize() 78 fY *= scale; in normalize() 79 fZ *= scale; in normalize()
|
/third_party/skia/gm/ |
H A D | blurroundrect.cpp | 41 SkMatrix scale; in MakeRadial() local 42 scale.setScale(0.5f, 0.5f); in MakeRadial() 43 scale.postTranslate(5.f, 5.f); in MakeRadial() 52 0, &scale); in MakeRadial() 64 canvas->scale(1.5f, 1.5f);
|
/third_party/skia/modules/skottie/src/effects/ |
H A D | InvertEffect.cpp | 47 std::array<float,4> scale, member 98 stcm.scale[0], 0, 0, 0, stcm.trans[0], 99 0, stcm.scale[1], 0, 0, stcm.trans[1], 100 0, 0, stcm.scale[2], 0, stcm.trans[2], 101 0, 0, 0, stcm.scale[3], stcm.trans[3]
|
H A D | FractalNoiseEffect.cpp | 36 // * 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...] |
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fFboTestUtil.hpp | 62 void setTexScaleBias (int samplerNdx, const tcu::Vec4& scale, const tcu::Vec4& bias); 63 void setOutScaleBias (const tcu::Vec4& scale, const tcu::Vec4& bias); 74 tcu::Vec4 scale; member 93 void setTexScaleBias (const tcu::Vec4& scale, const tcu::Vec4& bias); 130 void readPixels (sglr::Context& ctx, tcu::Surface& dst, int x, int y, int width, int height, const tcu::TextureFormat& format, const tcu::Vec4& scale, const tcu::Vec4& bias);
|
/third_party/astc-encoder/Source/ |
H A D | astcenc_color_unquantize.cpp | 133 * @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...] |
/third_party/node/deps/v8/src/compiler/ |
H A D | node-matchers.h | 399 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...] |
/third_party/ffmpeg/libavformat/ |
H A D | replaygain.c | 41 int scale = 10000; in parse_value() local 56 while (av_isdigit(*fraction) && scale) { in parse_value() 57 mb += scale * (*fraction - '0'); in parse_value() 58 scale /= 10; in parse_value()
|
/third_party/skia/third_party/externals/angle2/samples/gles1/ |
H A D | FlatShading.cpp | 83 GLfloat scale = 0.2f; variable 84 glScalef(scale, scale, scale);
|
/test/testfwk/arkxtest/uitest/addon/ |
H A D | screen_copy.cpp | 55 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 D | tri.c | 179 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 D | u_tile.c | 106 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()
|
/third_party/skia/src/effects/imagefilters/ |
H A D | SkAlphaThresholdImageFilter.cpp | 151 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/ffmpeg/tests/fate/ |
H A D | screen.mak | 3 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 D | lp_bld_format_float.c | 426 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 D | lp_bld_conv.c | 254 * 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...] |
/third_party/libinput/test/ |
H A D | test-gestures.c | 301 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...] |