/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | TextGammaActivity.java | 40 final GammaTextView gamma = new GammaTextView(this); in onCreate() local 41 layout.addView(gamma, new LinearLayout.LayoutParams( in onCreate() 49 Bitmap b = Bitmap.createBitmap(gamma.getWidth(), gamma.getHeight(), in onCreate() 53 gamma.draw(c); in onCreate() 91 final GammaTextView gamma = new GammaTextView(this); in onCreate() local 96 layout.addView(gamma, lp); in onCreate()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | weight_a.c | 31 Word16 gamma, /* (i) Q15 : Spectral expansion factor. */ in Weight_a() argument 37 fac = gamma; in Weight_a() 40 fac = (vo_L_mult(fac, gamma) + 0x8000) >> 16; in Weight_a()
|
/frameworks/native/libs/ui/ |
D | ColorSpace.cpp | 71 static ColorSpace::transfer_function toOETF(float gamma) { in toOETF() argument 72 if (gamma == 1.0f) { in toOETF() 75 return std::bind(safePow, _1, 1.0f / gamma); in toOETF() 78 static ColorSpace::transfer_function toEOTF(float gamma) { in toEOTF() argument 79 if (gamma == 1.0f) { in toEOTF() 82 return std::bind(safePow, _1, gamma); in toEOTF() 135 float gamma, in ColorSpace() argument 140 , mParameters({gamma, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}) in ColorSpace() 141 , mOETF(toOETF(gamma)) 142 , mEOTF(toEOTF(gamma)) [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | TableMaskFilter.java | 42 public static TableMaskFilter CreateGammaTable(float gamma) { in CreateGammaTable() argument 43 return new TableMaskFilter(nativeNewGamma(gamma)); in CreateGammaTable() 48 private static native long nativeNewGamma(float gamma); in nativeNewGamma() argument
|
D | ColorSpace.java | 2593 double gamma) { in Rgb() argument 2594 … this(name, computePrimaries(toXYZ), computeWhitePoint(toXYZ), gamma, 0.0f, 1.0f, MIN_ID); in Rgb() 2633 double gamma) { in Rgb() argument 2634 this(name, primaries, whitePoint, gamma, 0.0f, 1.0f, MIN_ID); in Rgb() 2678 double gamma, in Rgb() argument 2683 gamma == 1.0 ? DoubleUnaryOperator.identity() : in Rgb() 2684 x -> Math.pow(x < 0.0 ? 0.0 : x, 1 / gamma), in Rgb() 2685 gamma == 1.0 ? DoubleUnaryOperator.identity() : in Rgb() 2686 x -> Math.pow(x < 0.0 ? 0.0 : x, gamma), in Rgb() 2687 min, max, new TransferParameters(1.0, 0.0, 0.0, 0.0, gamma), id); in Rgb()
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | weight_amrwb_lpc.cpp | 119 int16 gamma, /* (i) Q15 : Spectral expansion factor. */ in weight_amrwb_lpc() argument 126 fac = gamma; in weight_amrwb_lpc() 130 fac = (int16)(fxp_mac_16by16(fac, gamma, roundFactor) >> 15); in weight_amrwb_lpc()
|
D | pvamrwbdecoder_acelp.h | 117 int16 gamma, /* (i) Q15 : Spectral expansion factor. */
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessMappingStrategyTest.java | 474 float gamma = 0.5f; in testGammaCorrectionLowChangeAtCenter() local 475 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionLowChangeAtCenter() 476 assertEquals(MathUtils.pow(y1, gamma), strategy.getBrightness(x1), 0.01f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 477 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), 0.01f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 478 assertEquals(MathUtils.pow(y3, gamma), strategy.getBrightness(x3), 0.01f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 502 float gamma = 0.25f; in testGammaCorrectionHighChangeAtCenter() local 504 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionHighChangeAtCenter() 507 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), in testGammaCorrectionHighChangeAtCenter() 549 float gamma = (float) MathUtils.pow(MAXIMUM_GAMMA, -adjustment); in testGammaCorrectionChangeAtEdges() local 552 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), 0.01f /* tolerance */); in testGammaCorrectionChangeAtEdges() [all …]
|
/frameworks/base/core/res/res/raw/ |
D | color_fade_frag.frag | 6 uniform float gamma; 12 vec3 rgb = pow(color.rgb * opacity, vec3(gamma));
|
/frameworks/ml/nn/common/operations/ |
D | InstanceNormalization.cpp | 46 inline bool instanceNormNhwc(const T* inputData, const Shape& inputShape, T gamma, T beta, in instanceNormNhwc() argument 69 outputData[ind] = (inputData[ind] - mean) * gamma / var + beta; in instanceNormNhwc() 78 inline bool instanceNorm(const T* inputData, const Shape& inputShape, T gamma, T beta, T epsilon, in instanceNorm() argument 84 NN_RET_CHECK(instanceNormNhwc(input.getNhwcBuffer(), input.getNhwcShape(), gamma, beta, epsilon, in instanceNorm()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessMappingStrategy.java | 377 float gamma = Float.NaN; in inferAutoBrightnessAdjustment() local 390 gamma = MathUtils.log(desiredBrightness) / MathUtils.log(currentBrightness); in inferAutoBrightnessAdjustment() 392 adjustment = -MathUtils.log(gamma) / MathUtils.log(maxGamma); in inferAutoBrightnessAdjustment() 397 MathUtils.pow(maxGamma, -adjustment) + " == " + gamma); in inferAutoBrightnessAdjustment() 398 Slog.d(TAG, "inferAutoBrightnessAdjustment: " + currentBrightness + "^" + gamma + "=" + in inferAutoBrightnessAdjustment() 399 MathUtils.pow(currentBrightness, gamma) + " == " + desiredBrightness); in inferAutoBrightnessAdjustment() 412 float gamma = MathUtils.pow(maxGamma, -adjustment); in getAdjustedCurve() local 415 MathUtils.pow(maxGamma, -adjustment) + " == " + gamma); in getAdjustedCurve() 417 if (gamma != 1) { in getAdjustedCurve() 419 newBrightness[i] = MathUtils.pow(newBrightness[i], gamma); in getAdjustedCurve()
|
D | ColorFade.java | 397 float gamma = (float) ((0.5d * sign * Math.pow(cos, 2) + 0.5d) * 0.9d + 0.1d); in draw() 398 drawFaded(opacity, 1.f / gamma); in draw() 410 private void drawFaded(float opacity, float gamma) { 412 Slog.d(TAG, "drawFaded: opacity=" + opacity + ", gamma=" + gamma); 421 GLES20.glUniform1f(mGammaLoc, gamma);
|
/frameworks/base/core/java/android/os/ |
D | VibrationEffect.java | 385 protected static int scale(int amplitude, float gamma, int maxAmplitude) { in scale() argument 386 float val = MathUtils.pow(amplitude / (float) MAX_AMPLITUDE, gamma); in scale() 425 public OneShot scale(float gamma, int maxAmplitude) { in scale() argument 430 int newAmplitude = scale(mAmplitude, gamma, maxAmplitude); in scale() 565 public Waveform scale(float gamma, int maxAmplitude) { in scale() argument 570 if (gamma == 1.0f && maxAmplitude == MAX_AMPLITUDE) { in scale() 577 scaledAmplitudes[i] = scale(scaledAmplitudes[i], gamma, maxAmplitude); in scale()
|
/frameworks/base/core/jni/android/graphics/ |
D | MaskFilter.cpp | 58 static jlong createGammaTable(JNIEnv* env, jobject, jfloat gamma) { in createGammaTable() argument 59 SkMaskFilter* filter = SkTableMaskFilter::CreateGamma(gamma); in createGammaTable()
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | ColorSpace.h | 92 float gamma, 143 float gamma,
|
/frameworks/native/libs/ui/include/ui/ |
D | ColorSpace.h | 92 float gamma, 143 float gamma,
|
/frameworks/base/services/core/java/com/android/server/ |
D | VibratorService.java | 323 public final float gamma; field in VibratorService.ScaleLevel 326 public ScaleLevel(float gamma) { in ScaleLevel() argument 327 this(gamma, VibrationEffect.MAX_AMPLITUDE); in ScaleLevel() 330 public ScaleLevel(float gamma, int maxAmplitude) { in ScaleLevel() argument 331 this.gamma = gamma; in ScaleLevel() 337 return "ScaleLevel{gamma=" + gamma + ", maxAmplitude=" + maxAmplitude + "}"; in toString() 858 scaledEffect = oneShot.scale(scale.gamma, scale.maxAmplitude); in applyVibrationIntensityScalingLocked() 862 scaledEffect = waveform.scale(scale.gamma, scale.maxAmplitude); in applyVibrationIntensityScalingLocked()
|
/frameworks/rs/ |
D | rsFont.cpp | 341 float gamma = DEFAULT_TEXT_GAMMA; in FontState() local 351 gamma = atof(property); in FontState() 369 mBlackGamma = gamma; in FontState() 370 mWhiteGamma = 1.0f / gamma; in FontState()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/ |
D | acelp.h | 95 Word16 gamma, /* (i) Q15 : Spectral expansion factor. */
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioMixer.cpp | 1866 float gamma = t->getHapticScaleGamma(); in processHapticData() local 1876 fout[i] = powf(fabsf(fout[i] / HAPTIC_MAX_AMPLITUDE_FLOAT), gamma) in processHapticData()
|
/frameworks/wilhelm/doc/ |
D | Doxyfile | 828 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to 831 # the output darker. The value divided by 100 is the actual gamma applied, 832 # so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, 833 # and 100 does not change the gamma.
|
/frameworks/rs/script_api/ |
D | rs_math.spec | 1286 summary: Natural logarithm of the gamma function 1288 Returns the natural logarithm of the absolute value of the gamma function, 3332 Returns the gamma function of a value.
|
/frameworks/native/docs/ |
D | Doxyfile | 997 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to 1000 # the output darker. The value divided by 100 is the actual gamma applied, 1001 # so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, 1002 # and 100 does not change the gamma.
|
/frameworks/av/media/libaaudio/ |
D | Doxyfile | 1111 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the 1114 # darker. The value divided by 100 is the actual gamma applied, so 80 represents 1115 # a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not 1116 # change the gamma.
|
D | Doxyfile.orig | 1102 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the 1105 # darker. The value divided by 100 is the actual gamma applied, so 80 represents 1106 # a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not 1107 # change the gamma.
|