Home
last modified time | relevance | path

Searched refs:scale (Results 151 - 175 of 1990) sorted by relevance

12345678910>>...80

/third_party/skia/gm/
H A Dimagefromyuvtextures.cpp238 for (auto scale : {1.f, 4.f, 0.75f}) {
248 canvas->scale(scale, scale);
251 canvas->translate(kPad + SkScalarCeilToScalar(scale*s1.width()), 0);
253 canvas->scale(scale, scale);
256 canvas->translate(kPad + SkScalarCeilToScalar(scale*s2.width()), 0);
260 canvas->translate(0, kPad + SkScalarCeilToScalar(scale*
[all...]
H A Drepeated_bitmap.cpp31 SkScalar scale = std::min(128.0f / image->width(), in draw_rotated_image() local
40 canvas->scale(scale, scale); in draw_rotated_image()
H A Dbitmapfilters.cpp59 const int scale = 32; in draw_row() local
63 canvas->drawString(name, x, SkIntToScalar(img->height())*scale*5/8, font, paint); in draw_row()
66 canvas->scale(SkIntToScalar(scale), SkIntToScalar(scale)); in draw_row()
72 return x * scale / 3; in draw_row()
/third_party/skia/include/core/
H A DSkColor.h284 /** Returns SkRGBA4f multiplied by scale.
286 @param scale value to multiply by
287 @return SkRGBA4f as (fR * scale, fG * scale, fB * scale, fA * scale)
289 SkRGBA4f operator*(float scale) const { in operator *()
290 return { fR * scale, fG * scale, fB * scale, f in operator *()
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_ciescope.c753 const float scale = 1.f / (-2.f*xc + 12.f*yc + 3.f); in xy_to_upvp() local
754 *up = 4.f*xc * scale; in xy_to_upvp()
755 *vp = 9.f*yc * scale; in xy_to_upvp()
767 const float scale = 1.f / (-2.f*xc + 12.f*yc + 3.f); in xy_to_uv() local
768 *u = 4.f*xc * scale; in xy_to_uv()
769 *v = 6.f*yc * scale; in xy_to_uv()
851 float scale; in rgb_to_xy() local
857 scale = *x + *y + *z; in rgb_to_xy()
858 if (scale == 0.f) in rgb_to_xy()
859 scale in rgb_to_xy()
1256 const float scale = 1. / 65535.; filter_rgb48() local
1271 const float scale = 1. / 65535.; filter_rgba64() local
1286 const float scale = 1. / 255.; filter_rgb24() local
1301 const float scale = 1. / 255.; filter_rgba() local
[all...]
H A Dvf_vibrance.c60 const float scale = 1.f / 255.f; in vibrance_slice8() local
83 float g = gptr[x] * scale; in vibrance_slice8()
84 float b = bptr[x] * scale; in vibrance_slice8()
85 float r = rptr[x] * scale; in vibrance_slice8()
117 const float scale = 1.f / max; in vibrance_slice16() local
142 float g = gptr[x] * scale; in vibrance_slice16()
143 float b = bptr[x] * scale; in vibrance_slice16()
144 float r = rptr[x] * scale; in vibrance_slice16()
177 const float scale = 1.f / 255.f; in vibrance_slice8p() local
199 float g = ptr[x * step + goffset] * scale; in vibrance_slice8p()
232 const float scale = 1.f / max; vibrance_slice16p() local
[all...]
/third_party/musl/src/complex/
H A Dcsqrt.c47 int scale; in csqrt() local
82 scale = 1; in csqrt()
84 scale = 0; in csqrt()
97 if (scale) in csqrt()
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_atom_viewport.c58 float *scale = st->state.viewport[i].scale; in st_update_viewport() local
61 _mesa_get_viewport_xform(ctx, i, scale, translate); in st_update_viewport()
66 scale[1] *= -1; in st_update_viewport()
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
H A Dlgdt330x.c290 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init()
292 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init()
294 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init()
608 /* scale the range 0 - 35*2^24 into 0 - 65535 */ in lgdt330x_read_signal_strength()
680 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
681 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
682 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
694 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in lgdt3302_read_status()
697 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
711 p->block_error.stat[0].scale in lgdt3302_read_status()
[all...]
H A Dmn88473.c324 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mn88473_read_status()
327 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
349 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
383 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
405 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
407 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
424 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in mn88473_read_status()
426 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in mn88473_read_status()
429 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
430 c->post_bit_count.stat[0].scale in mn88473_read_status()
[all...]
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/
H A Dlgdt330x.c290 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init()
292 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init()
294 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init()
608 /* scale the range 0 - 35*2^24 into 0 - 65535 */ in lgdt330x_read_signal_strength()
680 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
681 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
682 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
694 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in lgdt3302_read_status()
697 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
711 p->block_error.stat[0].scale in lgdt3302_read_status()
[all...]
H A Dmn88473.c324 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mn88473_read_status()
327 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
349 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
383 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
405 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
407 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
424 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in mn88473_read_status()
426 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in mn88473_read_status()
429 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
430 c->post_bit_count.stat[0].scale in mn88473_read_status()
[all...]
/third_party/FreeBSD/contrib/gdtoa/
H A Dstrtod.c66 (x, scale) U *x; int scale; in sulp()
68 (U *x, int scale)
76 if (!scale || (i = 2*P + 1 - ((word0(x) & Exp_mask) >> Exp_shift)) <= 0)
93 int scale; local
440 scale = 0;
529 scale = 2*P;
533 if (scale && (j = 2*P + 1 - ((word0(&rv) & Exp_mask)
605 j = bbe - scale;
635 bd2 += scale;
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/sprd/
H A Dmegacores_pll.c219 const u32 scale = 100; in dphy_timing_config() local
226 t_ui = 1000 * scale / (pll->freq / 1000); in dphy_timing_config()
236 range[L] = 50 * scale; in dphy_timing_config()
243 range[L] = 38 * scale; in dphy_timing_config()
244 range[H] = 95 * scale; in dphy_timing_config()
247 range[L] = 40 * scale + 4 * t_ui; in dphy_timing_config()
248 range[H] = 85 * scale + 6 * t_ui; in dphy_timing_config()
254 range[L] = 300 * scale; in dphy_timing_config()
258 range[L] = 145 * scale + 10 * t_ui; in dphy_timing_config()
265 range[L] = 60 * scale; in dphy_timing_config()
[all...]
/third_party/optimized-routines/math/
H A Dpow.c121 is scale*(1+TMP) without intermediate rounding. The bit representation of
122 scale is in SBITS, however it has a computed exponent that may have
125 adjustment of scale, positive k here means the result may overflow and
130 double_t scale, y; in specialcase() local
134 /* k > 0, the exponent of scale might have overflowed by <= 460. */ in specialcase()
136 scale = asdouble (sbits); in specialcase()
137 y = 0x1p1009 * (scale + scale * tmp); in specialcase()
142 /* Note: sbits is signed scale. */ in specialcase()
143 scale in specialcase()
178 double_t kd, z, r, r2, scale, tail, tmp; exp_inline() local
[all...]
/third_party/libsnd/programs/
H A Dsndfile-play.c118 { double scale ; in alsa_play() local
121 sf_command (sndfile, SFC_CALC_SIGNAL_MAX, &scale, sizeof (scale)) ; in alsa_play()
122 if (scale > 1.0) in alsa_play()
123 scale = 1.0 / scale ; in alsa_play()
125 scale = 1.0 ; in alsa_play()
129 buffer [m] *= scale ; in alsa_play()
389 double scale ; in opensoundsys_play() local
392 sf_command (sndfile, SFC_CALC_SIGNAL_MAX, &scale, sizeo in opensoundsys_play()
[all...]
/third_party/skia/tools/
H A Dskottie2movie.cpp80 float scale = 1; in main() local
82 scale = FLAGS_set_dst_width / (float)dim.width(); in main()
83 dim = { FLAGS_set_dst_width, SkScalarRoundToInt(scale * dim.height()) }; in main()
126 surf->getCanvas()->scale(scale, scale); in main()
/third_party/skia/src/core/
H A DSkRRect.cpp54 SkScalar scale = std::min(sk_ieee_float_divide(fRect. width(), xRad + xRad), in setRectXY() local
56 SkASSERT(scale < SK_Scalar1); in setRectXY()
57 xRad *= scale; in setRectXY()
58 yRad *= scale; in setRectXY()
96 SkScalar scale = SK_Scalar1; in setNinePatch() local
98 scale = fRect.width() / (leftRad + rightRad); in setNinePatch()
101 scale = std::min(scale, fRect.height() / (topRad + bottomRad)); in setNinePatch()
104 if (scale < SK_Scalar1) { in setNinePatch()
105 leftRad *= scale; in setNinePatch()
231 double scale = 1.0; scaleRadii() local
[all...]
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
H A Dsfn_nir_lower_tex.cpp38 nir_ssa_def *scale = nir_frcp(b, size); in lower_coord_shift_normalized() local
44 nir_fmul(b, nir_imm_float(b, -0.5f), scale)); in lower_coord_shift_normalized()
50 nir_fmul(b, nir_imm_float(b, -0.5f), scale), in lower_coord_shift_normalized()
167 nir_ssa_def *scale = NULL; in lower_txl_txf_array_or_cube() local
171 scale = nir_frcp(b, nir_channels(b, size, 1)); in lower_txl_txf_array_or_cube()
172 scale = nir_swizzle(b, scale, swizzle, 3); in lower_txl_txf_array_or_cube()
175 scale = nir_frcp(b, nir_channels(b, size, in lower_txl_txf_array_or_cube()
179 nir_ssa_def *grad = nir_fmul(b, lambda_exp, scale); in lower_txl_txf_array_or_cube()
/third_party/qrcodegen/java/
H A DQrCodeGeneratorDemo.java172 private static BufferedImage toImage(QrCode qr, int scale, int border) { in toImage() argument
173 return toImage(qr, scale, border, 0xFFFFFF, 0x000000); in toImage()
179 * the specified module scale, border modules, and module colors.
180 * <p>For example, scale=10 and border=4 means to pad the QR Code with 4 light border
183 * @param scale the side length (measured in pixels, must be positive) of each module
189 * @throws IllegalArgumentException if the scale or border is out of range, or if
190 * {scale, border, size} cause the image dimensions to exceed Integer.MAX_VALUE
192 private static BufferedImage toImage(QrCode qr, int scale, int border, int lightColor, int darkColor) { in toImage() argument
194 if (scale <= 0 || border < 0) in toImage()
196 if (border > Integer.MAX_VALUE / 2 || qr.size + border * 2L > Integer.MAX_VALUE / scale) in toImage()
[all...]
/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/
H A DQrCodeGeneratorDemo.java171 private static BufferedImage toImage(QrCode qr, int scale, int border) { in toImage() argument
172 return toImage(qr, scale, border, 0xFFFFFF, 0x000000); in toImage()
178 * the specified module scale, border modules, and module colors.
179 * <p>For example, scale=10 and border=4 means to pad the QR Code with 4 light border
182 * @param scale the side length (measured in pixels, must be positive) of each module
188 * @throws IllegalArgumentException if the scale or border is out of range, or if
189 * {scale, border, size} cause the image dimensions to exceed Integer.MAX_VALUE
191 private static BufferedImage toImage(QrCode qr, int scale, int border, int lightColor, int darkColor) { in toImage() argument
193 if (scale <= 0 || border < 0) in toImage()
195 if (border > Integer.MAX_VALUE / 2 || qr.size + border * 2L > Integer.MAX_VALUE / scale) in toImage()
[all...]
/third_party/skia/src/gpu/geometry/
H A DGrPathUtils.cpp38 // scale when mapping to screen coordinates. in scaleToleranceToSrc()
191 double scale = 1.0/det; in set() local
206 // then does the scale by 1/det afterwards to improve precision in set()
207 m[SkMatrix::kMScaleX] = (float)((0.5*a3 + a6)*scale); in set()
208 m[SkMatrix::kMSkewX] = (float)((0.5*a4 + a7)*scale); in set()
209 m[SkMatrix::kMTransX] = (float)((0.5*a5 + a8)*scale); in set()
211 m[SkMatrix::kMSkewY] = (float)(a6*scale); in set()
212 m[SkMatrix::kMScaleY] = (float)(a7*scale); in set()
213 m[SkMatrix::kMTransY] = (float)(a8*scale); in set()
218 m[SkMatrix::kMPersp2] = (float)((a2 + a5 + a8)*scale); in set()
262 SkScalar scale = 0.f; getConicKLM() local
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
H A DMacroProps.java34 public Scale scale; field in MacroProps
78 if (scale == null) in fallback()
79 scale = fallback.scale; in fallback()
105 scale, in hashCode()
135 && Objects.equals(scale, other.scale) in equals()
/third_party/musl/porting/liteos_a/kernel/src/time/
H A D__tz.c54 int scale = 3 - (trans == zi+44); in scan_trans() local
58 size_t a = 0, n = (index-trans)>>scale, m; in scan_trans()
68 x = zi_read32(trans + (m<<scale)); in scan_trans()
69 if (scale == 3) x = x<<32 | zi_read32(trans + (m<<scale) + 4); in scan_trans()
82 n = (index-trans)>>scale; in scan_trans()
86 if (scale == 3) x = x<<32 | zi_read32(trans + 4); in scan_trans()
/kernel/linux/linux-5.10/drivers/clk/
H A Dclk-xgene.c207 * @reg: register containing the fractional scale multiplier (scaler)
242 u64 ret, scale; in xgene_clk_pmd_recalc_rate() local
259 scale = (val & fd->mask) >> fd->shift; in xgene_clk_pmd_recalc_rate()
261 scale = fd->denom - scale; in xgene_clk_pmd_recalc_rate()
263 scale++; in xgene_clk_pmd_recalc_rate()
267 ret *= scale; in xgene_clk_pmd_recalc_rate()
278 u64 ret, scale; in xgene_clk_pmd_round_rate() local
285 scale = DIV_ROUND_UP_ULL(ret, *parent_rate); in xgene_clk_pmd_round_rate()
287 ret = (u64)*parent_rate * scale; in xgene_clk_pmd_round_rate()
298 u64 scale, ret; xgene_clk_pmd_set_rate() local
[all...]

Completed in 15 milliseconds

12345678910>>...80