/third_party/python/Lib/tkinter/test/test_ttk/ |
H A D | test_widgets.py | 763 self.scale = self.create() 764 self.scale.pack() 765 self.scale.update() 789 funcid = self.scale.bind('<<RangeChanged>>', lambda evt: failure.pop()) 791 self.scale['from'] = 10 792 self.scale['from_'] = 10 793 self.scale['to'] = 3 798 self.scale.configure(from_=2, to=5) 799 self.scale.configure(from_=0, to=-2) 800 self.scale [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | ac3dsp.c | 59 const float scale = 1 << 24; in float_to_fixed24_c() local 61 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c() 62 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c() 63 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c() 64 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c() 65 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c() 66 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c() 67 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c() 68 *dst++ = lrintf(*src++ * scale); in float_to_fixed24_c()
|
H A D | 4xm.c | 281 #define LE_CENTRIC_MUL(dst, src, scale, dc) \ 285 tmpval = tmpval * (scale) + (dc); \ 290 #define LE_CENTRIC_MUL(dst, src, scale, dc) \ 292 unsigned tmpval = AV_RN32(src) * (scale) + (dc); \ 298 int h, int stride, int scale, unsigned dc) in mcdc() 306 dst[0] = scale * src[0] + dc; in mcdc() 307 if (scale) in mcdc() 314 LE_CENTRIC_MUL(dst, src, scale, dc); in mcdc() 315 if (scale) in mcdc() 322 LE_CENTRIC_MUL(dst, src, scale, d in mcdc() 297 mcdc(uint16_t *dst, const uint16_t *src, int log2w, int h, int stride, int scale, unsigned dc) mcdc() argument 348 int index, h, code, ret, scale = 1; decode_p_block() local [all...] |
H A D | mss2.c | 98 int scale = av_log2(range) - av_log2(n); in arith2_get_number() local 101 if (n << scale > range) in arith2_get_number() 102 scale--; in arith2_get_number() 104 n <<= scale; in arith2_get_number() local 106 val = arith2_get_scaled_value(c->value - c->low, n, range) >> scale; in arith2_get_number() 108 arith2_rescale_interval(c, range, val << scale, (val + 1) << scale, n); in arith2_get_number() 118 int scale = av_log2(range) - av_log2(n); in arith2_get_prob() local 121 if (n << scale > range) in arith2_get_prob() 122 scale in arith2_get_prob() 124 n <<= scale; arith2_get_prob() local [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_remap_opencl.c | 82 const float scale = 1.f / 255.f; in remap_opencl_load() local 88 ctx->cl_fill_color.s[rgba_map[0]] = ctx->fill_rgba[0] * scale; in remap_opencl_load() 89 ctx->cl_fill_color.s[rgba_map[1]] = ctx->fill_rgba[1] * scale; in remap_opencl_load() 90 ctx->cl_fill_color.s[rgba_map[2]] = ctx->fill_rgba[2] * scale; in remap_opencl_load() 91 ctx->cl_fill_color.s[rgba_map[3]] = ctx->fill_rgba[3] * scale; in remap_opencl_load() 93 ctx->cl_fill_color.s[0] = RGB_TO_Y_BT709(ctx->fill_rgba[0], ctx->fill_rgba[1], ctx->fill_rgba[2]) * scale; in remap_opencl_load() 94 ctx->cl_fill_color.s[1] = RGB_TO_U_BT709(ctx->fill_rgba[0], ctx->fill_rgba[1], ctx->fill_rgba[2], 0) * scale; in remap_opencl_load() 95 ctx->cl_fill_color.s[2] = RGB_TO_V_BT709(ctx->fill_rgba[0], ctx->fill_rgba[1], ctx->fill_rgba[2], 0) * scale; in remap_opencl_load() 96 ctx->cl_fill_color.s[3] = ctx->fill_rgba[3] * scale; in remap_opencl_load()
|
H A D | phase_template.c | 78 double scale; in analyze_plane() local 157 scale = 1.0 / (w * (h - 3)) * factor; in analyze_plane() 158 pdiff *= scale; in analyze_plane() 159 tdiff *= scale; in analyze_plane() 160 bdiff *= scale; in analyze_plane()
|
H A D | vf_selectivecolor.c | 299 static inline int comp_adjust(int scale, float value, float adjust, float k, int correction_method) in comp_adjust() argument 306 return lrintf(av_clipf(res, min, max) * scale); in comp_adjust() 339 const float scale = 1.f / max; \ 362 const float rnorm = r * scale; \ 363 const float gnorm = g * scale; \ 364 const float bnorm = b * scale; \ 371 const int scale = pr->get_scale(r, g, b, min_color, max_color); \ 373 if (scale > 0) { \ 380 adjust_r += comp_adjust(scale, rnorm, adj_c, k, correction_method); \ 381 adjust_g += comp_adjust(scale, gnor [all...] |
/third_party/skia/gm/ |
H A D | drawatlas.cpp | 98 { 2, 0, 110, 10 }, // scale + translate 100 { 2, -30, 310, 30 }, // scale + rotate + translate 228 canvas->scale(0.5f, 0.5f); in DEF_SIMPLE_GM() 246 SkScalar scale = 1; in DEF_SIMPLE_GM() local 249 scale = SkScalarSin(i * SK_ScalarPI / (len-1)) * 0.75f + 0.5f; in DEF_SIMPLE_GM() 250 xforms[i] = SkRSXform::Make(scale, 0, x, y); in DEF_SIMPLE_GM() 251 x += 50 * scale; in DEF_SIMPLE_GM() 284 SkScalar scale = 1; in DEF_SIMPLE_GM() local 287 scale = SkScalarSin(i * SK_ScalarPI / (len-1)) * 0.75f + 0.5f; in DEF_SIMPLE_GM() 288 xforms[i] = SkRSXform::Make(scale, in DEF_SIMPLE_GM() [all...] |
H A D | pdf_never_embed.cpp | 57 canvas->scale(1, 4.0); in DEF_SIMPLE_GM_CAN_FAIL() 62 canvas->scale(1.0, 0.5); in DEF_SIMPLE_GM_CAN_FAIL() 73 canvas->scale(0.75, 0.75); in DEF_SIMPLE_GM()
|
/third_party/skia/bench/ |
H A D | PatchBench.cpp | 20 * Finally, it applies a scale to test if the size affects the rendering time. 34 PatchBench(SkPoint scale, VertexMode vertexMode) in PatchBench() argument 35 : fScale(scale) in PatchBench() 127 canvas->scale(fScale.x(), fScale.y()); 161 SquarePatchBench(SkPoint scale, VertexMode vertexMode) in SquarePatchBench() argument 162 : INHERITED(scale, vertexMode) { } in SquarePatchBench() 187 LODDiffPatchBench(SkPoint scale, VertexMode vertexMode) in LODDiffPatchBench() argument 188 : INHERITED(scale, vertexMode) { } in LODDiffPatchBench() 213 LoopPatchBench(SkPoint scale, VertexMode vertexMode) in LoopPatchBench() argument 214 : INHERITED(scale, vertexMod in LoopPatchBench() [all...] |
H A D | PathOpsBench.cpp | 87 SkScalar scale = 100; in makerects() local 89 SkScalar x = rand.nextUScalar1() * scale; in makerects() 90 SkScalar y = rand.nextUScalar1() * scale; in makerects() 91 path.addRect({x, y, x + scale, y + scale}); in makerects()
|
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_idct.c | 86 * addr[1].(start) += 1.0f / scale in calc_addr() 147 struct ureg_src scale; in create_mismatch_vert_shader() local 165 * scale = (VL_BLOCK_WIDTH, VL_BLOCK_HEIGHT) / (dst.width, dst.height) in create_mismatch_vert_shader() 168 * o_vpos.xy = t_vpos * scale in create_mismatch_vert_shader() 174 scale = ureg_imm2f(shader, in create_mismatch_vert_shader() 178 ureg_MAD(shader, ureg_writemask(o_vpos, TGSI_WRITEMASK_XY), vpos, scale, scale); in create_mismatch_vert_shader() 181 ureg_MUL(shader, ureg_writemask(t_tex, TGSI_WRITEMASK_XY), vpos, scale); in create_mismatch_vert_shader() 263 struct ureg_src scale; in create_stage1_vert_shader() local 286 * scale in create_stage1_vert_shader() 397 struct ureg_src scale; vl_idct_stage2_vert_shader() local 687 vl_idct_upload_matrix(struct pipe_context *pipe, float scale) vl_idct_upload_matrix() argument [all...] |
H A D | vl_mc.c | 237 struct vertex2f scale = { in create_ycbcr_vert_shader() local 251 t_vpos = calc_position(r, shader, ureg_imm2f(shader, scale.x, scale.y)); in create_ycbcr_vert_shader() 262 * t_vtex.xy = vrect.y ? { 0, scale.y } : { -scale.y : 0 } in create_ycbcr_vert_shader() 283 ureg_imm2f(shader, 0.0f, scale.y), in create_ycbcr_vert_shader() 284 ureg_imm2f(shader, -scale.y, 0.0f)); in create_ycbcr_vert_shader() 314 create_ycbcr_frag_shader(struct vl_mc *r, float scale, bool invert, in create_ycbcr_frag_shader() argument 337 * fragment.xyz = tex(tc, sampler) * scale + tc.z in create_ycbcr_frag_shader() 354 if (scale ! in create_ycbcr_frag_shader() 482 vl_mc_init(struct vl_mc *renderer, struct pipe_context *pipe, unsigned buffer_width, unsigned buffer_height, unsigned macroblock_size, float scale, vl_mc_ycbcr_vert_shader vs_callback, vl_mc_ycbcr_frag_shader fs_callback, void *callback_priv) vl_mc_init() argument [all...] |
/third_party/glfw/src/ |
H A D | wl_monitor.c | 116 monitor->wl.scale = factor; in outputHandleScale() 124 window->wl.outputScales[i].factor = monitor->wl.scale; in outputHandleScale() 180 monitor->wl.scale = 1; in _glfwAddOutputWayland() 211 *xscale = (float) monitor->wl.scale; in _glfwGetMonitorContentScaleWayland() 213 *yscale = (float) monitor->wl.scale; in _glfwGetMonitorContentScaleWayland()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
H A D | NumberFormatterSettings.java | 450 * Sets a scale (multiplier) to be used to scale the number by an arbitrary amount before formatting. 462 * NumberFormatter.with().scale(Scale.powerOfTen(2)) 468 * @param scale 473 public T scale(Scale scale) { in scale() argument 474 return create(KEY_SCALE, scale); in scale() 608 if (macros.scale == null) { in resolve() 609 macros.scale = (Scale) current.value; in resolve()
|
/third_party/skia/modules/svg/src/ |
H A D | SkSVGNode.cpp | 154 auto compute_trans = [&](const SkV2& scale) -> SkV2 { in ComputeViewboxMatrix() 167 const auto tx = -viewBox.x() * scale.x, in ComputeViewboxMatrix() 168 ty = -viewBox.y() * scale.y, in ComputeViewboxMatrix() 169 dx = viewPort.width() - viewBox.width() * scale.x, in ComputeViewboxMatrix() 170 dy = viewPort.height() - viewBox.height() * scale.y; in ComputeViewboxMatrix()
|
H A D | SkSVGMask.cpp | 60 lctx.canvas()->scale(obbt.scale.x, obbt.scale.y); in renderMask()
|
/device/soc/rockchip/common/sdk_linux/drivers/video/backlight/ |
H A D | pwm_bl.c | 30 unsigned int scale;
member 109 do_div(duty_cycle, pb->scale);
in compute_duty_cycle() 154 #define PWM_LUMINANCE_SCALE (1 << PWM_LUMINANCE_SHIFT) /* luminance scale */
177 * as a fixed-point number in scale
in cie1931() 564 if (data->levels[i] > pb->scale) {
in pwm_backlight_probe() 565 pb->scale = data->levels[i];
in pwm_backlight_probe() 570 props.scale = BACKLIGHT_SCALE_LINEAR;
in pwm_backlight_probe() 572 props.scale = BACKLIGHT_SCALE_NON_LINEAR;
in pwm_backlight_probe() 593 if (data->levels[i] > pb->scale) {
in pwm_backlight_probe() 594 pb->scale in pwm_backlight_probe() [all...] |
/third_party/ffmpeg/libavcodec/tests/ |
H A D | fft.c | 200 static int check_diff(FFTSample *tab1, FFTSample *tab2, int n, double scale) in check_diff() argument 206 double e = fabs(tab1[i] - (tab2[i] / scale)) / RANGE; in check_diff() 229 static inline void mdct_init(FFTContext **s, int nbits, int inverse, double scale) in mdct_init() argument 232 *s = av_mdct_init(nbits, inverse, scale); in mdct_init() 234 ff_mdct_init(*s, nbits, inverse, scale); in mdct_init() 359 "-f x set scale factor for output data of (I)MDCT to x\n"); in help() 386 double scale = 1.0; in main() local 428 scale = atof(optarg); in main() 455 av_log(NULL, AV_LOG_INFO, "Scale factor is set to %f\n", scale); in main() 460 mdct_init(&m, fft_nbits, do_inverse, scale); in main() [all...] |
/third_party/mesa3d/src/util/ |
H A D | format_srgb.h | 98 unsigned tab, bias, scale, t; in util_format_linear_float_to_srgb_8unorm() local 113 /* Do the table lookup and unpack bias, scale */ in util_format_linear_float_to_srgb_8unorm() 117 scale = tab & 0xffff; in util_format_linear_float_to_srgb_8unorm() 121 return (uint8_t) ((bias + scale*t) >> 16); in util_format_linear_float_to_srgb_8unorm()
|
/third_party/skia/samplecode/ |
H A D | SampleCowboy.cpp | 64 canvas->scale(fDelta, fDelta); 72 canvas->scale(fDelta, fDelta); 77 canvas->scale(fDelta, fDelta);
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-kern.hh | 50 bool scale = true) const in kern() 88 if (scale) in kern() 106 if (scale) in kern()
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
H A D | dng_xy_coord.h | 114 inline dng_xy_coord operator* (real64 scale, in operator *() argument 120 B.x = A.x * scale; in operator *() 121 B.y = A.y * scale; in operator *()
|
/third_party/skia/include/core/ |
H A D | SkRSXform.h | 15 * A compressed form of a rotation+scale matrix. 28 * Initialize a new xform based on the scale, rotation (in radians), final tx,ty location 33 static SkRSXform MakeFromRadians(SkScalar scale, SkScalar radians, SkScalar tx, SkScalar ty, in MakeFromRadians() 35 const SkScalar s = SkScalarSin(radians) * scale; in MakeFromRadians() 36 const SkScalar c = SkScalarCos(radians) * scale; in MakeFromRadians()
|
/third_party/skia/docs/examples/ |
H A D | ChromeMDRefreshTabs.cpp | 6 float scale, const SkISize& size, float endcap_width, float horizontal_inset = 0) { in REG_FIDDLE() 7 const float right = size.fWidth * scale; in REG_FIDDLE() 10 const float bottom = std::ceil(size.fHeight * scale); in REG_FIDDLE() 12 // const float scaled_horizontal_inset = horizontal_inset * scale; in REG_FIDDLE() 27 // right_path.rCubicTo(-0.75 * scale, 0, -1.625 * scale, -0.5 * scale, in REG_FIDDLE() 28 // -2 * scale, -1.5 * scale); in REG_FIDDLE() 32 // right - 1 - scaled_horizontal_inset - (endcap_width - 2) * scale, in REG_FIDDLE() 5 GetInteriorPath( float scale, const SkISize& size, float endcap_width, float horizontal_inset = 0) REG_FIDDLE() argument [all...] |