/third_party/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_matrix_filter.c | 279 viewport.scale[0] = dst->width; in vl_matrix_filter_render() 280 viewport.scale[1] = dst->height; in vl_matrix_filter_render() 281 viewport.scale[2] = 1; in vl_matrix_filter_render()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_uniforms.c | 219 cl_aligned_f(&uniforms, vc4->viewport.scale[0] * 16.0f); in vc4_write_uniforms() 222 cl_aligned_f(&uniforms, vc4->viewport.scale[1] * 16.0f); in vc4_write_uniforms() 229 cl_aligned_f(&uniforms, vc4->viewport.scale[2]); in vc4_write_uniforms()
|
/third_party/skia/src/opts/ |
H A D | SkBlitRow_opts.h | 106 __m128i scale = _mm_sub_epi32(_mm_set1_epi32(256), in SkPMSrcOver_SSE2() local 108 __m128i scale_x2 = _mm_or_si128(_mm_slli_epi32(scale, 16), scale); in SkPMSrcOver_SSE2()
|
/third_party/skia/src/core/ |
H A D | SkStrokerPriv.cpp | 88 afterUnitNormal.scale(radius, &after); in BluntJoiner() 130 after.scale(radius); in RoundJoiner() 210 after.scale(radius); in MiterJoiner()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/MCParser/ |
H A D | MCTargetAsmParser.h | 76 IntelExpr(StringRef baseReg, StringRef indexReg, unsigned scale, in IntelExpr() 80 if (scale) in IntelExpr() 81 Scale = scale; in IntelExpr()
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
H A D | dng_color_spec.cpp | 436 real64 scale = MaxEntry (fPCStoCamera * PCStoXYZ ()); in SetWhiteXY() local 438 if (scale == 0) in SetWhiteXY() 442 fPCStoCamera = (1.0 / scale) * fPCStoCamera; in SetWhiteXY()
|
/third_party/skia/gm/ |
H A D | compressed_textures.cpp | 36 static SkPoint gen_pt(float angle, const SkVector& scale) { in gen_pt() argument 40 return { scale.fX * c, scale.fY * s }; in gen_pt()
|
/third_party/skia/modules/skresources/src/ |
H A D | SkResources.cpp | 134 // When the image is too large, decode and scale down to a reasonable size. in generateFrame() 135 const auto scale = std::sqrt(static_cast<float>(kMaxArea) / image_area); in generateFrame() 136 const auto info = SkImageInfo::MakeN32Premul(scale * image->width(), in generateFrame() 137 scale * image->height()); in generateFrame()
|
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
H A D | gl4cDirectStateAccessVertexArraysTests.cpp | 2169 const glw::GLdouble scale = normalized ? NormalizationScaleFactor<T>() : 1.0; in PrepareVAO() local 2171 const T array_data[16] = { (T)(0.0 * scale), (T)(1.0 * scale), (T)(2.0 * scale), (T)(3.0 * scale), in PrepareVAO() 2172 (T)(4.0 * scale), (T)(5.0 * scale), (T)(6.0 * scale), (T)(7.0 * scale), in PrepareVAO() 2173 (T)(8.0 * scale), ( in PrepareVAO() 2360 const glw::GLdouble scale = normalized ? (1.0 / 16.0) /* Floating point scalling factor. */ : 1.0; DrawAndCheck() local [all...] |
/third_party/skia/third_party/externals/imgui/ |
H A D | imgui_draw.cpp | 1832 // Helper to scale the ClipRect field of each ImDrawCmd. 1833 // Use if your final output buffer is at a different scale than draw_data->DisplaySize, 1881 const ImVec2 scale = ImVec2( in ShadeVertsLinearUV() local 1892 vertex->uv = ImClamp(uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale), min, max); in ShadeVertsLinearUV() 1897 vertex->uv = uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale); in ShadeVertsLinearUV() 2465 const float scale = (cfg.SizePixels > 0) ? stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels) : stbtt_ScaleForMappingEmToPixels(&src_tmp.FontInfo, -cfg.SizePixels); in ImFontAtlasBuildWithStbTruetype() local 2472 stbtt_GetGlyphBitmapBoxSubpixel(&src_tmp.FontInfo, glyph_index_in_font, scale * cfg.OversampleH, scale * cfg.OversampleV, 0, 0, &x0, &y0, &x1, &y1); in ImFontAtlasBuildWithStbTruetype() 3325 const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const in CalcWordWrapPositionA() argument 3345 wrap_width /= scale; // W in CalcWordWrapPositionA() 3430 const float scale = size / FontSize; CalcTextSizeA() local 3526 float scale = (size >= 0.0f) ? (size / FontSize) : 1.0f; RenderChar() local 3547 const float scale = size / FontSize; RenderText() local 3742 RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale) RenderArrow() argument 3793 RenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow) RenderMouseCursor() argument [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | stat-shadow.c | 217 count *= counter->scale; in perf_stat__update_shadow_stats() 792 double scale; in prepare_metric() local 804 scale = 1e-9; in prepare_metric() 811 scale = 1.0; in prepare_metric() 832 expr__add_id_val(pctx, n, avg_stats(stats)*scale); in prepare_metric() 858 double ratio, scale; in generic_metric() local 873 &unit, &scale) >= 0) { in generic_metric() 874 ratio *= scale; in generic_metric() 1086 avg / (ratio * evsel->scale)); in perf_stat__print_shadow_stats()
|
/third_party/ffmpeg/libavfilter/ |
H A D | af_afwtdn.c | 951 const double scale = sqrt(2.0 * log(length)); in filter_channel() local 954 measure_mean(cp->output_coefs[level], length)) * scale; in filter_channel() 955 absmean[level] = measure_absmean(cp->output_coefs[level], length) * scale; in filter_channel() 960 const double scale = sqrt(2.0 * log(length)); in filter_channel() local 962 stddev[level] = 0.5 * s->sigma * scale; in filter_channel() 963 absmean[level] = 0.5 * s->sigma * scale; in filter_channel() 987 const double scale = sqrt(2.0 * log(length)); in filter_channel() local 990 stddev[level] = new_stddev[level] * scale; in filter_channel() 991 absmean[level] = new_absmean[level] * scale; in filter_channel()
|
H A D | vf_mix.c | 43 float scale; member 103 if (s->scale == 0) { in parse_weights() 106 s->wfactor = s->scale; in parse_weights() 366 { "scale", "set scale", OFFSET(scale), AV_OPT_TYPE_FLOAT, {.dbl=0}, 0, INT16_MAX, .flags = TFLAGS }, 453 { "scale", "set scale", OFFSET(scale), AV_OPT_TYPE_FLOAT, {.dbl=0}, 0, INT16_MAX, .flags = TFLAGS },
|
/third_party/python/Lib/tkinter/ |
H A D | ttk.py | 1049 Widget.__init__(self, master, "ttk::scale", kw) 1053 """Modify or query scale options. 1069 x and y are pixel coordinates relative to the scale widget 1482 The Ttk Scale can be accessed through instance.scale, and Ttk Label 1493 Specifies how to display the label relative to the scale. 1504 self.scale = Scale(self, variable=self._variable, from_=from_, to=to) 1505 self.scale.bind('<<RangeChanged>>', self._adjust) 1507 # position scale and label according to the compound option 1510 self.scale.pack(side=scale_side, fill='x') 1517 # update the label as scale o [all...] |
/kernel/linux/linux-5.10/arch/x86/events/ |
H A D | rapl.c | 163 pr_warn("Invalid domain %d, failed to scale data\n", cfg); in rapl_scale() 167 * scale delta to smallest unit (1/2^32) in rapl_scale() 168 * users must then scale back: count * 1/(1e9*2^32) to get Joules in rapl_scale() 412 RAPL_EVENT_ATTR_STR(energy-cores.scale, rapl_cores_scale, "2.3283064365386962890625e-10"); 413 RAPL_EVENT_ATTR_STR(energy-pkg.scale, rapl_pkg_scale, "2.3283064365386962890625e-10"); 414 RAPL_EVENT_ATTR_STR(energy-ram.scale, rapl_ram_scale, "2.3283064365386962890625e-10"); 415 RAPL_EVENT_ATTR_STR(energy-gpu.scale, rapl_gpu_scale, "2.3283064365386962890625e-10"); 416 RAPL_EVENT_ATTR_STR(energy-psys.scale, rapl_psys_scale, "2.3283064365386962890625e-10");
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | time.c | 886 u64 scale; in time_init() local 905 * Compute scale factor for sched_clock. in time_init() 911 * giving us the scale factor and shift count to use in in time_init() 915 scale = res.result_low; in time_init() 917 scale = (scale >> 1) | (res.result_high << 63); in time_init() 920 tb_to_ns_scale = scale; in time_init()
|
/kernel/linux/linux-5.10/drivers/pwm/ |
H A D | pwm-stm32.c | 175 unsigned int psc = 0, icpsc, scale; in stm32_pwm_capture() local 228 * - decrease counter clock prescaler, scale up to max rate. in stm32_pwm_capture() 234 scale = max_arr / min(max_arr, raw_prd); in stm32_pwm_capture() 236 scale = priv->max_arr; /* bellow resolution, use max scale */ in stm32_pwm_capture() 239 if (psc && scale > 1) { in stm32_pwm_capture() 240 /* 2nd measure with new scale */ in stm32_pwm_capture() 241 psc /= scale; in stm32_pwm_capture()
|
/kernel/linux/linux-5.10/drivers/sbus/char/ |
H A D | envctrl.c | 107 * through a data table and a scale. 114 #define ENVCTRL_TRANSLATE_SCALE 4 /* table[data]/scale */ 147 unsigned int scale; member 327 int scale, char *tbl, char *bufdata) in envctrl_i2c_data_translate() 345 /* Decode this way: data = table[data]/scale */ in envctrl_i2c_data_translate() 346 sprintf(bufdata,"%d ", (tbl[data] * 10) / (scale)); in envctrl_i2c_data_translate() 389 pchild->tblprop_array[i].scale, in envctrl_read_cpu_info() 420 pchild->tblprop_array[i].scale, in envctrl_read_noncpu_info() 326 envctrl_i2c_data_translate(unsigned char data, int translate_type, int scale, char *tbl, char *bufdata) envctrl_i2c_data_translate() argument
|
/kernel/linux/linux-6.6/drivers/sbus/char/ |
H A D | envctrl.c | 107 * through a data table and a scale. 114 #define ENVCTRL_TRANSLATE_SCALE 4 /* table[data]/scale */ 147 unsigned int scale; member 327 int scale, char *tbl, char *bufdata) in envctrl_i2c_data_translate() 345 /* Decode this way: data = table[data]/scale */ in envctrl_i2c_data_translate() 346 sprintf(bufdata,"%d ", (tbl[data] * 10) / (scale)); in envctrl_i2c_data_translate() 389 pchild->tblprop_array[i].scale, in envctrl_read_cpu_info() 420 pchild->tblprop_array[i].scale, in envctrl_read_noncpu_info() 326 envctrl_i2c_data_translate(unsigned char data, int translate_type, int scale, char *tbl, char *bufdata) envctrl_i2c_data_translate() argument
|
/kernel/linux/linux-6.6/drivers/pwm/ |
H A D | pwm-stm32.c | 175 unsigned int psc = 0, icpsc, scale; in stm32_pwm_capture() local 232 * - decrease counter clock prescaler, scale up to max rate. in stm32_pwm_capture() 238 scale = max_arr / min(max_arr, raw_prd); in stm32_pwm_capture() 240 scale = priv->max_arr; /* bellow resolution, use max scale */ in stm32_pwm_capture() 243 if (psc && scale > 1) { in stm32_pwm_capture() 244 /* 2nd measure with new scale */ in stm32_pwm_capture() 245 psc /= scale; in stm32_pwm_capture()
|
/kernel/linux/linux-6.6/arch/x86/events/ |
H A D | rapl.c | 163 pr_warn("Invalid domain %d, failed to scale data\n", cfg); in rapl_scale() 167 * scale delta to smallest unit (1/2^32) in rapl_scale() 168 * users must then scale back: count * 1/(1e9*2^32) to get Joules in rapl_scale() 412 RAPL_EVENT_ATTR_STR(energy-cores.scale, rapl_cores_scale, "2.3283064365386962890625e-10"); 413 RAPL_EVENT_ATTR_STR(energy-pkg.scale, rapl_pkg_scale, "2.3283064365386962890625e-10"); 414 RAPL_EVENT_ATTR_STR(energy-ram.scale, rapl_ram_scale, "2.3283064365386962890625e-10"); 415 RAPL_EVENT_ATTR_STR(energy-gpu.scale, rapl_gpu_scale, "2.3283064365386962890625e-10"); 416 RAPL_EVENT_ATTR_STR(energy-psys.scale, rapl_psys_scale, "2.3283064365386962890625e-10");
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/ |
H A D | DecimalQuantity_SimpleStorage.java | 59 // the "scale" of the long (the power of 10 represented by the rightmost digit in the long), and 468 * @param scale The scale of the final rounded number. More negative means more decimal places. 472 private void divideBy(BigDecimal divisor, int scale, MathContext mathContext) { in divideBy() argument 474 // Negate the scale because BigDecimal's scale is defined as the inverse of our scale in divideBy() 475 fallback = fallback.divide(divisor, -scale, mathContext.getRoundingMode()); in divideBy() 494 int scale = (primary == -1) ? scaleBigDecimal(fallback) : primaryScale; in getMagnitude() 499 return scale in getMagnitude() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/impl/number/ |
H A D | DecimalQuantity_SimpleStorage.java | 62 // the "scale" of the long (the power of 10 represented by the rightmost digit in the long), and 461 * @param scale The scale of the final rounded number. More negative means more decimal places. 465 private void divideBy(BigDecimal divisor, int scale, MathContext mathContext) { in divideBy() argument 467 // Negate the scale because BigDecimal's scale is defined as the inverse of our scale in divideBy() 468 fallback = fallback.divide(divisor, -scale, mathContext.getRoundingMode()); in divideBy() 487 int scale = (primary == -1) ? scaleBigDecimal(fallback) : primaryScale; in getMagnitude() 492 return scale in getMagnitude() [all...] |
/third_party/ntfs-3g/ntfsprogs/ |
H A D | utils.c | 322 * @scale: Whether or not to allow a suffix to scale the value 324 * Read a string and convert it to a number. Strings may be suffixed to scale 341 int utils_parse_size(const char *value, s64 *size, BOOL scale) in utils_parse_size() argument 364 if (scale) { in utils_parse_size() 405 int utils_parse_range(const char *string, s64 *start, s64 *finish, BOOL scale) in utils_parse_range() argument 420 if (!utils_parse_size(string, &a, scale)) in utils_parse_range() 430 if (!utils_parse_size(middle+1, &b, scale)) in utils_parse_range()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | OverlayWidgets.cpp | 150 float scale, 158 valuesOut[i] = static_cast<uint32_t>(srcValues[index] * scale); 231 float scale, 254 float scale, in AppendGraphCommon() 264 GetGraphValues(runningValues, startIndex, scale, graphWidget->values); in AppendGraphCommon() 250 AppendGraphCommon(const overlay::Widget *widget, const gl::Extents &imageExtent, const std::vector<size_t> runningValues, size_t startIndex, float scale, GraphWidgetData *graphWidget, OverlayWidgetCounts *widgetCounts) AppendGraphCommon() argument
|