Home
last modified time | relevance | path

Searched refs:alpha (Results 26 - 50 of 1170) sorted by relevance

12345678910>>...47

/third_party/skia/src/core/
H A DSkAlphaRuns.cpp31 const uint8_t* alpha = fAlpha; in assertValid() local
34 SkASSERT(*alpha <= max); in assertValid()
35 alpha += *runs; in assertValid()
42 const uint8_t* alpha = fAlpha; in dump() local
48 SkDebugf(" %02x", *alpha); in dump()
52 alpha += n; in dump()
H A DSkSpriteBlitter_ARGB32.cpp21 Sprite_D32_S32(const SkPixmap& src, U8CPU alpha) : INHERITED(src) { in Sprite_D32_S32() argument
25 if (255 != alpha) { in Sprite_D32_S32()
33 fAlpha = alpha; in Sprite_D32_S32()
43 U8CPU alpha = fAlpha; variable
46 proc(dst, src, width, alpha);
107 U8CPU alpha = paint.getAlpha(); in ChooseL32() local
111 // this can handle alpha, but not xfermode in ChooseL32()
112 return allocator->make<Sprite_D32_S32>(source, alpha); in ChooseL32()
114 if (255 == alpha) { in ChooseL32()
115 // this can handle an xfermode, but not alpha in ChooseL32()
[all...]
H A DSkScan_AntiPath.cpp55 void blitV(int x, int y, int height, SkAlpha alpha) override {
186 *accumulates* SCALE pixels worth of "alpha" in [0,(256/SCALE)]
188 itself, with the same (alpha - (alpha >> 8)) correction as
200 int alpha = (256 >> SHIFT) * aa;
202 return alpha - (alpha >> 8);
343 // xrite/SCALE should give us alpha.
463 static void add_aa_span(uint8_t* alpha, U8CPU startAlpha) {
464 /* I should be able to just add alpha[
[all...]
H A DSkScan_AAAPath.cpp92 static void add_alpha(SkAlpha* alpha, SkAlpha delta) { in add_alpha() argument
93 SkASSERT(*alpha + delta <= 256); in add_alpha()
94 *alpha = SkAlphaRuns::CatchOverflow(*alpha + delta); in add_alpha()
97 static void safely_add_alpha(SkAlpha* alpha, SkAlpha delta) { in safely_add_alpha() argument
98 *alpha = std::min(0xFF, *alpha + delta); in safely_add_alpha()
108 virtual void blitAntiH(int x, int y, const SkAlpha alpha) = 0;
109 virtual void blitAntiH(int x, int y, int width, const SkAlpha alpha) = 0;
115 void blitV(int x, int y, int height, SkAlpha alpha) overrid
239 blitAntiH(int x, int y, const SkAlpha alpha) blitAntiH() argument
244 blitAntiH(int x, int y, int width, const SkAlpha alpha) blitAntiH() argument
252 blitV(int x, int y, int height, SkAlpha alpha) blitV() argument
348 snapAlpha(SkAlpha alpha) snapAlpha() argument
[all...]
/third_party/skia/src/gpu/
H A DGrSWMaskHelper.h51 void drawRect(const SkRect& rect, const SkMatrix& matrix, SkRegion::Op op, GrAA, uint8_t alpha);
55 uint8_t alpha);
59 uint8_t alpha);
61 void drawShape(const GrShape&, const SkMatrix& matrix, SkRegion::Op op, GrAA, uint8_t alpha);
66 void clear(uint8_t alpha) { in clear() argument
67 fPixels->erase(SkColorSetARGB(alpha, 0xFF, 0xFF, 0xFF)); in clear()
/third_party/ltp/include/
H A Dtst_fuzzy_sync.h329 * @param alpha The preference for recent samples over old ones.
335 static inline float tst_exp_moving_avg(float alpha, in tst_exp_moving_avg() argument
339 return alpha * sample + (1.0 - alpha) * prev_avg; in tst_exp_moving_avg()
348 float alpha, in tst_upd_stat()
351 s->avg = tst_exp_moving_avg(alpha, sample, s->avg); in tst_upd_stat()
352 s->avg_dev = tst_exp_moving_avg(alpha, in tst_upd_stat()
363 float alpha, in tst_upd_diff_stat()
367 tst_upd_stat(s, alpha, tst_timespec_diff_ns(t1, t2)); in tst_upd_diff_stat()
460 float alpha in tst_fzsync_pair_update() local
347 tst_upd_stat(struct tst_fzsync_stat *s, float alpha, float sample) tst_upd_stat() argument
362 tst_upd_diff_stat(struct tst_fzsync_stat *s, float alpha, struct timespec t1, struct timespec t2) tst_upd_diff_stat() argument
[all...]
/third_party/skia/src/codec/
H A DSkMaskSwizzler.cpp58 uint8_t alpha = masks->getAlpha(p); in swizzle_mask16_to_rgba_unpremul() local
59 dstPtr[i] = SkPackARGB_as_RGBA(alpha, red, green, blue); in swizzle_mask16_to_rgba_unpremul()
76 uint8_t alpha = masks->getAlpha(p); in swizzle_mask16_to_bgra_unpremul() local
77 dstPtr[i] = SkPackARGB_as_BGRA(alpha, red, green, blue); in swizzle_mask16_to_bgra_unpremul()
94 uint8_t alpha = masks->getAlpha(p); in swizzle_mask16_to_rgba_premul() local
95 dstPtr[i] = premultiply_argb_as_rgba(alpha, red, green, blue); in swizzle_mask16_to_rgba_premul()
112 uint8_t alpha = masks->getAlpha(p); in swizzle_mask16_to_bgra_premul() local
113 dstPtr[i] = premultiply_argb_as_bgra(alpha, red, green, blue); in swizzle_mask16_to_bgra_premul()
183 uint8_t alpha = masks->getAlpha(p); in swizzle_mask24_to_rgba_unpremul() local
184 dstPtr[i] = SkPackARGB_as_RGBA(alpha, re in swizzle_mask24_to_rgba_unpremul()
201 uint8_t alpha = masks->getAlpha(p); swizzle_mask24_to_bgra_unpremul() local
219 uint8_t alpha = masks->getAlpha(p); swizzle_mask24_to_rgba_premul() local
237 uint8_t alpha = masks->getAlpha(p); swizzle_mask24_to_bgra_premul() local
306 uint8_t alpha = masks->getAlpha(p); swizzle_mask32_to_rgba_unpremul() local
324 uint8_t alpha = masks->getAlpha(p); swizzle_mask32_to_bgra_unpremul() local
342 uint8_t alpha = masks->getAlpha(p); swizzle_mask32_to_rgba_premul() local
360 uint8_t alpha = masks->getAlpha(p); swizzle_mask32_to_bgra_premul() local
[all...]
/third_party/ffmpeg/libavcodec/loongarch/
H A Dh264dsp_lasx.h29 int alpha, int beta, int8_t *tc0);
31 int alpha, int beta, int8_t *tc0);
33 int alpha, int beta);
35 int alpha, int beta);
37 int alpha, int beta, int8_t *tc0);
39 int alpha, int beta, int8_t *tc0);
41 int alpha, int beta);
43 int alpha, int beta);
/third_party/ffmpeg/libavcodec/
H A Dsbrdsp_fixed.c212 int alpha[4]; in sbr_hf_gen_c() local
217 alpha[2] = (int)((accu + 0x40000000) >> 31); in sbr_hf_gen_c()
219 alpha[3] = (int)((accu + 0x40000000) >> 31); in sbr_hf_gen_c()
223 alpha[0] = (int)((accu + 0x40000000) >> 31); in sbr_hf_gen_c()
225 alpha[1] = (int)((accu + 0x40000000) >> 31); in sbr_hf_gen_c()
229 accu += (int64_t)X_low[i - 2][0] * alpha[0]; in sbr_hf_gen_c()
230 accu -= (int64_t)X_low[i - 2][1] * alpha[1]; in sbr_hf_gen_c()
231 accu += (int64_t)X_low[i - 1][0] * alpha[2]; in sbr_hf_gen_c()
232 accu -= (int64_t)X_low[i - 1][1] * alpha[3]; in sbr_hf_gen_c()
236 accu += (int64_t)X_low[i - 2][1] * alpha[ in sbr_hf_gen_c()
[all...]
H A Dsbrdsp.c163 float alpha[4]; in sbr_hf_gen_c() local
166 alpha[0] = alpha1[0] * bw * bw; in sbr_hf_gen_c()
167 alpha[1] = alpha1[1] * bw * bw; in sbr_hf_gen_c()
168 alpha[2] = alpha0[0] * bw; in sbr_hf_gen_c()
169 alpha[3] = alpha0[1] * bw; in sbr_hf_gen_c()
173 X_low[i - 2][0] * alpha[0] - in sbr_hf_gen_c()
174 X_low[i - 2][1] * alpha[1] + in sbr_hf_gen_c()
175 X_low[i - 1][0] * alpha[2] - in sbr_hf_gen_c()
176 X_low[i - 1][1] * alpha[3] + in sbr_hf_gen_c()
179 X_low[i - 2][1] * alpha[ in sbr_hf_gen_c()
[all...]
H A Dkbdwin.c26 av_cold void ff_kbd_window_init(float *window, float alpha, int n) in ff_kbd_window_init() argument
31 double alpha2 = (alpha * M_PI / n) * (alpha * M_PI / n); in ff_kbd_window_init()
49 av_cold void ff_kbd_window_init_fixed(int32_t *window, float alpha, int n) in ff_kbd_window_init_fixed() argument
54 ff_kbd_window_init(local_window, alpha, n); in ff_kbd_window_init_fixed()
/third_party/ffmpeg/libswscale/
H A Dalphablend.c56 int alpha; in ff_sws_alphablendaway() local
66 alpha = (a[2*x] + a[2*x + 1] + 2 + in ff_sws_alphablendaway()
69 alpha = (a[2*x] + a[2*x + 1]) >> 1; in ff_sws_alphablendaway()
70 u = s[x]*alpha + target_table[((x^y)>>5)&1][plane]*(max-alpha) + off; in ff_sws_alphablendaway()
76 alpha = (av_bswap16(a[2*x]) + av_bswap16(a[2*x + 1]) + 2 + in ff_sws_alphablendaway()
79 alpha = (av_bswap16(a[2*x]) + av_bswap16(a[2*x + 1])) >> 1; in ff_sws_alphablendaway()
80 u = av_bswap16(s[x])*alpha + target_table[((x^y)>>5)&1][plane]*(max-alpha) + off; in ff_sws_alphablendaway()
91 alpha in ff_sws_alphablendaway()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
H A Dbeta_distribution.h36 // pdf(x) \propto x^(alpha-1) * (1-x)^(beta-1),
37 // where the params alpha and beta are both strictly positive real values.
40 // to 0 or 1, due to numerical errors when alpha and beta are very different.
42 // Usage note: One usage is that alpha and beta are counts of number of
46 // smaller of alpha and beta when the number of trials are sufficiently large,
57 explicit param_type(result_type alpha, result_type beta) in param_type() argument
58 : alpha_(alpha), beta_(beta) { in param_type()
59 assert(alpha >= 0); in param_type()
61 assert(alpha <= (std::numeric_limits<result_type>::max)()); in param_type()
63 if (alpha in param_type()
120 result_type alpha() const { return alpha_; } alpha() function in absl::beta_distribution::param_type
204 beta_distribution(result_type alpha, result_type beta = 1) beta_distribution() argument
227 result_type alpha() const { return param_.alpha(); } alpha() function in absl::beta_distribution
[all...]
/third_party/skia/third_party/externals/libwebp/src/dsp/
H A Dalpha_processing.c38 { // (255u << MFIX) / alpha
82 { // alpha * KINV_255
144 if (argb < 0xff000000u) { // alpha < 255 in WebPMultARGBRow_C()
145 if (argb <= 0x00ffffffu) { // alpha == 0 in WebPMultARGBRow_C()
148 const uint32_t alpha = (argb >> 24) & 0xff; in WebPMultARGBRow_C() local
149 const uint32_t scale = GetScale(alpha, inverse); in WebPMultARGBRow_C()
161 const uint8_t* WEBP_RESTRICT const alpha, in WebPMultRow_C()
165 const uint32_t a = alpha[x]; in WebPMultRow_C()
183 const uint8_t* WEBP_RESTRICT const alpha,
199 const uint8_t* WEBP_RESTRICT alpha, in in WebPMultRows()
160 WebPMultRow_C(uint8_t* WEBP_RESTRICT const ptr, const uint8_t* WEBP_RESTRICT const alpha, int width, int inverse) WebPMultRow_C() argument
198 WebPMultRows(uint8_t* WEBP_RESTRICT ptr, int stride, const uint8_t* WEBP_RESTRICT alpha, int alpha_stride, int width, int num_rows, int inverse) WebPMultRows() argument
230 const uint8_t* const alpha = rgba + (alpha_first ? 0 : 3); ApplyAlphaMultiply_C() local
295 DispatchAlpha_C(const uint8_t* WEBP_RESTRICT alpha, int alpha_stride, int width, int height, uint8_t* WEBP_RESTRICT dst, int dst_stride) DispatchAlpha_C() argument
314 DispatchAlphaToGreen_C(const uint8_t* WEBP_RESTRICT alpha, int alpha_stride, int width, int height, uint32_t* WEBP_RESTRICT dst, int dst_stride) DispatchAlphaToGreen_C() argument
328 ExtractAlpha_C(const uint8_t* WEBP_RESTRICT argb, int argb_stride, int width, int height, uint8_t* WEBP_RESTRICT alpha, int alpha_stride) ExtractAlpha_C() argument
346 ExtractGreen_C(const uint32_t* WEBP_RESTRICT argb, uint8_t* WEBP_RESTRICT alpha, int size) ExtractGreen_C() argument
[all...]
H A Dalpha_processing_sse2.c21 static int DispatchAlpha_SSE2(const uint8_t* WEBP_RESTRICT alpha, in DispatchAlpha_SSE2() argument
24 // alpha_and stores an 'and' operation of all the alpha[] values. The final in DispatchAlpha_SSE2()
25 // value is not 0xff if any of the alpha[] is not equal to 0xff. in DispatchAlpha_SSE2()
34 // 'dst[4 * width - 4]', because we don't know if alpha is the first or the in DispatchAlpha_SSE2()
41 // load 8 alpha bytes in DispatchAlpha_SSE2()
42 const __m128i a0 = _mm_loadl_epi64((const __m128i*)&alpha[i]); in DispatchAlpha_SSE2()
49 // mask dst alpha values in DispatchAlpha_SSE2()
58 // accumulate eight alpha 'and' in parallel in DispatchAlpha_SSE2()
63 const uint32_t alpha_value = alpha[i]; in DispatchAlpha_SSE2()
67 alpha in DispatchAlpha_SSE2()
75 DispatchAlphaToGreen_SSE2(const uint8_t* WEBP_RESTRICT alpha, int alpha_stride, int width, int height, uint32_t* WEBP_RESTRICT dst, int dst_stride) DispatchAlphaToGreen_SSE2() argument
102 ExtractAlpha_SSE2(const uint8_t* WEBP_RESTRICT argb, int argb_stride, int width, int height, uint8_t* WEBP_RESTRICT alpha, int alpha_stride) ExtractAlpha_SSE2() argument
199 const uint8_t* const alpha = rgba + (alpha_first ? 0 : 3); ApplyAlphaMultiply_SSE2() local
321 MultRow_SSE2(uint8_t* WEBP_RESTRICT const ptr, const uint8_t* WEBP_RESTRICT const alpha, int width, int inverse) MultRow_SSE2() argument
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_lumakey.c49 uint8_t *alpha = frame->data[3] + slice_start * frame->linesize[3]; in do_lumakey_slice8() local
59 alpha[x] = 0; in do_lumakey_slice8()
62 alpha[x] = 255 - (luma[x] - b + so) * 255 / so; in do_lumakey_slice8()
64 alpha[x] = (luma[x] - w) * 255 / so; in do_lumakey_slice8()
69 alpha += frame->linesize[3]; in do_lumakey_slice8()
81 uint16_t *alpha = (uint16_t *)(frame->data[3] + slice_start * frame->linesize[3]); in do_lumakey_slice16() local
92 alpha[x] = 0; in do_lumakey_slice16()
95 alpha[x] = m - (luma[x] - b + so) * m / so; in do_lumakey_slice16()
97 alpha[x] = (luma[x] - w) * m / so; in do_lumakey_slice16()
102 alpha in do_lumakey_slice16()
[all...]
/third_party/mesa3d/src/amd/common/
H A Dac_shader_util.c535 /* Alpha is needed for alpha-to-coverage. in ac_choose_spi_color_formats()
536 * Blending may be with or without alpha. in ac_choose_spi_color_formats()
538 unsigned normal = 0; /* most optimal, may not support blending or export alpha */ in ac_choose_spi_color_formats()
539 unsigned alpha = 0; /* exports alpha, but may not support blending */ in ac_choose_spi_color_formats() local
540 unsigned blend = 0; /* supports blending, but may not export alpha */ in ac_choose_spi_color_formats()
541 unsigned blend_alpha = 0; /* least optimal, supports blending and exports alpha */ in ac_choose_spi_color_formats()
560 alpha = blend = blend_alpha = normal = V_028714_SPI_SHADER_UINT16_ABGR; in ac_choose_spi_color_formats()
562 alpha = blend = blend_alpha = normal = V_028714_SPI_SHADER_SINT16_ABGR; in ac_choose_spi_color_formats()
564 alpha in ac_choose_spi_color_formats()
[all...]
/third_party/skia/src/effects/
H A DSkEmbossMask.cpp60 uint8_t* alpha = mask->fImage; in Emboss() local
61 uint8_t* multiply = (uint8_t*)alpha + planeSize; in Emboss()
73 int nx = alpha[x + neq_to_one(x, maxx)] - alpha[x - nonzero_to_one(x)]; in Emboss()
74 int ny = alpha[x + next_row] - alpha[x - prev_row]; in Emboss()
109 alpha += rowBytes; in Emboss()
/third_party/typescript/tests/baselines/reference/
H A DextendedInterfaceGenericType.js9 var alpha: Alpha<number>; variable
10 var betaOfNumber = alpha.makeBetaOfNumber();
15 var alpha; variable
16 var betaOfNumber = alpha.makeBetaOfNumber();
/third_party/skia/third_party/externals/angle2/src/image_util/
H A Dloadtextureborder.cpp16 mBorderColor.red = mBorderColor.alpha; in LoadA8ToR8()
17 mBorderColor.alpha = 0; in LoadA8ToR8()
22 mBorderColor.green = mBorderColor.alpha; in LoadLA8ToR8G8()
23 mBorderColor.alpha = 0; in LoadLA8ToR8G8()
/third_party/skia/third_party/externals/libpng/contrib/testpngs/
H A Dmakepngs.sh63 for c in gray gray-alpha rgb rgb-alpha
78 mpg none gray-alpha 8 # required: code coverage, sRGB opaque component
85 mpg linear rgb-alpha 16 # error limits only
87 mpg sRGB rgb-alpha 16 # required: code coverage: pngread.c:2422 untested
/third_party/skia/docs/examples/
H A DColorGetA.cpp9 for (int alpha = 255; alpha >= 0; alpha -= 17) { in REG_FIDDLE()
10 paint.setAlpha(alpha); in REG_FIDDLE()
/third_party/skia/gm/
H A Dcomposeshader.cpp108 for (int alpha = 0xFF; alpha > 0; alpha -= 0x28) {
113 paint.setAlpha(alpha);
216 for (int alpha = 0xFF; alpha > 0; alpha -= 0x28) {
217 paint.setAlpha(alpha);
301 SkBlendMode mode, SkAlpha alpha) { in draw_cell()
304 p.setAlpha(alpha); in draw_cell()
300 draw_cell(SkCanvas* canvas, sk_sp<SkShader> src, sk_sp<SkShader> dst, SkBlendMode mode, SkAlpha alpha) draw_cell() argument
319 draw_composed(SkCanvas* canvas, sk_sp<SkShader> src, sk_sp<SkShader> dst, SkBlendMode mode, SkAlpha alpha) draw_composed() argument
338 SkAlpha alpha = 0xFF; draw_pair() local
[all...]
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
H A Dradeon_pair_schedule.c68 * PairedInst references the alpha instruction's dependency information.
494 * but no scalar instruction (alpha).
593 /* This function assumes that rgb.Alpha and alpha.RGB are unused */
596 struct rc_pair_instruction * alpha) in destructive_merge_instructions()
601 assert(alpha->RGB.Opcode == RC_OPCODE_NOP); in destructive_merge_instructions()
608 if (alpha->RGB.Src[RC_PAIR_PRESUB_SRC].Used) { in destructive_merge_instructions()
609 if (!merge_presub_sources(rgb, alpha->RGB, RC_SOURCE_RGB)) { in destructive_merge_instructions()
613 /* Merge the alpha presubtract registers */ in destructive_merge_instructions()
614 if (alpha->Alpha.Src[RC_PAIR_PRESUB_SRC].Used) { in destructive_merge_instructions()
615 if(!merge_presub_sources(rgb, alpha in destructive_merge_instructions()
594 destructive_merge_instructions( struct rc_pair_instruction * rgb, struct rc_pair_instruction * alpha) destructive_merge_instructions() argument
681 merge_instructions(struct rc_pair_instruction * rgb, struct rc_pair_instruction * alpha) merge_instructions() argument
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
H A Ddistribution_test_util.cc246 // Direct implementation of AS109, XINBTA(p, q, beta, alpha)
254 // alpha: the value of the lower tail area.
257 const double alpha) { in BetaIncompleteInvImpl()
258 if (alpha < 0.5) { in BetaIncompleteInvImpl()
260 return 1. - BetaIncompleteInvImpl(q, p, beta, 1. - alpha); in BetaIncompleteInvImpl()
267 double r = std::sqrt(-std::log(alpha * alpha)); in BetaIncompleteInvImpl()
284 value = 1.0 - std::exp((std::log((1.0 - alpha) * q) + beta) / q); in BetaIncompleteInvImpl()
288 value = std::exp((std::log(alpha * p) + beta) / p); in BetaIncompleteInvImpl()
320 y = (y - alpha) * in BetaIncompleteInvImpl()
256 BetaIncompleteInvImpl(const double p, const double q, const double beta, const double alpha) BetaIncompleteInvImpl() argument
380 BetaIncompleteInv(const double p, const double q, const double alpha) BetaIncompleteInv() argument
[all...]

Completed in 14 milliseconds

12345678910>>...47