Home
last modified time | relevance | path

Searched refs:alphas (Results 1 – 25 of 94) sorted by relevance

1234

/third_party/gstreamer/gstplugins_bad/gst/dvbsubenc/libimagequant/
Dpam.h140 ALWAYS_INLINE static double colordifference_ch(const double x, const double y, const double alphas);
141 inline static double colordifference_ch(const double x, const double y, const double alphas) in colordifference_ch() argument
145 const double black = x-y, white = black+alphas; in colordifference_ch()
165 const double alphas = py.a-px.a; in colordifference_stdc() local
166 return colordifference_ch(px.r, py.r, alphas) + in colordifference_stdc()
167 colordifference_ch(px.g, py.g, alphas) + in colordifference_stdc()
168 colordifference_ch(px.b, py.b, alphas); in colordifference_stdc()
171 …S_INLINE static double min_colordifference_ch(const double x, const double y, const double alphas);
172 inline static double min_colordifference_ch(const double x, const double y, const double alphas) in min_colordifference_ch() argument
174 const double black = x-y, white = black+alphas; in min_colordifference_ch()
[all …]
/third_party/skia/third_party/externals/freetype/src/sdf/
Dftbsdf.c449 FT_16D16 alphas[9]; in compute_edge_distance() local
459 alphas[0] = 256 * (FT_16D16)current[-w - 1].alpha; in compute_edge_distance()
460 alphas[1] = 256 * (FT_16D16)current[-w ].alpha; in compute_edge_distance()
461 alphas[2] = 256 * (FT_16D16)current[-w + 1].alpha; in compute_edge_distance()
462 alphas[3] = 256 * (FT_16D16)current[ -1].alpha; in compute_edge_distance()
463 alphas[4] = 256 * (FT_16D16)current[ 0].alpha; in compute_edge_distance()
464 alphas[5] = 256 * (FT_16D16)current[ 1].alpha; in compute_edge_distance()
465 alphas[6] = 256 * (FT_16D16)current[ w - 1].alpha; in compute_edge_distance()
466 alphas[7] = 256 * (FT_16D16)current[ w ].alpha; in compute_edge_distance()
467 alphas[8] = 256 * (FT_16D16)current[ w + 1].alpha; in compute_edge_distance()
[all …]
/third_party/freetype/src/sdf/
Dftbsdf.c449 FT_16D16 alphas[9]; in compute_edge_distance() local
459 alphas[0] = 256 * (FT_16D16)current[-w - 1].alpha; in compute_edge_distance()
460 alphas[1] = 256 * (FT_16D16)current[-w ].alpha; in compute_edge_distance()
461 alphas[2] = 256 * (FT_16D16)current[-w + 1].alpha; in compute_edge_distance()
462 alphas[3] = 256 * (FT_16D16)current[ -1].alpha; in compute_edge_distance()
463 alphas[4] = 256 * (FT_16D16)current[ 0].alpha; in compute_edge_distance()
464 alphas[5] = 256 * (FT_16D16)current[ 1].alpha; in compute_edge_distance()
465 alphas[6] = 256 * (FT_16D16)current[ w - 1].alpha; in compute_edge_distance()
466 alphas[7] = 256 * (FT_16D16)current[ w ].alpha; in compute_edge_distance()
467 alphas[8] = 256 * (FT_16D16)current[ w + 1].alpha; in compute_edge_distance()
[all …]
/third_party/littlefs/tests/
Dtest_interspersed.toml7 const char alphas[] = "abcdefghijklmnopqrstuvwxyz";
11 sprintf(path, "%c", alphas[j]);
18 lfs_file_write(&lfs, &files[j], &alphas[j], 1) => 1;
34 sprintf(path, "%c", alphas[j]);
44 sprintf(path, "%c", alphas[j]);
51 assert(buffer[0] == alphas[j]);
66 const char alphas[] = "abcdefghijklmnopqrstuvwxyz";
70 sprintf(path, "%c", alphas[j]);
74 lfs_file_write(&lfs, &file, &alphas[j], 1) => 1;
86 sprintf(path, "%c", alphas[j]);
[all …]
/third_party/skia/third_party/externals/libwebp/src/enc/
Danalysis_enc.c133 const int alphas[MAX_ALPHA + 1]) { in AssignSegments()
151 for (n = 0; n <= MAX_ALPHA && alphas[n] == 0; ++n) {} in AssignSegments()
153 for (n = MAX_ALPHA; n > min_a && alphas[n] == 0; --n) {} in AssignSegments()
174 if (alphas[a]) { in AssignSegments()
180 dist_accum[n] += a * alphas[a]; in AssignSegments()
181 accum[n] += alphas[a]; in AssignSegments()
308 int alphas[MAX_ALPHA + 1], in MBAnalyze()
327 alphas[best_alpha]++; in MBAnalyze()
370 int alphas[MAX_ALPHA + 1]; member
387 MBAnalyze(it, job->alphas, &job->alpha, &job->uv_alpha); in DoSegmentsJob()
[all …]
/third_party/flutter/skia/src/opts/
DSkXfermode_opts.h34 XFERMODE(SrcIn) { return s.approxMulDiv255(d.alphas() ); } in XFERMODE()
35 XFERMODE(SrcOut) { return s.approxMulDiv255(d.alphas().inv()); } in XFERMODE()
36 XFERMODE(SrcOver) { return s + d.approxMulDiv255(s.alphas().inv()); } in XFERMODE()
42 XFERMODE(SrcATop) { return (s * d.alphas() + d * s.alphas().inv()).div255(); } in XFERMODE()
45 XFERMODE(Xor) { return (s * d.alphas().inv() + d * s.alphas().inv()).div255(); } in XFERMODE()
DSk4px_SSE2.h37 inline Sk4px Sk4px::alphas() const { in alphas() function
50 inline Sk4px Sk4px::alphas() const { in alphas() function
69 uint16_t alphas; in Load2Alphas() local
70 memcpy(&alphas, a, 2); in Load2Alphas()
71 uint32_t alphas_and_two_zeros = alphas; // Aa -> Aa00 in Load2Alphas()
/third_party/skia/src/opts/
DSkXfermode_opts.h34 XFERMODE(SrcIn) { return s.approxMulDiv255(d.alphas() ); } in XFERMODE()
35 XFERMODE(SrcOut) { return s.approxMulDiv255(d.alphas().inv()); } in XFERMODE()
36 XFERMODE(SrcOver) { return s + d.approxMulDiv255(s.alphas().inv()); } in XFERMODE()
42 XFERMODE(SrcATop) { return (s * d.alphas() + d * s.alphas().inv()).div255(); } in XFERMODE()
45 XFERMODE(Xor) { return (s * d.alphas().inv() + d * s.alphas().inv()).div255(); } in XFERMODE()
DSk4px_SSE2.h37 inline Sk4px Sk4px::alphas() const { in alphas() function
50 inline Sk4px Sk4px::alphas() const { in alphas() function
69 uint16_t alphas; in Load2Alphas() local
70 memcpy(&alphas, a, 2); in Load2Alphas()
71 uint32_t alphas_and_two_zeros = alphas; // Aa -> Aa00 in Load2Alphas()
/third_party/flutter/skia/third_party/externals/libwebp/src/enc/
Danalysis_enc.c143 const int alphas[MAX_ALPHA + 1]) { in AssignSegments()
161 for (n = 0; n <= MAX_ALPHA && alphas[n] == 0; ++n) {} in AssignSegments()
163 for (n = MAX_ALPHA; n > min_a && alphas[n] == 0; --n) {} in AssignSegments()
184 if (alphas[a]) { in AssignSegments()
190 dist_accum[n] += a * alphas[a]; in AssignSegments()
191 accum[n] += alphas[a]; in AssignSegments()
361 int alphas[MAX_ALPHA + 1], in MBAnalyze()
387 alphas[best_alpha]++; in MBAnalyze()
430 int alphas[MAX_ALPHA + 1]; member
447 MBAnalyze(it, job->alphas, &job->alpha, &job->uv_alpha); in DoSegmentsJob()
[all …]
/third_party/flutter/skia/src/core/
DSkScan_AAAPath.cpp597 static void compute_alpha_above_line(SkAlpha* alphas, in compute_alpha_above_line() argument
608 alphas[0] = get_partial_alpha(((R << 17) - l - r) >> 9, fullAlpha); in compute_alpha_above_line()
613 alphas[0] = SkFixedMul(first, firstH) >> 9; // triangle alpha in compute_alpha_above_line()
616 alphas[i] = alpha16 >> 8; in compute_alpha_above_line()
619 alphas[R - 1] = fullAlpha - partial_triangle_to_alpha(last, dY); in compute_alpha_above_line()
624 static void compute_alpha_below_line(SkAlpha* alphas, in compute_alpha_below_line() argument
635 alphas[0] = get_partial_alpha(trapezoid_to_alpha(l, r), fullAlpha); in compute_alpha_below_line()
640 alphas[R - 1] = SkFixedMul(last, lastH) >> 9; // triangle alpha in compute_alpha_below_line()
643 alphas[i] = (alpha16 >> 8) & 0xFF; in compute_alpha_below_line()
646 alphas[0] = fullAlpha - partial_triangle_to_alpha(first, dY); in compute_alpha_below_line()
[all …]
/third_party/skia/src/core/
DSkScan_AAAPath.cpp596 static void compute_alpha_above_line(SkAlpha* alphas, in compute_alpha_above_line() argument
607 alphas[0] = get_partial_alpha(((R << 17) - l - r) >> 9, fullAlpha); in compute_alpha_above_line()
612 alphas[0] = SkFixedMul(first, firstH) >> 9; // triangle alpha in compute_alpha_above_line()
615 alphas[i] = alpha16 >> 8; in compute_alpha_above_line()
618 alphas[R - 1] = fullAlpha - partial_triangle_to_alpha(last, dY); in compute_alpha_above_line()
623 static void compute_alpha_below_line(SkAlpha* alphas, in compute_alpha_below_line() argument
634 alphas[0] = get_partial_alpha(trapezoid_to_alpha(l, r), fullAlpha); in compute_alpha_below_line()
639 alphas[R - 1] = SkFixedMul(last, lastH) >> 9; // triangle alpha in compute_alpha_below_line()
642 alphas[i] = (alpha16 >> 8) & 0xFF; in compute_alpha_below_line()
645 alphas[0] = fullAlpha - partial_triangle_to_alpha(first, dY); in compute_alpha_below_line()
[all …]
/third_party/ffmpeg/tests/checkasm/
Dh264dsp.c325 int alphas[36], betas[36]; in check_loop_filter() local
336 alphas[i] = a << (bit_depth - 8); in check_loop_filter()
356 call_ref(dst0 + off, 32, alphas[j], betas[j], tc0[j]); \ in check_loop_filter()
357 call_new(dst1 + off, 32, alphas[j], betas[j], tc0[j]); \ in check_loop_filter()
360 "tc0:{%d,%d,%d,%d}\n", j, alphas[j], betas[j], \ in check_loop_filter()
364 bench_new(dst1, 32, alphas[j], betas[j], tc0[j]); \ in check_loop_filter()
390 int alphas[36], betas[36]; in check_loop_filter_intra() local
400 alphas[i] = a << (bit_depth - 8); in check_loop_filter_intra()
416 call_ref(dst0 + off, 32, alphas[j], betas[j]); \ in check_loop_filter_intra()
417 call_new(dst1 + off, 32, alphas[j], betas[j]); \ in check_loop_filter_intra()
[all …]
/third_party/flutter/skia/docs/examples/
DExclusion.cpp13 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
15 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DMultiply.cpp13 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
15 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DDifference.cpp13 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
15 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DSrc_In.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DDst_Over.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DScreen.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DDst_Out.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DSrc_Over.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
/third_party/skia/docs/examples/
DDifference.cpp13 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
15 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DExclusion.cpp13 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
15 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DMultiply.cpp13 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
15 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DSrc_Over.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()

1234