/third_party/skia/src/core/ |
H A D | SkDrawShadowInfo.h | 66 SkScalar lightRadius, SkScalar* blurRadius, SkScalar* scale, SkVector* translate, in GetSpotParams() 70 *scale = divide_and_pin(lightZ, lightZ - occluderZ, 1.0f, 1.95f); in GetSpotParams() 73 *scale = 1.0f; in GetSpotParams() 82 SkScalar* blurRadius, SkScalar* scale, SkVector* translate) { in GetSpotParams() 83 GetSpotParams(occluderZ, lightX, lightY, lightZ, lightRadius, blurRadius, scale, translate, false); in GetSpotParams() 88 SkScalar* blurRadius, SkScalar* scale, SkVector* translate) { in GetDirectionalParams() 90 *scale = 1; in GetDirectionalParams() 65 GetSpotParams(SkScalar occluderZ, SkScalar lightX, SkScalar lightY, SkScalar lightZ, SkScalar lightRadius, SkScalar* blurRadius, SkScalar* scale, SkVector* translate, bool isLimitElevation) GetSpotParams() argument 80 GetSpotParams(SkScalar occluderZ, SkScalar lightX, SkScalar lightY, SkScalar lightZ, SkScalar lightRadius, SkScalar* blurRadius, SkScalar* scale, SkVector* translate) GetSpotParams() argument 86 GetDirectionalParams(SkScalar occluderZ, SkScalar lightX, SkScalar lightY, SkScalar lightZ, SkScalar lightRadius, SkScalar* blurRadius, SkScalar* scale, SkVector* translate) GetDirectionalParams() argument
|
/third_party/skia/gm/ |
H A D | blurignorexform.cpp | 73 for (auto scale : kMatrixScales) { 75 canvas->scale(scale.fScale, scale.fScale); 77 SkScalar coord = 50.0f * 1.0f / scale.fScale; 115 for (auto scale : kMatrixScales) { in drawOverlay() 116 canvas->drawString(scale.fName, 0, 50, font, SkPaint()); in drawOverlay()
|
H A D | tilemodes_scaled.cpp | 97 float scale = 32.f/kPOTSize; variable 112 SkScalar x = SkIntToScalar(10)/scale; 119 SkTextUtils::DrawString(canvas, str.c_str(), scale*(x + r.width()/2), y, font, SkPaint(), 126 y = SkIntToScalar(40) / scale; 130 x = SkIntToScalar(10)/scale; 144 canvas->scale(scale,scale); 153 scale * x, scale * ( [all...] |
H A D | showmiplevels.cpp | 73 for (float scale = 1; scale >= 0.1f; scale *= 0.7f) { in draw_downscaling() 74 SkMatrix matrix = SkMatrix::Scale(scale, scale); in draw_downscaling()
|
/third_party/mesa3d/src/util/format/ |
H A D | u_format_yuv.h | 66 const float scale = 255.0f; in util_format_rgb_float_to_yuv() local 68 const int _y = scale * ( (0.257f * _r) + (0.504f * _g) + (0.098f * _b)); in util_format_rgb_float_to_yuv() 69 const int _u = scale * (-(0.148f * _r) - (0.291f * _g) + (0.439f * _b)); in util_format_rgb_float_to_yuv() 70 const int _v = scale * ( (0.439f * _r) - (0.368f * _g) - (0.071f * _b)); in util_format_rgb_float_to_yuv() 88 const float scale = 1.0f / 255.0f; in util_format_yuv_to_rgb_float() local 90 *r = scale * (y_factor * _y + 1.596f * _v); in util_format_yuv_to_rgb_float() 91 *g = scale * (y_factor * _y - 0.391f * _u - 0.813f * _v); in util_format_yuv_to_rgb_float() 92 *b = scale * (y_factor * _y + 2.018f * _u ); in util_format_yuv_to_rgb_float()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_cover_rect.c | 98 int scale = 65536 / (x + 1); in blur() local 99 s += data[-1 + y*stride] * scale; in blur() 100 c += scale; in blur() 103 int scale = 65536 / (y + 1); in blur() local 104 s += data[x - stride] * scale; in blur() 105 c += scale; in blur() 108 int scale = 65536 / (w - x); in blur() local 109 s += data[w + y*stride] * scale; in blur() 110 c += scale; in blur() 113 int scale in blur() local [all...] |
H A D | vf_colorkey.c | 40 double scale; member 49 float similarity, float iblend, int max, double scale) in do_colorkey_pixel() 53 dr = r * scale - colorkey_rgba[0]; in do_colorkey_pixel() 54 dg = g * scale - colorkey_rgba[1]; in do_colorkey_pixel() 55 db = b * scale - colorkey_rgba[2]; in do_colorkey_pixel() 79 const double scale = ctx->scale; \ 92 similarity, iblend, max, scale); \ 117 const double scale = ctx->scale; \ 48 do_colorkey_pixel(const uint8_t *colorkey_rgba, int r, int g, int b, float similarity, float iblend, int max, double scale) do_colorkey_pixel() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
H A D | DecimalQuantity_DualStorageBCD.java | 138 scale -= numDigits; in shiftLeft() 155 scale += numDigits; in shiftRight() 180 scale = 0; in setBcdToZero() 199 scale = 0; in readIntToBcd() 213 scale = 0; in readLongToBcd() 224 scale = 0; in readLongToBcd() 240 scale = 0; in readBigIntegerToBcd() 259 // Test that the new scale fits inside the BigDecimal in bcdToBigDecimal() 260 long newScale = result.scale() + scale in bcdToBigDecimal() [all...] |
H A D | MacroProps.java | 36 public Scale scale; field in MacroProps 75 if (scale == null) in fallback() 76 scale = fallback.scale; in fallback() 98 scale, in hashCode() 125 && Objects.equals(scale, other.scale) in equals()
|
/third_party/libsnd/src/ |
H A D | double64.c | 488 d2s_array (const double *src, int count, short *dest, double scale) in d2s_array() argument 490 { dest [i] = psf_lrint (scale * src [i]) ; in d2s_array() 495 d2s_clip_array (const double *src, int count, short *dest, double scale) in d2s_clip_array() argument 497 { double tmp = scale * src [i] ; in d2s_clip_array() 509 d2i_array (const double *src, int count, int *dest, double scale) in d2i_array() argument 511 { dest [i] = psf_lrint (scale * src [i]) ; in d2i_array() 516 d2i_clip_array (const double *src, int count, int *dest, double scale) in d2i_clip_array() argument 518 { float tmp = scale * src [i] ; in d2i_clip_array() 537 s2d_array (const short *src, double *dest, int count, double scale) in s2d_array() argument 539 { dest [i] = scale * sr in s2d_array() 544 i2d_array(const int *src, double *dest, int count, double scale) i2d_array() argument 566 double scale ; host_read_d2s() local 596 double scale ; host_read_d2i() local 681 double scale ; host_write_s2d() local 713 double scale ; host_write_i2d() local 806 double scale ; replace_read_d2s() local 836 double scale ; replace_read_d2i() local 925 double scale ; replace_write_s2d() local 958 double scale ; replace_write_i2d() local [all...] |
H A D | float32.c | 438 f2s_array (const float *src, int count, short *dest, float scale) in f2s_array() argument 441 { dest [i] = psf_lrintf (scale * src [i]) ; in f2s_array() 446 f2s_clip_array (const float *src, int count, short *dest, float scale) in f2s_clip_array() argument 448 { float tmp = scale * src [i] ; in f2s_clip_array() 460 f2i_array (const float *src, int count, int *dest, float scale) in f2i_array() argument 462 { dest [i] = psf_lrintf (scale * src [i]) ; in f2i_array() 467 f2i_clip_array (const float *src, int count, int *dest, float scale) in f2i_clip_array() argument 469 { float tmp = scale * src [i] ; in f2i_clip_array() 488 s2f_array (const short *src, float *dest, int count, float scale) in s2f_array() argument 490 { dest [i] = scale * sr in s2f_array() 495 i2f_array(const int *src, float *dest, int count, float scale) i2f_array() argument 517 float scale ; host_read_f2s() local 548 float scale ; host_read_f2i() local 631 float scale ; host_write_s2f() local 663 float scale ; host_write_i2f() local 757 float scale ; replace_read_f2s() local 787 float scale ; replace_read_f2i() local 876 float scale ; replace_write_s2f() local 909 float scale ; replace_write_i2f() local [all...] |
/third_party/glfw/examples/ |
H A D | splitview.c | 64 double s, t, x, y, z, nx, ny, nz, scale, twopi; in drawTorus() local 93 scale = 1.0 / sqrt(nx*nx + ny*ny + nz*nz); in drawTorus() 94 nx *= scale; in drawTorus() 95 ny *= scale; in drawTorus() 96 nz *= scale; in drawTorus() 153 static void drawGrid(float scale, int steps) in drawGrid() argument 183 x = scale * 0.5f * (float) (steps - 1); in drawGrid() 184 y = -scale * 0.5f * (float) (steps - 1); in drawGrid() 189 y += scale; in drawGrid() 193 x = -scale * 0. in drawGrid() 412 double scale; cursorPosFun() local [all...] |
/third_party/musl/porting/uniproton/kernel/src/time/ |
H A D | __tz.c | 58 int scale = 3 - (trans == zi+44); in scan_trans() local 62 size_t a = 0, n = (index_local-trans)>>scale, m; in scan_trans() 72 x = zi_read32(trans + (m<<scale)); in scan_trans() 73 if (scale == 3) x = x<<32 | zi_read32(trans + (m<<scale) + 4); in scan_trans() 86 n = (index_local-trans)>>scale; in scan_trans() 89 x = zi_read32(trans + (a<<scale)); in scan_trans() 90 if (scale == 3) x = x<<32 | zi_read32(trans + (a<<scale) + 4); in scan_trans()
|
/third_party/musl/porting/liteos_m/kernel/src/time/ |
H A D | __tz.c | 58 int scale = 3 - (trans == zi+44); in scan_trans() local 62 size_t a = 0, n = (index_local-trans)>>scale, m; in scan_trans() 72 x = zi_read32(trans + (m<<scale)); in scan_trans() 73 if (scale == 3) x = x<<32 | zi_read32(trans + (m<<scale) + 4); in scan_trans() 86 n = (index_local-trans)>>scale; in scan_trans() 89 x = zi_read32(trans + (a<<scale)); in scan_trans() 90 if (scale == 3) x = x<<32 | zi_read32(trans + (a<<scale) + 4); in scan_trans()
|
/third_party/ffmpeg/tests/fate/ |
H A D | filter-video.mak | 19 fate-filter-yadif10: CMD = framecrc -flags bitexact -idct simple -i $(TARGET_SAMPLES)/mpeg2/mpeg2_field_encoding.ts -flags bitexact -pix_fmt yuv420p10le -frames:v 30 -vf yadif=0,scale 20 fate-filter-yadif16: CMD = framecrc -flags bitexact -idct simple -i $(TARGET_SAMPLES)/mpeg2/mpeg2_field_encoding.ts -flags bitexact -pix_fmt yuv420p16le -frames:v 30 -vf yadif=0,scale 44 fate-filter-showpalette: CMD = framecrc -i $(TARGET_SAMPLES)/fli/fli-engines.fli -vf showpalette=3,scale -pix_fmt bgra 47 fate-filter-palettegen-1: CMD = framecrc -i $(TARGET_SAMPLES)/filter/anim.mkv -vf scale,palettegen,scale -pix_fmt bgra 48 fate-filter-palettegen-2: CMD = framecrc -i $(TARGET_SAMPLES)/filter/anim.mkv -vf scale,palettegen=max_colors=128:reserve_transparent=0:stats_mode=diff,scale -pix_fmt bgra 104 fate-filter-yuvtestsrc-yuv444p12: CMD = framecrc -lavfi yuvtestsrc=rate=5:duration=1,format=yuv444p12,scale -pix_fmt yuv444p12le 115 fate-filter-framerate-12bit-up: CMD = framecrc -lavfi testsrc2=r=50:d=1,format=pix_fmts=yuv422p12le,scale,framerate=fps=60,scale [all...] |
H A D | gif.mak | 2 fate-gif-color: CMD = framecrc -i $(TARGET_SAMPLES)/gif/tc217.gif -pix_fmt bgra -vf scale 5 fate-gif-disposal-background: CMD = framecrc -trans_color 0 -i $(TARGET_SAMPLES)/gif/m4nb.gif -pix_fmt bgra -vf scale 8 fate-gif-disposal-restore: CMD = framecrc -i $(TARGET_SAMPLES)/gif/banner2.gif -pix_fmt bgra -vf scale 11 fate-gif-gray: CMD = framecrc -i $(TARGET_SAMPLES)/gif/Newtons_cradle_animation_book_2.gif -pix_fmt bgra -vf scale 20 fate-gifenc%: CMD = framecrc -i $(SRC) -c:v gif -pix_fmt $(PIXFMT) -sws_flags +accurate_rnd+bitexact -vf scale
|
H A D | qtrle.mak | 5 fate-qtrle-2bit: CMD = framecrc -i $(TARGET_SAMPLES)/qtrle/Animation-4Greys.mov -pix_fmt rgb24 -an -vf scale 8 fate-qtrle-4bit: CMD = framecrc -i $(TARGET_SAMPLES)/qtrle/Animation-16Greys.mov -pix_fmt rgb24 -an -vf scale 11 fate-qtrle-8bit: CMD = framecrc -i $(TARGET_SAMPLES)/qtrle/criticalpath-credits.mov -pix_fmt rgb24 -an -vf scale 14 fate-qtrle-16bit: CMD = framecrc -i $(TARGET_SAMPLES)/qtrle/mr-cork-rle.mov -pix_fmt rgb24 -vf scale 20 fate-qtrle-32bit: CMD = framecrc -i $(TARGET_SAMPLES)/qtrle/ultra_demo_720_480_32bpp_rle.mov -pix_fmt bgra -vf scale
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | UniversalTimeScale.java | 29 * <p>ICU implements a universal time scale that is similar to the 30 * .NET framework's System.DateTime. The universal time scale is a 36 * <p>The universal time scale always measures time according to the 44 * scales, allowing datetimes in any time scale to be converted to the 45 * universal time scale, safely manipulated, and converted back to any other 46 * datetime time scale. 139 * This is the first unused time scale value. 148 * for a time scale. 157 * for a time scale. 167 * for a time scale 554 getTimeScaleData(int scale) getTimeScaleData() argument 573 getTimeScaleValue(int scale, int value) getTimeScaleValue() argument 617 toRangeCheck(long universalTime, int scale) toRangeCheck() argument 628 fromRangeCheck(long otherTime, int scale) fromRangeCheck() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
H A D | UniversalTimeScale.java | 30 * <p>ICU implements a universal time scale that is similar to the 31 * .NET framework's System.DateTime. The universal time scale is a 37 * <p>The universal time scale always measures time according to the 45 * scales, allowing datetimes in any time scale to be converted to the 46 * universal time scale, safely manipulated, and converted back to any other 47 * datetime time scale. 118 * This is the first unused time scale value. 127 * for a time scale. 133 * for a time scale. 141 * for a time scale 504 getTimeScaleData(int scale) getTimeScaleData() argument 521 getTimeScaleValue(int scale, int value) getTimeScaleValue() argument 565 toRangeCheck(long universalTime, int scale) toRangeCheck() argument 576 fromRangeCheck(long otherTime, int scale) fromRangeCheck() argument [all...] |
/third_party/skia/docs/examples/ |
H A D | bug6495.cpp | 15 canvas->scale(1.0, -1.0); in REG_FIDDLE() 21 canvas->scale(1.0, 0.4999); in REG_FIDDLE() 26 canvas->scale(1.0, 0.5000); in REG_FIDDLE() 31 canvas->scale(1.0, 0.5001); in REG_FIDDLE()
|
H A D | skcanvas_star.cpp | 6 const SkScalar scale = 256.0f; in REG_FIDDLE() local 7 const SkScalar R = 0.45f * scale; in REG_FIDDLE() 19 canvas->translate(0.5f * scale, 0.5f * scale); in REG_FIDDLE()
|
H A D | Canvas_drawTextRSXform.cpp | 11 SkScalar scale = 1; in REG_FIDDLE() local 13 const SkScalar s = SkScalarSin(angle) * scale; in REG_FIDDLE() 14 const SkScalar c = SkScalarCos(angle) * scale; in REG_FIDDLE() 17 scale += .2f; in REG_FIDDLE()
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
H A D | r600_viewport.c | 81 minx = -vp->scale[0] + vp->translate[0]; in r600_get_scissor_from_viewport() 82 miny = -vp->scale[1] + vp->translate[1]; in r600_get_scissor_from_viewport() 83 maxx = vp->scale[0] + vp->translate[0]; in r600_get_scissor_from_viewport() 84 maxy = vp->scale[1] + vp->translate[1]; in r600_get_scissor_from_viewport() 195 vp.scale[0] = vp_as_scissor->maxx - vp.translate[0]; in r600_emit_guardband() 196 vp.scale[1] = vp_as_scissor->maxy - vp.translate[1]; in r600_emit_guardband() 200 vp.scale[0] = 0.5; in r600_emit_guardband() 202 vp.scale[1] = 0.5; in r600_emit_guardband() 214 left = (-max_range - vp.translate[0]) / vp.scale[0]; in r600_emit_guardband() 215 right = ( max_range - vp.translate[0]) / vp.scale[ in r600_emit_guardband() [all...] |
/third_party/skia/bench/ |
H A D | GradientBench.cpp | 51 /// Ignores scale 53 SkTileMode tm, float scale) { in MakeLinear() 58 SkTileMode tm, float scale) { in MakeRadial() 62 return SkGradientShader::MakeRadial(center, center.fX * scale, data.fColors, in MakeRadial() 66 /// Ignores scale 68 SkTileMode tm, float scale) { in MakeSweep() 75 /// Ignores scale 77 SkTileMode tm, float scale) { in MakeConical() 88 /// Ignores scale 90 SkTileMode tm, float scale) { in MakeConicalZeroRad() 52 MakeLinear(const SkPoint pts[2], const GradData& data, SkTileMode tm, float scale) MakeLinear() argument 57 MakeRadial(const SkPoint pts[2], const GradData& data, SkTileMode tm, float scale) MakeRadial() argument 67 MakeSweep(const SkPoint pts[2], const GradData& data, SkTileMode tm, float scale) MakeSweep() argument 76 MakeConical(const SkPoint pts[2], const GradData& data, SkTileMode tm, float scale) MakeConical() argument 89 MakeConicalZeroRad(const SkPoint pts[2], const GradData& data, SkTileMode tm, float scale) MakeConicalZeroRad() argument 102 MakeConicalOutside(const SkPoint pts[2], const GradData& data, SkTileMode tm, float scale) MakeConicalOutside() argument 116 MakeConicalOutsideZeroRad(const SkPoint pts[2], const GradData& data, SkTileMode tm, float scale) MakeConicalOutsideZeroRad() argument 242 MakeShader(GradType gradType, GradData data, SkTileMode tm, float scale) MakeShader() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | bmvaudio.c | 50 int scale[2]; in bmv_aud_decode_frame() local 68 scale[0] = bmv_aud_mults[code & 0xF]; in bmv_aud_decode_frame() 69 scale[1] = bmv_aud_mults[code >> 4]; in bmv_aud_decode_frame() 71 *output_samples++ = av_clip_int16((scale[0] * (int8_t)*buf++) >> 5); in bmv_aud_decode_frame() 72 *output_samples++ = av_clip_int16((scale[1] * (int8_t)*buf++) >> 5); in bmv_aud_decode_frame()
|