Home
last modified time | relevance | path

Searched refs:alpha (Results 1 – 25 of 1075) sorted by relevance

12345678910>>...43

/external/skia/src/core/
DSkAntiRun.h56 uint8_t* alpha = fAlpha + offsetX; in add() local
57 uint8_t* lastAlpha = alpha; in add()
61 SkAlphaRuns::Break(runs, alpha, x, 1); in add()
67 unsigned tmp = alpha[x] + startAlpha; in add()
69alpha[x] = SkToU8(tmp - (tmp >> 8)); // was (tmp >> 7), but that seems wrong if we're trying to… in add()
72 alpha += x + 1; in add()
79 SkAlphaRuns::Break(runs, alpha, x, middleCount); in add()
80 alpha += x; in add()
84 alpha[0] = SkToU8(alpha[0] + maxValue); in add()
87 alpha += n; in add()
[all …]
DSkBlitRow_D16.cpp17 U8CPU alpha, int /*x*/, int /*y*/) { in S32_D565_Opaque() argument
18 SkASSERT(255 == alpha); in S32_D565_Opaque()
31 U8CPU alpha, int /*x*/, int /*y*/) { in S32_D565_Blend() argument
32 SkASSERT(255 > alpha); in S32_D565_Blend()
35 int scale = SkAlpha255To256(alpha); in S32_D565_Blend()
50 U8CPU alpha, int /*x*/, int /*y*/) { in S32A_D565_Opaque() argument
51 SkASSERT(255 == alpha); in S32A_D565_Opaque()
68 U8CPU alpha, int /*x*/, int /*y*/) { in S32A_D565_Blend() argument
69 SkASSERT(255 > alpha); in S32A_D565_Blend()
77 SkPMColor res = SkBlendARGB32(sc, SkPixel16ToPixel32(dc), alpha); in S32A_D565_Blend()
[all …]
DSkBlitRow_D32.cpp17 int count, U8CPU alpha) { in S32_Opaque_BlitRow32() argument
18 SkASSERT(255 == alpha); in S32_Opaque_BlitRow32()
24 int count, U8CPU alpha) { in S32_Blend_BlitRow32() argument
25 SkASSERT(alpha <= 255); in S32_Blend_BlitRow32()
27 unsigned src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32()
56 int count, U8CPU alpha) { in S32A_Opaque_BlitRow32() argument
57 SkASSERT(255 == alpha); in S32A_Opaque_BlitRow32()
85 int count, U8CPU alpha) { in S32A_Blend_BlitRow32() argument
86 SkASSERT(alpha <= 255); in S32A_Blend_BlitRow32()
90 *dst = SkBlendARGB32(*(src++), *dst, alpha); in S32A_Blend_BlitRow32()
[all …]
/external/skia/tests/
DBlendTest.cpp28 uint8_t dst, uint8_t src, uint8_t alpha) { in test() argument
29 const uint8_t golden = blend_double_round(dst, src, alpha); in test()
30 const uint8_t blend = algorithm(dst, src, alpha); in test()
33 dst, src, alpha, blend, golden, maxDiff); in test()
39 static void test_alpha(skiatest::Reporter* r, uint8_t alpha, int maxDiff, Blend algorithm) { in test_alpha() argument
42 for (unsigned src = 0; src <= alpha; src++) { in test_alpha()
44 test(r, maxDiff, algorithm, dst, src, alpha); in test_alpha()
53 for (unsigned alpha = 0; alpha < 256; alpha++) { in test_dst() local
54 for (unsigned src = 0; src <= alpha; src++) { in test_dst()
55 test(r, maxDiff, algorithm, dst, src, alpha); in test_dst()
[all …]
DSrcOverTest.cpp13 static int test_srcover0(unsigned dst, unsigned alpha) { in test_srcover0() argument
14 return alpha + SkAlphaMul(dst, SkAlpha255To256(255 - alpha)); in test_srcover0()
18 static int test_srcover1(unsigned dst, unsigned alpha) { in test_srcover1() argument
19 return alpha + SkAlphaMul(dst, 256 - alpha); in test_srcover1()
23 static int test_srcover2(unsigned dst, unsigned alpha) { in test_srcover2() argument
24 return alpha + SkMulDiv255Round(dst, 255 - alpha); in test_srcover2()
Dskpdf_opaquesrcmodetosrcover.cpp12 static void run_test(SkWStream* out, SkXfermode::Mode mode, U8CPU alpha) { in run_test() argument
18 background.setAlpha(alpha); in run_test()
32 U8CPU alpha = SK_AlphaOPAQUE; in DEF_TEST() local
33 run_test(&srcMode, SkXfermode::kSrc_Mode, alpha); in DEF_TEST()
34 run_test(&srcOverMode, SkXfermode::kSrcOver_Mode, alpha); in DEF_TEST()
41 alpha = 0x80; in DEF_TEST()
42 run_test(&srcMode, SkXfermode::kSrc_Mode, alpha); in DEF_TEST()
43 run_test(&srcOverMode, SkXfermode::kSrcOver_Mode, alpha); in DEF_TEST()
/external/opencv/cvaux/include/
Dcvmat.hpp654 explicit _CvMAT_T_( const CvMAT* a, double alpha );
661 double alpha;
681 double alpha, int t_abc );
684 double alpha;
696 explicit _CvMAT_MUL_ADD_( const CvMAT* a, const CvMAT* b, double alpha,
700 double alpha, beta;
726 explicit _CvMAT_ADD_EX_( const CvMAT* a, double alpha,
730 double alpha, beta, gamma;
739 explicit _CvMAT_SCALE_( const CvMAT* a, double alpha );
748 double alpha;
[all …]
/external/cblas/include/
Dcblas.h25 float cblas_sdsdot(const int N, const float alpha, const float *X,
85 void cblas_saxpy(const int N, const float alpha, const float *X,
92 void cblas_daxpy(const int N, const double alpha, const double *X,
99 void cblas_caxpy(const int N, const void *alpha, const void *X,
106 void cblas_zaxpy(const int N, const void *alpha, const void *X,
131 void cblas_sscal(const int N, const float alpha, float *X, const int incX);
132 void cblas_dscal(const int N, const double alpha, double *X, const int incX);
133 void cblas_cscal(const int N, const void *alpha, void *X, const int incX);
134 void cblas_zscal(const int N, const void *alpha, void *X, const int incX);
135 void cblas_csscal(const int N, const float alpha, void *X, const int incX);
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
DTexturePixel.java19 public float intensity, red, green, blue, alpha; field in TexturePixel
32 this.alpha = pixel.alpha; in fromPixel()
45 this.alpha = colorRGBA.a; in fromColor()
61 this.alpha = a; in fromARGB8()
75 this.alpha = pixelValue >= 0 ? pixelValue / 255.0f : 1.0f - (~pixelValue) / 255.0f; in fromARGB8()
101 this.alpha = pixelValue >= 0 ? pixelValue / 255.0f : 1.0f - (~pixelValue) / 255.0f; in fromImage()
118 this.alpha = pixelValue >= 0 ? pixelValue / 255.0f : 1.0f - (~pixelValue) / 255.0f; in fromImage()
128 this.alpha = 1.0f; in fromImage()
138 this.alpha = 1.0f; in fromImage()
146 this.intensity = this.blue = this.red = this.green = this.alpha = 0.0f; in fromImage()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
DBetaDistributionImpl.java51 private double alpha; field in BetaDistributionImpl
72 public BetaDistributionImpl(double alpha, double beta, double inverseCumAccuracy) { in BetaDistributionImpl() argument
73 this.alpha = alpha; in BetaDistributionImpl()
84 public BetaDistributionImpl(double alpha, double beta) { in BetaDistributionImpl() argument
85 this(alpha, beta, DEFAULT_INVERSE_ABSOLUTE_ACCURACY); in BetaDistributionImpl()
92 public void setAlpha(double alpha) { in setAlpha() argument
93 this.alpha = alpha; in setAlpha()
99 return alpha; in getAlpha()
121 z = Gamma.logGamma(alpha) + Gamma.logGamma(beta) - Gamma.logGamma(alpha + beta); in recomputeZ()
150 if (alpha < 1) { in density()
[all …]
DGammaDistributionImpl.java45 private double alpha; field in GammaDistributionImpl
58 public GammaDistributionImpl(double alpha, double beta) { in GammaDistributionImpl() argument
59 this(alpha, beta, DEFAULT_INVERSE_ABSOLUTE_ACCURACY); in GammaDistributionImpl()
70 public GammaDistributionImpl(double alpha, double beta, double inverseCumAccuracy) { in GammaDistributionImpl() argument
72 setAlphaInternal(alpha); in GammaDistributionImpl()
100 ret = Gamma.regularizedGammaP(alpha, x / beta); in cumulativeProbability()
138 public void setAlpha(double alpha) { in setAlpha() argument
139 setAlphaInternal(alpha); in setAlpha()
153 this.alpha = newAlpha; in setAlphaInternal()
161 return alpha; in getAlpha()
[all …]
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/
Dcmssm.c45 cmsFloat64Number alpha; member
131 sp ->alpha = sp ->theta = 0; in ToSpherical()
135 sp ->alpha = _cmsAtan2(a, b); in ToSpherical()
150 sin_alpha = sin((M_PI * sp ->alpha) / 180.0); in ToCartesian()
151 cos_alpha = cos((M_PI * sp ->alpha) / 180.0); in ToCartesian()
168 void QuantizeToSector(const cmsSpherical* sp, int* alpha, int* theta) in QuantizeToSector() argument
170 *alpha = (int) floor(((sp->alpha * (SECTORS)) / 360.0) ); in QuantizeToSector()
173 if (*alpha >= SECTORS) in QuantizeToSector()
174 *alpha = SECTORS-1; in QuantizeToSector()
325 int alpha, theta; in GetPoint() local
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/inference/
DTestUtils.java176 double alpha) in homoscedasticTTest() argument
178 return tTest. homoscedasticTTest(sample1, sample2, alpha); in homoscedasticTTest()
210 double alpha) in pairedTTest() argument
212 return tTest.pairedTTest(sample1, sample2, alpha); in pairedTTest()
259 public static boolean tTest(double mu, double[] sample, double alpha) in tTest() argument
261 return tTest.tTest(mu, sample, alpha); in tTest()
276 double alpha) in tTest() argument
278 return tTest. tTest(mu, sampleStats, alpha); in tTest()
292 public static boolean tTest(double[] sample1, double[] sample2, double alpha) in tTest() argument
294 return tTest.tTest(sample1, sample2, alpha); in tTest()
[all …]
DTTestImpl.java167 public boolean pairedTTest(double[] sample1, double[] sample2, double alpha) in pairedTTest() argument
169 checkSignificanceLevel(alpha); in pairedTTest()
170 return pairedTTest(sample1, sample2) < alpha; in pairedTTest()
451 public boolean tTest(double mu, double[] sample, double alpha) in tTest() argument
453 checkSignificanceLevel(alpha); in tTest()
454 return tTest(mu, sample) < alpha; in tTest()
529 double alpha) in tTest() argument
531 checkSignificanceLevel(alpha); in tTest()
532 return tTest(mu, sampleStats) < alpha; in tTest()
676 double alpha) in tTest() argument
[all …]
/external/skia/src/opts/
DSkBlitRow_opts_mips_dsp.cpp16 U8CPU alpha, int /*x*/, int /*y*/) { in S32_D565_Blend_mips_dsp() argument
20 alpha += 1; in S32_D565_Blend_mips_dsp()
92 : [alpha]"r"(alpha) in S32_D565_Blend_mips_dsp()
102 *dst++ = SkPackRGB16(SkAlphaBlend(SkPacked32ToR16(c), SkGetPackedR16(d), alpha), in S32_D565_Blend_mips_dsp()
103 SkAlphaBlend(SkPacked32ToG16(c), SkGetPackedG16(d), alpha), in S32_D565_Blend_mips_dsp()
104 SkAlphaBlend(SkPacked32ToB16(c), SkGetPackedB16(d), alpha)); in S32_D565_Blend_mips_dsp()
110 int count, U8CPU alpha, int x, int y) { in S32A_D565_Opaque_Dither_mips_dsp() argument
267 int count, U8CPU alpha, int x, int y) { in S32_D565_Opaque_Dither_mips_dsp() argument
377 int count, U8CPU alpha, int x, int y) { in S32_D565_Blend_Dither_mips_dsp() argument
394 alpha += 1; in S32_D565_Blend_Dither_mips_dsp()
[all …]
/external/skia/include/gpu/
DGrInvariantOutput.h37 void setKnownSingleComponent(uint8_t alpha) { in setKnownSingleComponent()
38 fColor = GrColorPackRGBA(alpha, alpha, alpha, alpha); in setKnownSingleComponent()
115 void mulByKnownSingleComponent(uint8_t alpha) { in mulByKnownSingleComponent() argument
117 if (this->hasZeroAlpha() || 0 == alpha) { in mulByKnownSingleComponent()
120 if (alpha != 255) { in mulByKnownSingleComponent()
122 fColor = GrColorPackRGBA(SkMulDiv255Round(GrColorUnpackR(fColor), alpha), in mulByKnownSingleComponent()
123 SkMulDiv255Round(GrColorUnpackG(fColor), alpha), in mulByKnownSingleComponent()
124 SkMulDiv255Round(GrColorUnpackB(fColor), alpha), in mulByKnownSingleComponent()
125 SkMulDiv255Round(GrColorUnpackA(fColor), alpha)); in mulByKnownSingleComponent()
181 void mulAlphaByKnownSingleComponent(uint8_t alpha) { in mulAlphaByKnownSingleComponent() argument
[all …]
/external/libpng/tests/
Dpngstest18 alpha="$1"
20 exec ./pngstest --tmpfile "${gamma}-${alpha}-" --log ${1+"$@"} $(
42 *-alpha[-.]*)
43 test "$alpha" = "alpha" && echo "$g";;
46 test "$alpha" = "tRNS" -o "$alpha" = "none" && echo "$g";;
49 test "$alpha" = "opaque" -o "$alpha" = "none" && echo "$g";;
/external/webp/src/enc/
Danalysis.c92 const int alpha = 255 * (centers[n] - mid) / (max - min); in SetSegmentAlphas() local
94 enc->dqm_[n].alpha_ = clip(alpha, -127, 127); in SetSegmentAlphas()
106 #define IS_BETTER_ALPHA(alpha, best_alpha) ((alpha) > (best_alpha)) argument
108 static int FinalAlphaValue(int alpha) { in FinalAlphaValue() argument
109 alpha = MAX_ALPHA - alpha; in FinalAlphaValue()
110 return clip(alpha, 0, MAX_ALPHA); in FinalAlphaValue()
116 int alpha; in GetAlpha() local
127 alpha = (max_value > 1) ? ALPHA_SCALE * last_non_zero / max_value : 0; in GetAlpha()
128 return alpha; in GetAlpha()
215 const int alpha = mb->alpha_; in AssignSegments() local
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_alpha.c136 GLfixed alpha = span->alpha; in _swrast_alpha_test() local
139 ALPHA_TEST(FixedToInt(alpha), alpha += alphaStep); in _swrast_alpha_test()
143 GLfixed alpha = span->alpha; in _swrast_alpha_test() local
146 ALPHA_TEST(FixedToInt(alpha), alpha += alphaStep); in _swrast_alpha_test()
150 GLfloat alpha = FixedToFloat(span->alpha); in _swrast_alpha_test() local
152 ALPHA_TEST(alpha, alpha += alphaStep); in _swrast_alpha_test()
/external/eigen/blas/f2c/
Dzhpmv.c15 /* Subroutine */ int zhpmv_(char *uplo, integer *n, doublecomplex *alpha, in zhpmv_() argument
166 if (*n == 0 || (alpha->r == 0. && alpha->i == 0. && (beta->r == 1. && in zhpmv_()
235 if (alpha->r == 0. && alpha->i == 0.) { in zhpmv_()
247 z__1.r = alpha->r * x[i__2].r - alpha->i * x[i__2].i, z__1.i = in zhpmv_()
248 alpha->r * x[i__2].i + alpha->i * x[i__2].r; in zhpmv_()
277 z__4.r = alpha->r * temp2.r - alpha->i * temp2.i, z__4.i = in zhpmv_()
278 alpha->r * temp2.i + alpha->i * temp2.r; in zhpmv_()
290 z__1.r = alpha->r * x[i__2].r - alpha->i * x[i__2].i, z__1.i = in zhpmv_()
291 alpha->r * x[i__2].i + alpha->i * x[i__2].r; in zhpmv_()
322 z__4.r = alpha->r * temp2.r - alpha->i * temp2.i, z__4.i = in zhpmv_()
[all …]
Dchpmv.c15 /* Subroutine */ int chpmv_(char *uplo, integer *n, complex *alpha, complex * in chpmv_() argument
166 if (*n == 0 || (alpha->r == 0.f && alpha->i == 0.f && (beta->r == 1.f && in chpmv_()
235 if (alpha->r == 0.f && alpha->i == 0.f) { in chpmv_()
247 q__1.r = alpha->r * x[i__2].r - alpha->i * x[i__2].i, q__1.i = in chpmv_()
248 alpha->r * x[i__2].i + alpha->i * x[i__2].r; in chpmv_()
277 q__4.r = alpha->r * temp2.r - alpha->i * temp2.i, q__4.i = in chpmv_()
278 alpha->r * temp2.i + alpha->i * temp2.r; in chpmv_()
290 q__1.r = alpha->r * x[i__2].r - alpha->i * x[i__2].i, q__1.i = in chpmv_()
291 alpha->r * x[i__2].i + alpha->i * x[i__2].r; in chpmv_()
322 q__4.r = alpha->r * temp2.r - alpha->i * temp2.i, q__4.i = in chpmv_()
[all …]
Dzhbmv.c16 *alpha, doublecomplex *a, integer *lda, doublecomplex *x, integer * in zhbmv_()
208 if (*n == 0 || (alpha->r == 0. && alpha->i == 0. && (beta->r == 1. && in zhbmv_()
277 if (alpha->r == 0. && alpha->i == 0.) { in zhbmv_()
289 z__1.r = alpha->r * x[i__2].r - alpha->i * x[i__2].i, z__1.i = in zhbmv_()
290 alpha->r * x[i__2].i + alpha->i * x[i__2].r; in zhbmv_()
320 z__4.r = alpha->r * temp2.r - alpha->i * temp2.i, z__4.i = in zhbmv_()
321 alpha->r * temp2.i + alpha->i * temp2.r; in zhbmv_()
332 z__1.r = alpha->r * x[i__4].r - alpha->i * x[i__4].i, z__1.i = in zhbmv_()
333 alpha->r * x[i__4].i + alpha->i * x[i__4].r; in zhbmv_()
367 z__4.r = alpha->r * temp2.r - alpha->i * temp2.i, z__4.i = in zhbmv_()
[all …]
/external/libpng/contrib/pngminus/
Dpnm2png.bat15 REM -- gray with alpha-channel
16 pnm2png.exe -alpha basn6a08.pgm basn4a08.pgm basn4a08.png
17 pnm2png.exe -alpha basn6a16.pgm basn4a16.pgm basn4a16.png
18 REM -- color with alpha-channel
19 pnm2png.exe -alpha basn6a08.pgm basn6a08.ppm basn6a08.png
20 pnm2png.exe -alpha basn6a16.pgm basn6a16.ppm basn6a16.png
35 REM -- gray with alpha-channel
36 pnm2png.exe -alpha rawn6a08.pgm rawn4a08.pgm rawn4a08.png
37 pnm2png.exe -alpha rawn6a16.pgm rawn4a16.pgm rawn4a16.png
38 REM -- color with alpha-channel
[all …]
/external/skia/experimental/AndroidPathRenderer/
DVertex.h50 float alpha; member
52 static inline void set(AlphaVertex* vertex, float x, float y, float alpha) { in set()
54 vertex[0].alpha = alpha; in set()
57 static inline void setColor(AlphaVertex* vertex, float alpha) { in setColor()
58 vertex[0].alpha = alpha; in setColor()
/external/speex/libspeex/
Dscal.c76 float *alpha; member
99 st->alpha = speex_alloc(channels*sizeof(float)); in speex_decorrelate_new()
113 st->alpha[ch] = 0; in speex_decorrelate_new()
160 float alpha; in speex_decorrelate() local
166 alpha = st->alpha[ch]; in speex_decorrelate()
185 …st->y[i] = alpha*(x[i-ALLPASS_ORDER+order]-beta*x[i-ALLPASS_ORDER+order-1])*st->vorbis_win[st->fra… in speex_decorrelate()
187 - alpha*(ring[ringID] in speex_decorrelate()
204 alpha = alpha + .4*uni_rand(&st->seed); in speex_decorrelate()
205 if (alpha > max_alpha) in speex_decorrelate()
206 alpha = max_alpha; in speex_decorrelate()
[all …]

12345678910>>...43