/third_party/ffmpeg/libavfilter/x86/ |
H A D | vf_lut3d.asm | 52 .scale: resd 3 61 .scale: resd 3 168 ; 4 - scale 171 ; scale 173 mulps m5, m5, %4 ; v * scale 195 ; 2 - scale 491 mulss xm1, xm0, dword [ctxq + LUT3DContext.scale + 0*4] 496 mulss xm1, xm0, dword [ctxq + LUT3DContext.scale + 1*4] 501 mulss xm1, xm0, dword [ctxq + LUT3DContext.scale + 2*4] 525 VBROADCASTSS m0, dword [prelutq + Lut3DPreLut.scale [all...] |
/third_party/mesa3d/src/util/format/ |
H A D | u_format_zs.c | 73 const float scale = 0xffff; in z32_float_to_z16_unorm() local 74 return (uint16_t)(z * scale + 0.5f); in z32_float_to_z16_unorm() 80 const float scale = 1.0 / 0xffff; in z16_unorm_to_z32_float() local 81 return (float)(z * scale); in z16_unorm_to_z32_float() 87 const double scale = 0xffffff; in z32_float_to_z24_unorm() local 88 return (uint32_t)(z * scale) & 0xffffff; in z32_float_to_z24_unorm() 94 const double scale = 1.0 / 0xffffff; in z24_unorm_to_z32_float() local 95 return (float)(z * scale); in z24_unorm_to_z32_float() 101 const double scale = 0xffffffff; in z32_float_to_z32_unorm() local 102 return (uint32_t)(z * scale); in z32_float_to_z32_unorm() 108 const double scale = 1.0 / 0xffffffff; z32_unorm_to_z32_float() local [all...] |
/third_party/skia/third_party/externals/dng_sdk/source/ |
H A D | dng_linearization_info.cpp | 143 // Find the scale for this plane. in dng_linearize_plane() 154 real64 scale = 1.0 / minRange; in dng_linearize_plane() local 156 fScale = (real32) scale; in dng_linearize_plane() 199 x *= scale; in dng_linearize_plane() 275 x *= scale; in dng_linearize_plane() 308 // Calculate scale table, if any. in dng_linearize_plane() 359 // Apply scale. in dng_linearize_plane() 361 y *= scale; in dng_linearize_plane() 389 // Else we only do the scaling operation in the scale table. in dng_linearize_plane() 412 // Apply scale in dng_linearize_plane() 488 real32 scale = fScale; Process() local 869 real32 scale = fScale; Process() local [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | lut3d.h | 52 float scale[3]; member 61 struct rgbvec scale; member
|
/third_party/ffmpeg/libavcodec/ |
H A D | synth_filter.h | 32 float scale); 36 float out[64], const float in[64], float scale);
|
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/ |
H A D | DriveControl.h | 27 DriveControl(std::function<void(iter_type, iter_type)> function, double scale): in DriveControl() argument 28 mFunction(function), kScale(scale) {} in DriveControl()
|
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/descrip/ |
H A D | DistortionDescription.h | 41 double scale = pow(2.0, paramArr[0] / 10); in buildEffect() local 42 return DriveControl<iter_type> {SingleFunctionEffects::distortion<iter_type>, scale}; in buildEffect()
|
H A D | GainDescription.h | 41 float scale = paramArr[0] / 10; in buildEffect() local 44 for (; beg != end; ++beg) *beg *= pow(2.0, scale); in buildEffect()
|
H A D | OverdriveDescription.h | 46 double scale = pow(2.0, paramArr[0] / 10); in buildEffect() local 47 return DriveControl<iter_type> {SingleFunctionEffects::overdrive<iter_type>, scale}; in buildEffect()
|
/third_party/skia/third_party/externals/freetype/src/tools/ |
H A D | cordic.py | 6 scale = units/math.pi variable 18 angle2 = round(angle*scale) # arctangent in FT_Angle units
|
/third_party/skia/tools/viewer/ |
H A D | StatsLayer.h | 29 void setDisplayScale(float scale) { fDisplayScale = scale; } in setDisplayScale() argument
|
/third_party/skia/gm/ |
H A D | text_scale_skew.cpp | 24 for (float scale : { 0.5f, 0.71f, 1.0f, 1.41f, 2.0f }) { in DEF_SIMPLE_GM() 25 font.setScaleX(scale); in DEF_SIMPLE_GM()
|
H A D | blurrect.cpp | 93 SkMatrix scale; in make_radial() local 94 scale.setScale(0.5f, 0.5f); in make_radial() 95 scale.postTranslate(25.f, 25.f); in make_radial() 104 0, &scale); in make_radial() 150 canvas->scale(scales[s], scales[s]); 346 auto scale = SK_ScalarRoot2Over2 / sigma; in prepareReferenceMasks() 347 auto def_integral_approx = [scale](float a, float b) { in prepareReferenceMasks() 348 return 0.5f * (std::erf(b * scale) - std::erf(a * scale)); in prepareReferenceMasks()
|
/third_party/skia/include/utils/ |
H A D | SkCustomTypeface.h | 29 void setGlyph(SkGlyphID, float advance, sk_sp<SkImage>, float scale); 32 void setMetrics(const SkFontMetrics& fm, float scale = 1);
|
/third_party/skia/modules/svg/src/ |
H A D | SkSVGClipPath.cpp | 25 * SkMatrix::Scale(obbt.scale.x, obbt.scale.y); in resolveClip()
|
/third_party/skia/docs/examples/ |
H A D | Canvas_drawPicture_2.cpp | 14 recordingCanvas->scale(1.2f, 1.4f); in REG_FIDDLE() 18 canvas->scale(2, 2); in REG_FIDDLE()
|
H A D | Canvas_translate.cpp | 14 canvas->scale(2, 1/2.f); in REG_FIDDLE() 19 canvas->scale(2, 1/2.f); in REG_FIDDLE()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i2c/ |
H A D | ch7006_mode.c | 106 subc, scale, scale_mask, norm_mask, e_hd, e_vd) { \ 128 .dispmode = bitfs(CH7006_DISPMODE_SCALING_RATIO, scale) | \ 135 subc, scale, scale_mask, norm_mask) \ 136 __MODE(f, hd, vd, ht, vt, hsynp, vsynp, subc, scale, \ 335 uint64_t scale, aspect; in ch7006_setup_properties() local 345 scale = norm->vtotal*fixed1; in ch7006_setup_properties() 346 do_div(scale, mode->vtotal); in ch7006_setup_properties() 351 hpos = round_fixed((norm->hvirtual * aspect - mode->hdisplay * scale) in ch7006_setup_properties() 357 vpos = max(0, norm->vdisplay - round_fixed(mode->vdisplay*scale) in ch7006_setup_properties()
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
H A D | ds2760_battery.c | 265 int ret, i, start, count, scale[5]; in ds2760_battery_read_status() local 336 scale[0] = di->full_active_uAh; in ds2760_battery_read_status() 338 scale[i] = scale[i - 1] + di->raw[DS2760_ACTIVE_FULL + 1 + i]; in ds2760_battery_read_status() 340 di->full_active_uAh = battery_interpolate(scale, di->temp_C / 10); in ds2760_battery_read_status() 344 scale[4] = di->raw[DS2760_ACTIVE_EMPTY + 4]; in ds2760_battery_read_status() 346 scale[i] = scale[i + 1] + di->raw[DS2760_ACTIVE_EMPTY + i]; in ds2760_battery_read_status() 348 di->empty_uAh = battery_interpolate(scale, di->temp_C / 10); in ds2760_battery_read_status()
|
/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | ds2760_battery.c | 257 int ret, i, start, count, scale[5]; in ds2760_battery_read_status() local 328 scale[0] = di->full_active_uAh; in ds2760_battery_read_status() 330 scale[i] = scale[i - 1] + di->raw[DS2760_ACTIVE_FULL + 1 + i]; in ds2760_battery_read_status() 332 di->full_active_uAh = battery_interpolate(scale, di->temp_C / 10); in ds2760_battery_read_status() 336 scale[4] = di->raw[DS2760_ACTIVE_EMPTY + 4]; in ds2760_battery_read_status() 338 scale[i] = scale[i + 1] + di->raw[DS2760_ACTIVE_EMPTY + i]; in ds2760_battery_read_status() 340 di->empty_uAh = battery_interpolate(scale, di->temp_C / 10); in ds2760_battery_read_status()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i2c/ |
H A D | ch7006_mode.c | 106 subc, scale, scale_mask, norm_mask, e_hd, e_vd) { \ 128 .dispmode = bitfs(CH7006_DISPMODE_SCALING_RATIO, scale) | \ 135 subc, scale, scale_mask, norm_mask) \ 136 __MODE(f, hd, vd, ht, vt, hsynp, vsynp, subc, scale, \ 335 uint64_t scale, aspect; in ch7006_setup_properties() local 345 scale = norm->vtotal*fixed1; in ch7006_setup_properties() 346 do_div(scale, mode->vtotal); in ch7006_setup_properties() 351 hpos = round_fixed((norm->hvirtual * aspect - mode->hdisplay * scale) in ch7006_setup_properties() 357 vpos = max(0, norm->vdisplay - round_fixed(mode->vdisplay*scale) in ch7006_setup_properties()
|
/third_party/ffmpeg/libavutil/ |
H A D | tx.c | 262 int len, int inv, const void *scale) in ff_tx_null_init() 442 int len, int inv, const void *scale) in ff_tx_init_subtx() 626 ret = cd->init(sctx, cd, flags, opts, len, inv, scale); in ff_tx_init_subtx() 650 int inv, int len, const void *scale, uint64_t flags) in av_tx_init() 665 if (!scale && ((type == AV_TX_FLOAT_MDCT) || (type == AV_TX_INT32_MDCT))) in av_tx_init() 666 scale = &default_scale_f; in av_tx_init() 667 else if (!scale && (type == AV_TX_DOUBLE_MDCT)) in av_tx_init() 668 scale = &default_scale_d; in av_tx_init() 670 ret = ff_tx_init_subtx(&tmp, type, flags, NULL, len, inv, scale); in av_tx_init() 260 ff_tx_null_init(AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale) ff_tx_null_init() argument 440 ff_tx_init_subtx(AVTXContext *s, enum AVTXType type, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale) ff_tx_init_subtx() argument 649 av_tx_init(AVTXContext **ctx, av_tx_fn *tx, enum AVTXType type, int inv, int len, const void *scale, uint64_t flags) av_tx_init() argument
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
H A D | nv30_state_validate.c | 251 unsigned x = CLAMP(vp->translate[0] - fabsf(vp->scale[0]), 0, 4095); in nv30_validate_viewport() 252 unsigned y = CLAMP(vp->translate[1] - fabsf(vp->scale[1]), 0, 4095); in nv30_validate_viewport() 253 unsigned w = CLAMP(2.0f * fabsf(vp->scale[0]), 0, 4096); in nv30_validate_viewport() 254 unsigned h = CLAMP(2.0f * fabsf(vp->scale[1]), 0, 4096); in nv30_validate_viewport() 261 PUSH_DATAf(push, vp->scale[0]); in nv30_validate_viewport() 262 PUSH_DATAf(push, vp->scale[1]); in nv30_validate_viewport() 263 PUSH_DATAf(push, vp->scale[2]); in nv30_validate_viewport() 266 PUSH_DATAf(push, vp->translate[2] - fabsf(vp->scale[2])); in nv30_validate_viewport() 267 PUSH_DATAf(push, vp->translate[2] + fabsf(vp->scale[2])); in nv30_validate_viewport()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
H A D | fd2_emit.c | 212 OUT_RING(ring, fui(ctx->viewport.scale[0])); in fd2_emit_state_binning() 213 OUT_RING(ring, fui(ctx->viewport.scale[1])); in fd2_emit_state_binning() 214 OUT_RING(ring, fui(ctx->viewport.scale[2])); in fd2_emit_state_binning() 300 /* TODO: why multiply scale by 2 ? without it deqp test fails in fd2_emit_state() 338 OUT_RING(ring, fui(ctx->viewport.scale[0])); /* PA_CL_VPORT_XSCALE */ in fd2_emit_state() 340 OUT_RING(ring, fui(ctx->viewport.scale[1])); /* PA_CL_VPORT_YSCALE */ in fd2_emit_state() 342 OUT_RING(ring, fui(ctx->viewport.scale[2])); /* PA_CL_VPORT_ZSCALE */ in fd2_emit_state() 354 OUT_RING(ring, fui(ctx->viewport.scale[0])); in fd2_emit_state() 355 OUT_RING(ring, fui(ctx->viewport.scale[1])); in fd2_emit_state() 356 OUT_RING(ring, fui(ctx->viewport.scale[ in fd2_emit_state() [all...] |
/third_party/vk-gl-cts/external/amber/src/src/ |
H A D | verifier.cc | 280 // ::kSNorm or ::kSRGB, scale the corresponding value in |texel|. 281 // Note that we do not scale values with FormatMode::kUInt, ::kSInt, 483 float scale = fmt->IsNormalized() ? 255.f : 1.f; in Probe() local 488 " Expected: " + std::to_string(command->GetR() * scale) + ", " + in Probe() 489 std::to_string(command->GetG() * scale) + ", " + in Probe() 490 std::to_string(command->GetB() * scale); in Probe() 493 reason += ", " + std::to_string(command->GetA() * scale); in Probe() 498 std::to_string(static_cast<float>(failure_values[0]) * scale) + ", " + in Probe() 499 std::to_string(static_cast<float>(failure_values[1]) * scale) + ", " + in Probe() 500 std::to_string(static_cast<float>(failure_values[2]) * scale); in Probe() [all...] |