/frameworks/base/libs/hwui/ |
GammaFontRenderer.cpp | 25 INIT_LOGD("Creating lookup gamma font renderer"); 28 // Compute the gamma tables 29 const float gamma = 1.0f / Properties::textGamma; local 31 mGammaTable[i] = uint8_t((float)::floor(pow(i / 255.0f, gamma) * 255.0f + 0.5f));
|
/external/tensorflow/tensorflow/core/kernels/ |
smooth-hinge-loss.h | 45 (label - wx - gamma * current_dual) / 46 (num_partitions * example_weight * weighted_example_norm + gamma); 64 return (-y_alpha + 0.5 * gamma * current_dual * current_dual) * 72 if (y_wx <= 1 - gamma) return (1 - y_wx - gamma / 2) * example_weight; 73 return (1 - y_wx) * (1 - y_wx) * example_weight * 0.5 / gamma; 97 if (label * wx <= 1 - gamma) { 100 return (wx - label) / gamma; 103 double SmoothnessConstant() const final { return gamma; } 108 const double gamma = 1 member in class:tensorflow::SmoothHingeLossUpdater [all...] |
/external/ImageMagick/MagickCore/ |
composite-private.h | 57 gamma, local 68 gamma=Sa+Da-Sa*Da; 69 gamma=PerceptibleReciprocal(gamma); 86 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->red,alpha, 92 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->green,alpha, 98 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->blue,alpha, 104 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->black,alpha, 127 gamma, local 135 gamma=Sa+Da-Sa*Da 150 gamma, local [all...] |
/external/eigen/unsupported/test/ |
cxx11_tensor_sugar.cpp | 44 const float gamma = 0.14f; local 46 Tensor<float, 3> R = A.constant(gamma) + A * A.constant(alpha) + B * B.constant(beta); 47 Tensor<float, 3> S = A * alpha + B * beta + gamma; 48 Tensor<float, 3> T = gamma + alpha * A + beta * B; 64 const float gamma = 0.14f; local 67 Tensor<float, 3> R = A.constant(gamma) - A / A.constant(alpha) 69 Tensor<float, 3> S = gamma - A / alpha - beta / B - delta;
|
/external/skia/bench/ |
ColorCodecBench.cpp | 69 SkColorSpaceTransferFn gamma; local 70 gamma.fA = 1.0f; 71 gamma.fB = gamma.fC = gamma.fD = gamma.fE = gamma.fF = 0.0f; 72 gamma.fG = 4.0f; 75 fDstSpace = SkColorSpace::MakeRGB(gamma, matrix);
|
SkRasterPipelineBench.cpp | 107 static SkColorSpaceTransferFn gamma(float g) { function 127 SkColorSpaceTransferFn from_2dot2 = gamma( 2.2f), 128 to_2dot2 = gamma(1/2.2f); 140 p.append(SkRasterPipeline::gamma, &from_2dot2.fG); 141 p.append(SkRasterPipeline::gamma, & to_2dot2.fG);
|
/external/skqp/bench/ |
ColorCodecBench.cpp | 69 SkColorSpaceTransferFn gamma; local 70 gamma.fA = 1.0f; 71 gamma.fB = gamma.fC = gamma.fD = gamma.fE = gamma.fF = 0.0f; 72 gamma.fG = 4.0f; 75 fDstSpace = SkColorSpace::MakeRGB(gamma, matrix);
|
SkRasterPipelineBench.cpp | 107 static SkColorSpaceTransferFn gamma(float g) { function 127 SkColorSpaceTransferFn from_2dot2 = gamma( 2.2f), 128 to_2dot2 = gamma(1/2.2f); 140 p.append(SkRasterPipeline::gamma, &from_2dot2.fG); 141 p.append(SkRasterPipeline::gamma, & to_2dot2.fG);
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/i386-linux-gnu/bits/ |
math-finite.h | 209 /* gamma. */ 210 __extern_always_inline double __NTH (gamma (double __d)) function
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/x86_64-linux-gnu/bits/ |
math-finite.h | 209 /* gamma. */ 210 __extern_always_inline double __NTH (gamma (double __d)) function
|
/external/google-tv-pairing-protocol/cpp/tests/polo/pairing/ |
polochallengeresponsetest.cc | 112 const Gamma* gamma = response->GetGamma(nonce); local 113 ASSERT_TRUE(gamma); 116 util::PoloUtil::BytesToHexString(&(*gamma)[0], gamma->size())); 117 delete gamma; 121 const Gamma* gamma = response->GetGamma(nonce); local 122 ASSERT_TRUE(gamma); 124 util::PoloUtil::BytesToHexString(&(*gamma)[0], gamma->size())) [all...] |
/external/libpng/contrib/gregbook/ |
readpng.c | 210 double gamma; local 252 * this file may have come from--so if it doesn't have a file gamma, don't 255 if (png_get_gAMA(png_ptr, info_ptr, &gamma)) 256 png_set_gamma(png_ptr, display_exponent, gamma);
|
readpng2.c | 223 double gamma; local 225 png_fixed_point gamma; local 336 * such images have a file gamma of 0.45455, which corresponds to a PC-like 342 * "gamma" value for the entire display system, i.e., the product of 346 if (png_get_gAMA(png_ptr, info_ptr, &gamma)) 347 png_set_gamma(png_ptr, mainprog_ptr->display_exponent, gamma); 351 if (png_get_gAMA_fixed(png_ptr, info_ptr, &gamma)) 353 (png_fixed_point)(100000*mainprog_ptr->display_exponent+.5), gamma);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
TextGammaActivity.java | 40 final GammaTextView gamma = new GammaTextView(this); local 41 layout.addView(gamma, new LinearLayout.LayoutParams( 49 Bitmap b = Bitmap.createBitmap(gamma.getWidth(), gamma.getHeight(), 53 gamma.draw(c); 91 final GammaTextView gamma = new GammaTextView(this); local 96 layout.addView(gamma, lp);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
ChiSquaredDistributionImpl.java | 41 /** Internal Gamma distribution. */ 42 private GammaDistribution gamma; field in class:ChiSquaredDistributionImpl 58 * @param g the underlying gamma distribution used to compute probabilities. 81 gamma = new GammaDistributionImpl(df / 2.0, 2.0); 100 gamma.setAlpha(degreesOfFreedom / 2.0); 108 return gamma.getAlpha() * 2.0; 132 return gamma.density(x); 143 return gamma.cumulativeProbability(x); 182 return Double.MIN_VALUE * gamma.getBeta(); 239 * Modify the underlying gamma distribution. The caller is responsible fo [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/direct/ |
MultiDirectional.java | 40 private final double gamma; field in class:MultiDirectional 43 * <p>The default values are 2.0 for khi and 0.5 for gamma.</p> 47 this.gamma = 0.5; 52 * @param gamma contraction coefficient 54 public MultiDirectional(final double khi, final double gamma) { 56 this.gamma = gamma; 90 final RealPointValuePair contracted = evaluateNewSimplex(original, gamma, comparator);
|
NelderMead.java | 42 private final double gamma; field in class:NelderMead 49 * for both gamma and sigma.</p> 54 this.gamma = 0.5; 61 * @param gamma contraction coefficient 65 final double gamma, final double sigma) { 68 this.gamma = gamma; 139 xC[j] = centroid[j] + gamma * (xR[j] - centroid[j]); 154 xC[j] = centroid[j] - gamma * (centroid[j] - xWorst[j]);
|
/external/eigen/unsupported/Eigen/src/IterativeSolvers/ |
ConstrainedConjGrad.h | 114 Scalar rho = 1.0, rho_1, lambda, gamma; local 163 if (transition || iter.first()) gamma = 0.0; 164 else gamma = (std::max)(0.0, (rho - old_z.dot(z)) / rho_1); 165 p = z + gamma*p;
|
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/ |
polochallengeresponse.cc | 96 Gamma* PoloChallengeResponse::GetGamma(const Nonce& nonce) const { 102 Gamma* gamma = new Gamma(nonce.size() * 2); local 105 memcpy(&(*gamma)[0], &(*alpha)[0], nonce.size()); 106 memcpy(&(*gamma)[nonce.size()], &nonce[0], nonce.size()); 110 return gamma; 113 Nonce* PoloChallengeResponse::ExtractNonce(const Gamma& gamma) const { 114 if ((gamma.size() < 2) || (gamma.size() % 2 != 0)) [all...] |
/external/mesa3d/src/gallium/state_trackers/nine/ |
swapchain9.h | 71 D3DGAMMARAMP gamma; member in struct:NineSwapChain9
|
/external/ImageMagick/coders/ |
hdr.c | 148 gamma; 308 if (LocaleCompare(keyword,"gamma") == 0) 310 image->gamma=StringToDouble(value,(char **) NULL); 491 gamma=pow(2.0,pixel[3]-(128.0+8.0)); 492 SetPixelRed(image,ClampToQuantum(QuantumRange*gamma*pixel[0]),q); 493 SetPixelGreen(image,ClampToQuantum(QuantumRange*gamma*pixel[1]),q); 494 SetPixelBlue(image,ClampToQuantum(QuantumRange*gamma*pixel[2]),q); 731 if (image->gamma != 0.0) 733 count=FormatLocaleString(header,MagickPathExtent,"GAMMA=%g\n", 734 image->gamma); 144 gamma; local 769 gamma; local [all...] |
pango.c | 431 gamma; 440 gamma=QuantumScale*fill_color.alpha; 441 gamma=PerceptibleReciprocal(gamma); 442 fill_color.blue*=gamma; 443 fill_color.green*=gamma; 444 fill_color.red*=gamma; 429 gamma; local
|
/external/adhd/cras/src/dsp/ |
biquad.c | 58 double gamma = (0.5 + beta) * cos(theta); local 59 double alpha = 0.25 * (0.5 + beta - gamma); 64 double a1 = 2 * -gamma; 93 double gamma = (0.5 + beta) * cos(theta); local 94 double alpha = 0.25 * (0.5 + beta + gamma); 99 double a1 = 2 * -gamma;
|
/external/dng_sdk/source/ |
dng_color_space.cpp | 66 const real64 gamma = 1.0 / 1.8; local 70 const real64 x1 = 8.2118790552e-4; // pow (slope0, 1.0 / (gamma - 1.0)) * 2.0 72 const real64 y1 = 0.019310851; // pow (x1, gamma) 74 const real64 slope1 = 13.064306598; // gamma * pow (x1, gamma - 1.0) 86 return pow (x, gamma); 122 const real64 gamma = 1.0 / 2.2; local 126 const real64 x1 = 0.0034800731; // pow (slope0, 1.0 / (gamma - 1.0)) * 2.0 128 const real64 y1 = 0.0763027458; // pow (x1, gamma) 130 const real64 slope1 = 9.9661890075; // gamma * pow (x1, gamma - 1.0 [all...] |
/external/eigen/unsupported/Eigen/src/EulerAngles/ |
EulerAngles.h | 31 * - then, rotate the axes system over the gamma axis(which was rotated in the two stages above) in angle gamma 137 /** \returns the axis vector of the third (gamma) rotation */ 149 /** Constructs and initialize Euler angles(\p alpha, \p beta, \p gamma). */ 150 EulerAngles(const Scalar& alpha, const Scalar& beta, const Scalar& gamma) : 151 m_angles(alpha, beta, gamma) {} 169 * \param positiveRangeGamma If true, gamma will be in [0, 2*PI]. Otherwise, in [-PI, +PI]. 199 * \param positiveRangeGamma If true, gamma will be in [0, 2*PI]. Otherwise, in [-PI, +PI]. 211 /** \returns The angle values stored in a vector (alpha, beta, gamma). */ 213 /** \returns A read-write reference to the angle values stored in a vector (alpha, beta, gamma). * 227 Scalar gamma() const { return m_angles[2]; } function in class:Eigen::EulerAngles 229 Scalar& gamma() { return m_angles[2]; } function in class:Eigen::EulerAngles [all...] |