Home
last modified time | relevance | path

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

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DTextGammaActivity.java40 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/
Dweight_a.c31 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/base/graphics/java/android/graphics/
DTableMaskFilter.java39 public static TableMaskFilter CreateGammaTable(float gamma) { in CreateGammaTable() argument
40 return new TableMaskFilter(nativeNewGamma(gamma)); in CreateGammaTable()
45 private static native long nativeNewGamma(float gamma); in nativeNewGamma() argument
DColorSpace.java2433 double gamma) { in Rgb() argument
2434 … this(name, computePrimaries(toXYZ), computeWhitePoint(toXYZ), gamma, 0.0f, 1.0f, MIN_ID); in Rgb()
2473 double gamma) { in Rgb() argument
2474 this(name, primaries, whitePoint, gamma, 0.0f, 1.0f, MIN_ID); in Rgb()
2518 double gamma, in Rgb() argument
2523 gamma == 1.0 ? DoubleUnaryOperator.identity() : in Rgb()
2524 x -> Math.pow(x < 0.0 ? 0.0 : x, 1 / gamma), in Rgb()
2525 gamma == 1.0 ? DoubleUnaryOperator.identity() : in Rgb()
2526 x -> Math.pow(x < 0.0 ? 0.0 : x, gamma), in Rgb()
2528 mTransferParameters = gamma == 1.0 ? in Rgb()
[all …]
/frameworks/native/libs/ui/
DColorSpace.cpp71 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/av/media/libstagefright/codecs/amrwb/src/
Dweight_amrwb_lpc.cpp119 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()
Dpvamrwbdecoder_acelp.h117 int16 gamma, /* (i) Q15 : Spectral expansion factor. */
/frameworks/base/libs/hwui/
DGammaFontRenderer.cpp29 const float gamma = 1.0f / Properties::textGamma; in GammaFontRenderer() local
31 mGammaTable[i] = uint8_t((float)::floor(pow(i / 255.0f, gamma) * 255.0f + 0.5f)); in GammaFontRenderer()
/frameworks/base/core/res/res/raw/
Dcolor_fade_frag.frag7 uniform float gamma;
40 vec3 rgb = pow(hsl2rgb(vec3(hsl.x, hsl.y * saturation, hsl.z * opacity)), vec3(gamma));
/frameworks/base/core/jni/android/graphics/
DMaskFilter.cpp58 static jlong createGammaTable(JNIEnv* env, jobject, jfloat gamma) { in createGammaTable() argument
59 SkMaskFilter* filter = SkTableMaskFilter::CreateGamma(gamma); in createGammaTable()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java488 float gamma = 1.0f; in updateAutoBrightness() local
494 gamma *= adjGamma; in updateAutoBrightness()
500 if (gamma != 1.0f) { in updateAutoBrightness()
502 value = MathUtils.pow(value, gamma); in updateAutoBrightness()
504 Slog.d(TAG, "updateAutoBrightness: gamma=" + gamma in updateAutoBrightness()
519 mLastScreenAutoBrightnessGamma = gamma; in updateAutoBrightness()
DColorFade.java399 float gamma = (float) ((0.5d * sign * Math.pow(cos, 2) + 0.5d) * 0.9d + 0.1d); in draw()
400 drawFaded(opacity, 1.f / gamma, saturation, scale); in draw()
412 private void drawFaded(float opacity, float gamma, float saturation, float scale) {
414 Slog.d(TAG, "drawFaded: opacity=" + opacity + ", gamma=" + gamma +
424 GLES20.glUniform1f(mGammaLoc, gamma);
/frameworks/native/include/ui/
DColorSpace.h92 float gamma,
143 float gamma,
/frameworks/rs/
DrsFont.cpp341 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/
Dacelp.h95 Word16 gamma, /* (i) Q15 : Spectral expansion factor. */
/frameworks/wilhelm/doc/
DDoxyfile828 # 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/
Drs_math.spec1286 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/
DDoxyfile997 # 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/
DDoxyfile.orig1102 # 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.
DDoxyfile1111 # 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.
/frameworks/wilhelm/include/OMXAL/
DOpenMAXAL.h973 XApermille gamma
/frameworks/rs/script_api/include/
Drs_math.rsh2309 * lgamma: Natural logarithm of the gamma function
2311 * Returns the natural logarithm of the absolute value of the gamma function,
2317 …* sign_of_gamma: If sign_of_gamma is not null, *sign_of_gamma will be set to -1.f if the gamma o…
6388 * Returns the gamma function of a value.