Home
last modified time | relevance | path

Searched refs:mGamma (Results 1 – 2 of 2) sorted by relevance

/development/samples/RenderScript/Levels/src/com/android/rs/levels/
DLevelsDalvikActivity.java44 private float mGamma = 1.0f; field in LevelsDalvikActivity
97 mGamma = (float)progress/100.0f; in onProgressChanged()
98 mGamma = Math.max(mGamma, 0.1f); in onProgressChanged()
99 mGamma = 1.0f / mGamma; in onProgressChanged()
206 if (mGamma != 1.0f) { in filter()
207 r = (float)java.lang.Math.pow(r, mGamma); in filter()
208 g = (float)java.lang.Math.pow(g, mGamma); in filter()
209 b = (float)java.lang.Math.pow(b, mGamma); in filter()
DLevelsRSActivity.java50 private float mGamma = 1.0f; field in LevelsRSActivity
112 mGamma = (float)progress/100.0f; in onProgressChanged()
113 mGamma = Math.max(mGamma, 0.1f); in onProgressChanged()
114 mGamma = 1.0f / mGamma; in onProgressChanged()
115 mScript.set_gamma(mGamma); in onProgressChanged()
180 mScript.set_gamma(mGamma); in onCreate()