Home
last modified time | relevance | path

Searched refs:gamma (Results 1 – 25 of 487) sorted by relevance

12345678910>>...20

/external/google-tv-pairing-protocol/cpp/tests/polo/pairing/
Dpolochallengeresponsetest.cc112 const Gamma* gamma = response->GetGamma(nonce); in TEST_F() local
113 ASSERT_TRUE(gamma); in TEST_F()
116 util::PoloUtil::BytesToHexString(&(*gamma)[0], gamma->size())); in TEST_F()
117 delete gamma; in TEST_F()
121 const Gamma* gamma = response->GetGamma(nonce); in TEST_F() local
122 ASSERT_TRUE(gamma); in TEST_F()
124 util::PoloUtil::BytesToHexString(&(*gamma)[0], gamma->size())); in TEST_F()
126 const Nonce* extracted = response->ExtractNonce(*gamma); in TEST_F()
132 delete gamma; in TEST_F()
137 Gamma gamma(8); in TEST_F() local
[all …]
Dpairingsessiontest.cc202 Gamma gamma(5, 0x1); in TEST_F() local
206 EXPECT_CALL(challenge_, CheckGamma(gamma)).WillOnce(Return(true)); in TEST_F()
207 EXPECT_CALL(challenge_, ExtractNonce(gamma)) in TEST_F()
215 session_.SetSecret(gamma); in TEST_F()
232 Gamma gamma(5, 0x1); in TEST_F() local
236 EXPECT_CALL(challenge_, CheckGamma(gamma)).WillOnce(Return(true)); in TEST_F()
237 EXPECT_CALL(challenge_, ExtractNonce(gamma)) in TEST_F()
245 session_.SetSecret(gamma); in TEST_F()
/external/python/cpython2/Lib/test/
Dmath_testcases.txt170 -- lgamma: log of absolute value of the gamma function --
250 -- inputs for which gamma(x) is tiny
275 -- gamma: Gamma function --
279 gam0000 gamma 0.0 -> inf divide-by-zero
280 gam0001 gamma -0.0 -> -inf divide-by-zero
281 gam0002 gamma inf -> inf
282 gam0003 gamma -inf -> nan invalid
283 gam0004 gamma nan -> nan
286 gam0010 gamma -1 -> nan invalid
287 gam0011 gamma -2 -> nan invalid
[all …]
/external/ImageMagick/MagickCore/
Dcomposite-private.h57 gamma, in CompositePixelOver() local
68 gamma=Sa+Da-Sa*Da; in CompositePixelOver()
69 gamma=PerceptibleReciprocal(gamma); in CompositePixelOver()
86 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->red,alpha, in CompositePixelOver()
92 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->green,alpha, in CompositePixelOver()
98 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->blue,alpha, in CompositePixelOver()
104 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->black,alpha, in CompositePixelOver()
127 gamma, in CompositePixelInfoOver() local
135 gamma=Sa+Da-Sa*Da; in CompositePixelInfoOver()
136 composite->alpha=(double) QuantumRange*RoundToUnity(gamma); in CompositePixelInfoOver()
[all …]
Dcomposite.c381 gamma, in CompositeOverImage() local
447 gamma=Sa+Da-Sa*Da; in CompositeOverImage()
448 gamma=PerceptibleReciprocal(gamma); in CompositeOverImage()
485 ClampPixel(gamma*QuantumRange*(Sca+Dca*(1.0-Sa))) : in CompositeOverImage()
486 ClampToQuantum(gamma*QuantumRange*(Sca+Dca*(1.0-Sa))); in CompositeOverImage()
1281 gamma; local
1661 gamma=PerceptibleReciprocal(1.0-alpha);
1666 gamma=PerceptibleReciprocal(alpha);
1686 pixel=gamma*(source_dissolve*Sa*Sc+canvas_dissolve*Da*Dc);
1727 pixel=QuantumRange*gamma*(Sa*Da+Dca*(1.0-Sa));
[all …]
Dpixel.c4511 gamma; in CatromWeights() local
4528 gamma=(*weights)[3]-(*weights)[0]; in CatromWeights()
4529 (*weights)[1]=alpha-(*weights)[0]+gamma; in CatromWeights()
4530 (*weights)[2]=x-(*weights)[3]-gamma; in CatromWeights()
4575 gamma, in InterpolatePixelChannel() local
4654 gamma=PerceptibleReciprocal(alpha[i])/count; in InterpolatePixelChannel()
4655 *pixel+=gamma*pixels[i]; in InterpolatePixelChannel()
4689 gamma=((epsilon.y*(epsilon.x*alpha[0]+delta.x*alpha[1])+delta.y* in InterpolatePixelChannel()
4691 gamma=PerceptibleReciprocal(gamma); in InterpolatePixelChannel()
4692 *pixel=gamma*(epsilon.y*(epsilon.x*pixels[0]+delta.x*pixels[1])+delta.y* in InterpolatePixelChannel()
[all …]
Daccelerate-kernels-private.h760 gamma,
766 gamma=sqrt(-2.0f*log(alpha));
767 sigma=gamma*cospi((2.0f*beta));
768 tau=gamma*sinpi((2.0f*beta));
1310 float gamma = 0.0f;
1324 gamma += f;
1347 gamma += g;
1353 gamma = PerceptibleReciprocal(gamma);
1354 sum.xyz = gamma*sum.xyz;
1391 float gamma = 0.0f;
[all …]
Deffect.c310 gamma, in AdaptiveBlurImage() local
347 gamma=0.0; in AdaptiveBlurImage()
358 gamma+=(*k); in AdaptiveBlurImage()
363 gamma=PerceptibleReciprocal(gamma); in AdaptiveBlurImage()
364 SetPixelChannel(blur_image,channel,ClampToQuantum(gamma*pixel),q); in AdaptiveBlurImage()
376 gamma+=(*k)*alpha; in AdaptiveBlurImage()
381 gamma=PerceptibleReciprocal(gamma); in AdaptiveBlurImage()
382 SetPixelChannel(blur_image,channel,ClampToQuantum(gamma*pixel),q); in AdaptiveBlurImage()
631 gamma, in AdaptiveSharpenImage() local
668 gamma=0.0; in AdaptiveSharpenImage()
[all …]
/external/skia/src/core/
DSkMaskGamma.cpp15 SkScalar toLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luminance) const override { in toLuma() argument
16 SkASSERT(SK_Scalar1 == gamma); in toLuma()
19 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const override { in fromLuma() argument
20 SkASSERT(SK_Scalar1 == gamma); in fromLuma()
26 SkScalar toLuma(SkScalar gamma, SkScalar luminance) const override { in toLuma() argument
27 return SkScalarPow(luminance, gamma); in toLuma()
29 SkScalar fromLuma(SkScalar gamma, SkScalar luma) const override { in fromLuma() argument
30 return SkScalarPow(luma, SkScalarInvert(gamma)); in fromLuma()
35 SkScalar toLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luminance) const override { in toLuma() argument
36 SkASSERT(0 == gamma); in toLuma()
[all …]
DSkMaskGamma.h28 virtual SkScalar toLuma(SkScalar gamma, SkScalar luminance) const = 0;
30 virtual SkScalar fromLuma(SkScalar gamma, SkScalar luma) const = 0;
33 static U8CPU computeLuminance(SkScalar gamma, SkColor c) { in computeLuminance() argument
34 const SkColorSpaceLuminance& luminance = Fetch(gamma); in computeLuminance()
35 SkScalar r = luminance.toLuma(gamma, SkIntToScalar(SkColorGetR(c)) / 255); in computeLuminance()
36 SkScalar g = luminance.toLuma(gamma, SkIntToScalar(SkColorGetG(c)) / 255); in computeLuminance()
37 SkScalar b = luminance.toLuma(gamma, SkIntToScalar(SkColorGetB(c)) / 255); in computeLuminance()
42 return SkScalarRoundToInt(luminance.fromLuma(gamma, luma) * 255); in computeLuminance()
46 static const SkColorSpaceLuminance& Fetch(SkScalar gamma);
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/
Dpolochallengeresponse.cc102 Gamma* gamma = new Gamma(nonce.size() * 2); in GetGamma() local
105 memcpy(&(*gamma)[0], &(*alpha)[0], nonce.size()); in GetGamma()
106 memcpy(&(*gamma)[nonce.size()], &nonce[0], nonce.size()); in GetGamma()
110 return gamma; in GetGamma()
113 Nonce* PoloChallengeResponse::ExtractNonce(const Gamma& gamma) const { in ExtractNonce()
114 if ((gamma.size() < 2) || (gamma.size() % 2 != 0)) { in ExtractNonce()
118 Nonce* nonce = new Nonce(gamma.size() / 2); in ExtractNonce()
119 memcpy(&(*nonce)[0], &gamma[nonce->size()], nonce->size()); in ExtractNonce()
124 bool PoloChallengeResponse::CheckGamma(const Gamma& gamma) const { in CheckGamma()
125 const Nonce* nonce = ExtractNonce(gamma); in CheckGamma()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
DChiSquaredDistributionImpl.java42 private GammaDistribution gamma; field in ChiSquaredDistributionImpl
81 gamma = new GammaDistributionImpl(df / 2.0, 2.0); in ChiSquaredDistributionImpl()
100 gamma.setAlpha(degreesOfFreedom / 2.0); in setDegreesOfFreedomInternal()
108 return gamma.getAlpha() * 2.0; in getDegreesOfFreedom()
132 return gamma.density(x); in density()
143 return gamma.cumulativeProbability(x); in cumulativeProbability()
182 return Double.MIN_VALUE * gamma.getBeta(); in getDomainLowerBound()
256 this.gamma = g; in setGammaInternal()
/external/libpng/tests/
Dpngstest16 gamma="$1"
27 test "$gamma" = "linear" && g="$f";;
30 test "$gamma" = "sRGB" && g="$f";;
33 test "$gamma" = "1.8" && g="$f";;
36 test "$gamma" = "none" && g="$f";;
54 exec ./pngstest --tmpfile "${gamma}-${alpha}-" --log ${1+"$@"} $args
/external/skia/bench/
DColorCodecBench.cpp72 SkColorSpaceTransferFn gamma; in onDelayedSetup() local
73 gamma.fA = 1.0f; in onDelayedSetup()
74 gamma.fB = gamma.fC = gamma.fD = gamma.fE = gamma.fF = 0.0f; in onDelayedSetup()
75 gamma.fG = 4.0f; in onDelayedSetup()
78 fDstSpace = SkColorSpace::MakeRGB(gamma, matrix); in onDelayedSetup()
/external/eigen/unsupported/test/
Dcxx11_tensor_sugar.cpp44 const float gamma = 0.14f; in test_scalar_sugar_add_mul() local
46 Tensor<float, 3> R = A.constant(gamma) + A * A.constant(alpha) + B * B.constant(beta); in test_scalar_sugar_add_mul()
47 Tensor<float, 3> S = A * alpha + B * beta + gamma; in test_scalar_sugar_add_mul()
48 Tensor<float, 3> T = gamma + alpha * A + beta * B; in test_scalar_sugar_add_mul()
64 const float gamma = 0.14f; in test_scalar_sugar_sub_div() local
67 Tensor<float, 3> R = A.constant(gamma) - A / A.constant(alpha) in test_scalar_sugar_sub_div()
69 Tensor<float, 3> S = gamma - A / alpha - beta / B - delta; in test_scalar_sugar_sub_div()
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
DPoloChallengeResponse.java163 public byte[] extractNonce(byte[] gamma) { in extractNonce() argument
164 if ((gamma.length < 2) || (gamma.length % 2 != 0)) { in extractNonce()
167 int nonceLength = gamma.length / 2; in extractNonce()
169 System.arraycopy(gamma, nonceLength, nonce, 0, nonceLength); in extractNonce()
181 public boolean checkGamma(byte[] gamma) throws PoloException { in checkGamma() argument
185 nonce = extractNonce(gamma); in checkGamma()
191 logDebug("User gamma is: " + PoloUtil.bytesToHexString(gamma)); in checkGamma()
193 return Arrays.equals(gamma, getGamma(nonce)); in checkGamma()
/external/ImageMagick/coders/
Dhdr.c144 gamma; in ReadHDRImage() local
306 image->gamma=StringToDouble(value,(char **) NULL); in ReadHDRImage()
487 gamma=pow(2.0,pixel[3]-(128.0+8.0)); in ReadHDRImage()
488 SetPixelRed(image,ClampToQuantum(QuantumRange*gamma*pixel[0]),q); in ReadHDRImage()
489 SetPixelGreen(image,ClampToQuantum(QuantumRange*gamma*pixel[1]),q); in ReadHDRImage()
490 SetPixelBlue(image,ClampToQuantum(QuantumRange*gamma*pixel[2]),q); in ReadHDRImage()
724 if (image->gamma != 0.0) in WriteHDRImage()
727 image->gamma); in WriteHDRImage()
769 gamma; in WriteHDRImage() local
775 gamma=QuantumScale*GetPixelRed(image,p); in WriteHDRImage()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/direct/
DMultiDirectional.java40 private final double gamma; field in MultiDirectional
47 this.gamma = 0.5; in MultiDirectional()
54 public MultiDirectional(final double khi, final double gamma) { in MultiDirectional() argument
56 this.gamma = gamma; in MultiDirectional()
90 final RealPointValuePair contracted = evaluateNewSimplex(original, gamma, comparator); in iterateSimplex()
DNelderMead.java42 private final double gamma; field in NelderMead
54 this.gamma = 0.5; in NelderMead()
65 final double gamma, final double sigma) { in NelderMead() argument
68 this.gamma = gamma; in NelderMead()
139 xC[j] = centroid[j] + gamma * (xR[j] - centroid[j]); in iterateSimplex()
154 xC[j] = centroid[j] - gamma * (centroid[j] - xWorst[j]); in iterateSimplex()
/external/libpng/contrib/libtests/
Dgentests.sh68 for gamma in "" --sRGB --linear --1.8
70 case "$gamma" in
80 gname="-$gamma";;
82 "$mp" $gamma "$1" "$2" "test-$1-$2$gname.png"
/external/syslinux/com32/lib/libpng/
DTODO5 Finish work on the no-floating-point version (including gamma compensation)
13 Complete sRGB transformation (presently it simply uses gamma=0.45455).
21 Build gamma tables using fixed point (and do away with floating point entirely).
22 Use greater precision when changing to linear gamma for compositing against
/external/skia/include/effects/
DSkTableMaskFilter.h23 static void MakeGammaTable(uint8_t table[256], SkScalar gamma);
34 static SkMaskFilter* CreateGamma(SkScalar gamma) { in CreateGamma() argument
36 MakeGammaTable(table, gamma); in CreateGamma()
/external/libpng/contrib/gregbook/
Dreadpng2.c222 double gamma; in readpng2_info_callback() local
224 png_fixed_point gamma; in readpng2_info_callback() local
345 if (png_get_gAMA(png_ptr, info_ptr, &gamma)) in readpng2_info_callback()
346 png_set_gamma(png_ptr, mainprog_ptr->display_exponent, gamma); in readpng2_info_callback()
350 if (png_get_gAMA_fixed(png_ptr, info_ptr, &gamma)) in readpng2_info_callback()
352 (png_fixed_point)(100000*mainprog_ptr->display_exponent+.5), gamma); in readpng2_info_callback()
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/estimators/
Dnada.cc248 float gamma = in AcceleratedRampUp() local
252 bitrate_kbps_ = static_cast<int>((1.0f + gamma) * fb.receiving_rate() + 0.5f); in AcceleratedRampUp()
257 float gamma = 3.0f * kMaxCongestionSignalMs / in AcceleratedRampDown() local
259 gamma = std::min(gamma, kGamma0); in AcceleratedRampDown()
260 bitrate_kbps_ = gamma * fb.receiving_rate() + 0.5f; in AcceleratedRampDown()
/external/pdfium/third_party/libtiff/
Dtif_color.c129 double gamma; in TIFFCIELabToRGBInit() local
136 gamma = 1.0 / cielab->display.d_gammaR ; in TIFFCIELabToRGBInit()
141 * ((float)pow((double)i / cielab->range, gamma)); in TIFFCIELabToRGBInit()
145 gamma = 1.0 / cielab->display.d_gammaG ; in TIFFCIELabToRGBInit()
150 * ((float)pow((double)i / cielab->range, gamma)); in TIFFCIELabToRGBInit()
154 gamma = 1.0 / cielab->display.d_gammaB ; in TIFFCIELabToRGBInit()
159 * ((float)pow((double)i / cielab->range, gamma)); in TIFFCIELabToRGBInit()

12345678910>>...20