/third_party/littlefs/scripts/ |
H A D | plot.py | 94 # 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 D | zink_draw.cpp | 580 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 D | vktShaderRenderDerivateTests.cpp | 361 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 D | imgui_impl_vulkan.cpp | 406 // 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 D | dotest.c | 63 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 D | dng_lens_correction.cpp | 518 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 D | mathmodule.c | 2560 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 D | SkShaper_harfbuzz.cpp | 455 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 D | es3fShaderDerivateTests.cpp | 407 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 D | vktShaderRenderDerivateTests.cpp | 343 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 D | tcuImageCompare.cpp | 44 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()
|
/third_party/skia/tests/ |
H A D | GrStyledShapeTest.cpp | 526 SkScalar scale = SK_Scalar1) in TestCase() 528 this->init(r, scale); in TestCase() 537 TestCase(const GrStyledShape& shape, skiatest::Reporter* r, SkScalar scale = SK_Scalar1) in TestCase() 539 this->init(r, scale); in TestCase() 588 void init(skiatest::Reporter* r, SkScalar scale) { in init() argument 593 *fAppliedPE = fBase->applyStyle(GrStyle::Apply::kPathEffectOnly, scale); in init() 595 fAppliedPE->applyStyle(GrStyle::Apply::kPathEffectAndStrokeRec, scale); in init() 596 *fAppliedFull = fBase->applyStyle(GrStyle::Apply::kPathEffectAndStrokeRec, scale); in init() 654 scale)) { in init() 666 if (fBase->style().applyToPath(&postAllStyle, &fillOrHairline, preStyle, scale)) { in init() [all...] |
/third_party/icu/icu4c/source/test/intltest/ |
H A D | numbertest_api.cpp | 117 TESTCASE_AUTO(scale); in runIndexedTest() 2902 u"compact-short percent scale/100", in unitPercent() 2907 .scale(Scale::powerOfTen(2)), in unitPercent() 5048 void NumberFormatterApiTest::scale() { in scale() function in NumberFormatterApiTest 5051 u"scale/1", in scale() 5053 NumberFormatter::with().scale(Scale::none()), in scale() 5067 u"scale/1000000", in scale() 5068 u"scale/1E6", in scale() 5069 NumberFormatter::with().scale(Scale::powerOfTen(6)), in scale() 5083 u"scale/5. in scale() [all...] |
/third_party/node/deps/v8/src/compiler/backend/ia32/ |
H A D | code-generator-ia32.cc | 114 int scale = static_cast<int>(mode - one); in ScaleFor() local 115 DCHECK(scale >= 0 && scale < 4); in ScaleFor() 116 return static_cast<ScaleFactor>(scale); in ScaleFor() 138 ScaleFactor scale = ScaleFor(kMode_MR1, mode); in MemoryOperand() local 140 return Operand(base, index, scale, disp); in MemoryOperand() 148 ScaleFactor scale = ScaleFor(kMode_MR1I, mode); in MemoryOperand() local 150 return Operand(base, index, scale, ctant.ToInt32(), ctant.rmode()); in MemoryOperand() 157 ScaleFactor scale = ScaleFor(kMode_M1, mode); in MemoryOperand() local 159 return Operand(index, scale, dis in MemoryOperand() 166 ScaleFactor scale = ScaleFor(kMode_M1I, mode); MemoryOperand() local 195 ScaleFactor scale = ScaleFor(kMode_MR1, kMode_MR1); NextMemoryOperand() local [all...] |
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v2_0/hdi_cpu_service/src/ |
H A D | nnrt_device_service.cpp | 384 quantParam->scale = param.scale; in TransTensor()
|
/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/ |
H A D | rosen_render_text_overlay.cpp | 236 canvas->scale(1.0 / viewScale, 1.0 / viewScale); in PaintMagnifier() 411 canvas->scale(-1.0, 1.0); in PaintMore()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/ |
H A D | canvas_paint_method.cpp | 414 // scale in GetDumpInfo() 415 std::string scale = "SCALE: " + std::to_string(rsCanvas_->GetTotalMatrix().Get(RSMatrix::SCALE_X)) + ", " + in GetDumpInfo() local 420 return trans.append(scale).append(skew); in GetDumpInfo()
|
/foundation/arkui/ace_engine/frameworks/core/components/web/ |
H A D | web_component.h | 609 void SetInitialScale(float scale) in SetInitialScale() argument 611 initialScale_ = scale; in SetInitialScale()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/ |
H A D | rs_node.h | 229 void SetScale(float scale); 231 void SetScale(const Vector2f& scale);
|
/foundation/window/window_manager/window_scene/session_manager/src/ |
H A D | scene_input_manager.cpp | 207 Vector2f scale(screenProperty.GetScaleX(), screenProperty.GetScaleY());
in ConstructDisplayInfos() 208 transform = transform.Scale(scale, screenProperty.GetPivotX() * screenWidth,
in ConstructDisplayInfos()
|
/foundation/window/window_manager/wmserver/test/unittest/ |
H A D | window_manager_proxy_test.cpp | 475 float scale = 1.1; in HWTEST_F() local 478 windowManagerProxy_->SetAnchorAndScale(x, y, scale); in HWTEST_F()
|
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
H A D | cxd2820r_core.c | 225 if (c->strength.stat[0].scale == FE_SCALE_RELATIVE) in cxd2820r_read_signal_strength() 241 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in cxd2820r_read_snr()
|
/kernel/linux/linux-5.10/drivers/media/pci/solo6x10/ |
H A D | solo6x10-v4l2.c | 63 int sx, int sy, int ex, int ey, int scale) in solo_win_setup() 73 SOLO_VI_WIN_SCALE(scale)); in solo_win_setup() 62 solo_win_setup(struct solo_dev *solo_dev, u8 ch, int sx, int sy, int ex, int ey, int scale) solo_win_setup() argument
|
/kernel/linux/linux-5.10/drivers/iio/common/st_sensors/ |
H A D | st_sensors_core.c | 401 dev_info(&indio_dev->dev, "Full-scale not possible\n"); in st_sensors_init_sensor() 500 int st_sensors_set_fullscale_by_gain(struct iio_dev *indio_dev, int scale) in st_sensors_set_fullscale_by_gain() argument 506 if ((sdata->sensor_settings->fs.fs_avl[i].gain == scale) && in st_sensors_set_fullscale_by_gain()
|
/kernel/linux/linux-5.10/tools/iio/ |
H A D | iio_utils.c | 418 current->scale = 1.0; in build_channel_array() 470 /* Find the scale */ in build_channel_array() 471 ret = iioutils_get_param_float(¤t->scale, in build_channel_array() 472 "scale", in build_channel_array()
|