Home
last modified time | relevance | path

Searched refs:scale (Results 1426 - 1450 of 1990) sorted by relevance

1...<<51525354555657585960>>...80

/third_party/node/deps/v8/src/codegen/loong64/
H A Dmacro-assembler-loong64.h445 void SmiScale(Register dst, Register src, int scale) { in SmiScale() argument
448 srai_d(dst, src, kSmiShift - scale); in SmiScale()
451 DCHECK_GE(scale, kSmiTagSize); in SmiScale()
452 slli_w(dst, src, scale - kSmiTagSize); in SmiScale()
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_shadow_lod/
H A DesextcTextureShadowLodFunctionsTest.cpp179 tcu::Vec4 scale; member
182 TexLookupParams(void) : lod(0.0f), offset(0), scale(1.0f), bias(0.0f) in TexLookupParams()
423 // Base coord scale & bias in init()
705 // Set lookup scale & bias in initTexture()
706 m_lookupParams.scale = fmtInfo.lookupScale; in initTexture()
925 gl.uniform4fv(gl.getUniformLocation(programID, "u_scale"), 1, m_lookupParams.scale.getPtr()); in setupUniforms()
/third_party/skia/src/core/
H A DSkGpuBlurUtils.cpp58 float scale = 1.0f / sum; in fill_in_2D_gaussian_kernel() local
60 kernel[i] *= scale; in fill_in_2D_gaussian_kernel()
580 // Compute the sigmas using the actual scale factors used once we integerized the in GaussianBlur()
656 // The are the src rows and columns from the source that we will scale into the dst padding. in GaussianBlur()
724 // integer dimension blurred result when we scale back up. in GaussianBlur()
867 float scale = 1.0f / sum; in Compute1DGaussianKernel() local
869 kernel[i] *= scale; in Compute1DGaussianKernel()
/third_party/skia/third_party/externals/libwebp/src/enc/
H A Dpicture_csp_enc.c96 const double scale = (double)(1 << kGammaTabFix) / kGammaScale; in WEBP_DSP_INIT_FUNC() local
103 kLinearToGammaTab[v] = (int)(255. * pow(scale * v, 1. / kGamma) + .5); in WEBP_DSP_INIT_FUNC()
190 const double scale = 1. / kGammaTabSize; in WEBP_DSP_INIT_FUNC() local
206 const double g = scale * v; in WEBP_DSP_INIT_FUNC()
/third_party/skia/src/shaders/
H A DSkImageShader.cpp436 limit_x->scale = pm.width(); in doStages()
438 limit_y->scale = pm.height(); in doStages()
445 decal_ctx->limit_x = limit_x->scale; in doStages()
446 decal_ctx->limit_y = limit_y->scale; in doStages()
773 // repeat() and mirror() are written assuming they'll be followed by a [0,scale) clamp. in makeProgram()
778 // abs( (v-scale) - (2*scale)*floor((v-scale)*(0.5f/scale)) - scale ) in makeProgram()
[all...]
/kernel/linux/linux-5.10/drivers/target/iscsi/cxgbit/
H A Dcxgbit_cm.c830 u8 scale; in cxgbit_set_tcp_window() local
833 scale = linkspeed / SPEED_10000; in cxgbit_set_tcp_window()
837 if (scale) in cxgbit_set_tcp_window()
838 csk->rcv_win *= scale; in cxgbit_set_tcp_window()
842 if (scale) in cxgbit_set_tcp_window()
843 csk->snd_win *= scale; in cxgbit_set_tcp_window()
/kernel/linux/linux-6.6/drivers/target/iscsi/cxgbit/
H A Dcxgbit_cm.c830 u8 scale; in cxgbit_set_tcp_window() local
833 scale = linkspeed / SPEED_10000; in cxgbit_set_tcp_window()
837 if (scale) in cxgbit_set_tcp_window()
838 csk->rcv_win *= scale; in cxgbit_set_tcp_window()
843 if (scale) in cxgbit_set_tcp_window()
844 csk->snd_win *= scale; in cxgbit_set_tcp_window()
/kernel/linux/linux-6.6/drivers/gpu/drm/vc4/
H A Dvc4_plane.c524 u32 scale, recip; in vc4_write_tpz() local
526 scale = (1 << 16) * src / dst; in vc4_write_tpz()
529 * as (1<<32)/scale, ~0 is close enough. in vc4_write_tpz()
531 recip = ~0 / scale; in vc4_write_tpz()
534 VC4_SET_FIELD(scale, SCALER_TPZ0_SCALE) | in vc4_write_tpz()
542 u32 scale = (1 << 16) * src / dst; in vc4_write_ppf() local
546 VC4_SET_FIELD(scale, SCALER_PPF_SCALE) | in vc4_write_ppf()
/third_party/ffmpeg/libavcodec/
H A Dmpegaudiodec_template.c244 /* scale factor multiply for layer 1 */ in decode_init_static()
417 /* scale factors */ in mp_decode_layer1()
470 int scale, qindex, bits, steps, k, l, m, b; in mp_decode_layer2() local
506 /* scale codes */ in mp_decode_layer2()
518 /* scale factors */ in mp_decode_layer2()
559 scale = scale_factors[ch][i][k]; in mp_decode_layer2()
570 l2_unscale_group(steps, v2 & 15, scale); in mp_decode_layer2()
572 l2_unscale_group(steps, (v2 >> 4) & 15, scale); in mp_decode_layer2()
574 l2_unscale_group(steps, v2 >> 8 , scale); in mp_decode_layer2()
578 v = l1_unscale(bits - 1, v, scale); in mp_decode_layer2()
[all...]
/third_party/lame/libmp3lame/
H A Dlame.c678 /* mapping VBR scale to internal VBR quality settings */ in lame_init_params()
1240 m[0][0] *= gfp->scale; in lame_init_params()
1241 m[0][1] *= gfp->scale; in lame_init_params()
1242 m[1][0] *= gfp->scale; in lame_init_params()
1243 m[1][1] *= gfp->scale; in lame_init_params()
1435 MSGF(gfc, "\tscaling: %g\n", gfp->scale); in lame_print_internals()
1614 /* find the gain and scale change required for no clipping */ in save_gain_values()
1924 /* input is assumed to be normalized to +/- 32768 for full scale */ in lame_encode_buffer_float()
1934 /* input is assumed to be normalized to +/- 1.0 for full scale */ in lame_encode_buffer_ieee_float()
1944 /* input is assumed to be normalized to +/- 1.0 for full scale */ in lame_encode_buffer_interleaved_ieee_float()
[all...]
/third_party/mesa3d/src/compiler/nir/
H A Dnir_lower_tex.c186 nir_ssa_def *scale = nir_frcp(b, txs); in lower_offset() local
191 scale)); in lower_offset()
228 nir_ssa_def *scale = nir_frcp(b, txs); in lower_rect() local
236 nir_src_for_ssa(nir_fmul(b, coords, scale))); in lower_rect()
246 nir_ssa_def *scale = nir_build_load_texture_rect_scaling(b, 32, idx); in lower_rect_tex_scale() local
254 nir_src_for_ssa(nir_fmul(b, coords, scale))); in lower_rect_tex_scale()
/third_party/littlefs/scripts/
H A Dplot.py94 # figure out prefix and scale
113 # figure out prefix and scale
279 # scale if we're printing with dots or braille
294 def scale(self, x, y): member in Plot
295 # scale and clamp
321 # scale
322 x, y = self.scale(x, y)
331 # scale
332 x1, y1 = self.scale(x1, y1)
333 x2, y2 = self.scale(x
792 def scale(self, width, height): global() member in Grid
[all...]
/third_party/mesa3d/src/gallium/drivers/zink/
H A Dzink_draw.cpp580 ctx->vp_state.viewport_states[i].translate[0] - ctx->vp_state.viewport_states[i].scale[0], in zink_draw()
581 ctx->vp_state.viewport_states[i].translate[1] - ctx->vp_state.viewport_states[i].scale[1], in zink_draw()
582 MAX2(ctx->vp_state.viewport_states[i].scale[0] * 2, 1), in zink_draw()
583 ctx->vp_state.viewport_states[i].scale[1] * 2, in zink_draw()
586 ctx->vp_state.viewport_states[i].translate[2] - ctx->vp_state.viewport_states[i].scale[2], in zink_draw()
588 CLAMP(ctx->vp_state.viewport_states[i].translate[2] + ctx->vp_state.viewport_states[i].scale[2], in zink_draw()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
H A DvktShaderRenderDerivateTests.cpp361 const tcu::Vec4& scale, in verifyConstantDerivate()
379 const tcu::Vec4 resDerivate = readDerivate(result, scale, bias, x, y); in verifyConstantDerivate()
1032 const tcu::Vec4 scale = isX ? xScale : yScale; in verify() local
1039 reference = reference * scale; in verify()
1179 // No scale or bias used for accuracy. in LinearDerivateCase()
1185 // Compute scale - bias that normalizes to 0..1 range. in LinearDerivateCase()
1337 const tcu::Vec4 scale = isX ? xScale : yScale; in verify() local
1344 reference = reference * scale; in verify()
1475 // No scale or bias used for accuracy. in TextureDerivateCase()
1481 // Compute scale in TextureDerivateCase()
355 verifyConstantDerivate(tcu::TestLog& log, const tcu::ConstPixelBufferAccess& result, const tcu::PixelBufferAccess& errorMask, glu::DataType dataType, const tcu::Vec4& reference, const tcu::Vec4& threshold, const tcu::Vec4& scale, const tcu::Vec4& bias, VerificationLogging logPolicy = LOG_ALL) verifyConstantDerivate() argument
[all...]
/third_party/skia/third_party/externals/imgui/backends/
H A Dimgui_impl_vulkan.cpp406 // Setup scale and translation: in ImGui_ImplVulkan_SetupRenderState()
409 float scale[2]; in ImGui_ImplVulkan_SetupRenderState() local
410 scale[0] = 2.0f / draw_data->DisplaySize.x; in ImGui_ImplVulkan_SetupRenderState()
411 scale[1] = 2.0f / draw_data->DisplaySize.y; in ImGui_ImplVulkan_SetupRenderState()
413 translate[0] = -1.0f - draw_data->DisplayPos.x * scale[0]; in ImGui_ImplVulkan_SetupRenderState()
414 translate[1] = -1.0f - draw_data->DisplayPos.y * scale[1]; in ImGui_ImplVulkan_SetupRenderState()
415 vkCmdPushConstants(command_buffer, bd->PipelineLayout, VK_SHADER_STAGE_VERTEX_BIT, sizeof(float) * 0, sizeof(float) * 2, scale); in ImGui_ImplVulkan_SetupRenderState()
423 // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) in ImGui_ImplVulkan_RenderDrawData()
767 // Constants: we are using 'vec2 offset' and 'vec2 scale' instead of a full 3d projection matrix in ImGui_ImplVulkan_CreatePipelineLayout()
942 // Constants: we are using 'vec2 offset' and 'vec2 scale' instea in ImGui_ImplVulkan_CreateDeviceObjects()
[all...]
/third_party/optimized-routines/math/test/rtest/
H A Ddotest.c63 static uint32 doubletop(int x, int scale);
64 static uint32 floatval(int x, int scale);
2155 static uint32 doubletop(int x, int scale) { in doubletop() argument
2156 int e = 0x412 + scale; in doubletop()
2162 static uint32 floatval(int x, int scale) { in floatval() argument
2163 int e = 0x95 + scale; in floatval()
/third_party/skia/third_party/externals/dng_sdk/source/
H A Ddng_lens_correction.cpp518 const real64 scale = 0.1 * k5;
522 roots [numRoots++] = scale * (offset + sDiscrim);
523 roots [numRoots++] = scale * (offset - sDiscrim);
555 const real64 scale = sqrt (21.0) / (42.0 * k7);
561 const real64 sDiscrim1 = scale * sqrt (discrim1);
572 const real64 sDiscrim2 = scale * sqrt (discrim2);
2227 // Find origin and scale.
2250 // Find maximum scale factor.
2268 // Allocate 16-bit scale table.
/third_party/python/Modules/
H A Dmathmodule.c2560 double x, scale, oldcsum, csum = 1.0, frac1 = 0.0, frac2 = 0.0, frac3 = 0.0; in vector_norm() local
2576 scale = ldexp(1.0, -max_e); in vector_norm()
2577 assert(max * scale >= 0.5); in vector_norm()
2578 assert(max * scale < 1.0); in vector_norm()
2583 x *= scale; in vector_norm()
2634 return (h + x / (2.0 * h)) / scale; in vector_norm()
2637 So instead of multiplying by a scale, we just divide by *max*. in vector_norm()
/third_party/skia/modules/skshaper/src/
H A DSkShaper_harfbuzz.cpp455 int scale = skhb_position(font.getSize()); local
456 hb_font_set_scale(skFont.get(), scale, scale);
468 int scale = skhb_position(font.GetSize()); local
469 hb_font_set_scale(skFont.get(), scale, scale);
1623 // Undo skhb_position with (1.0/(1<<16)) and scale as needed.
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fShaderDerivateTests.cpp407 const tcu::Vec4& scale, in verifyConstantDerivate()
422 const tcu::Vec4 resDerivate = readDerivate(result, scale, bias, x, y); in verifyConstantDerivate()
729 << TestLog::Message << "u_scale: " << m_derivScale << ", u_bias: " << m_derivBias << " (displayed values have scale/bias removed)" << TestLog::EndMessage in iterate()
1071 // No scale or bias used for accuracy. in init()
1077 // Compute scale - bias that normalizes to 0..1 range. in init()
1114 const tcu::Vec4 scale = isX ? xScale : yScale; in verify() local
1123 reference = reference * scale; in verify()
1371 // No scale or bias used for accuracy. in init()
1377 // Compute scale - bias that normalizes to 0..1 range. in init()
1446 const tcu::Vec4 scale in verify() local
401 verifyConstantDerivate(tcu::TestLog& log, const tcu::ConstPixelBufferAccess& result, const tcu::PixelBufferAccess& errorMask, glu::DataType dataType, const tcu::Vec4& reference, const tcu::Vec4& threshold, const tcu::Vec4& scale, const tcu::Vec4& bias, VerificationLogging logPolicy = LOG_ALL) verifyConstantDerivate() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
H A DvktShaderRenderDerivateTests.cpp343 const tcu::Vec4& scale, in verifyConstantDerivate()
358 const tcu::Vec4 resDerivate = readDerivate(result, scale, bias, x, y); in verifyConstantDerivate()
1005 const tcu::Vec4 scale = isX ? xScale : yScale; in verify() local
1012 reference = reference * scale; in verify()
1197 // No scale or bias used for accuracy. in initPrograms()
1203 // Compute scale - bias that normalizes to 0..1 range. in initPrograms()
1311 const tcu::Vec4 scale = isX ? xScale : yScale; in verify() local
1318 reference = reference * scale; in verify()
1513 // No scale or bias used for accuracy. in initPrograms()
1519 // Compute scale in initPrograms()
337 verifyConstantDerivate(tcu::TestLog& log, const tcu::ConstPixelBufferAccess& result, const tcu::PixelBufferAccess& errorMask, glu::DataType dataType, const tcu::Vec4& reference, const tcu::Vec4& threshold, const tcu::Vec4& scale, const tcu::Vec4& bias, VerificationLogging logPolicy = LOG_ALL) verifyConstantDerivate() argument
[all...]
/third_party/vk-gl-cts/framework/common/
H A DtcuImageCompare.cpp44 void computeScaleAndBias (const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, tcu::Vec4& scale, tcu::Vec4& bias) in computeScaleAndBias() argument
80 scale[c] = (maxVal[c] < eps) ? 1.0f : (1.0f / maxVal[c]); in computeScaleAndBias()
81 bias[c] = (c == 3) ? (1.0f - maxVal[c]*scale[c]) : (0.0f - minVal[c]*scale[c]); in computeScaleAndBias()
85 scale[c] = 1.0f / (maxVal[c] - minVal[c]); in computeScaleAndBias()
86 bias[c] = 0.0f - minVal[c]*scale[c]; in computeScaleAndBias()
/kernel/linux/linux-5.10/arch/x86/events/amd/
H A Dpower.c172 EVENT_ATTR_STR(power-pkg.scale, power_pkg_scale, "1.000000e-3");
/kernel/linux/linux-5.10/drivers/input/mouse/
H A Dpsmouse.h121 void (*set_scale)(struct psmouse *psmouse, enum psmouse_scale scale);
/kernel/linux/linux-5.10/tools/perf/util/
H A Dstat.h107 bool scale; member

Completed in 56 milliseconds

1...<<51525354555657585960>>...80