/packages/apps/Contacts/src/com/android/contacts/util/ |
MoreMath.java | 27 public static int clamp(int input, int lowerBound, int upperBound) { method in class:MoreMath 37 public static float clamp(float input, float lowerBound, float upperBound) { method in class:MoreMath 47 public static double clamp(double input, double lowerBound, double upperBound) { method in class:MoreMath
|
/packages/apps/Gallery2/jni/filters/ |
exposure.c | 31 rgb[RED] = clamp((255*(rgb[RED]))/m); 32 rgb[GREEN] = clamp((255*(rgb[GREEN]))/m); 33 rgb[BLUE] = clamp((255*(rgb[BLUE]))/m);
|
contrast.c | 20 unsigned char clamp(int c) function 50 rgb[RED] = clamp((int)(m*rgb[RED]+c)); 51 rgb[GREEN] = clamp((int)(m*rgb[GREEN]+c)); 52 rgb[BLUE] = clamp((int)(m*rgb[BLUE]+c));
|
hue.c | 38 rgb[RED] = clamp((int)rf); 39 rgb[GREEN] = clamp((int)gf); 40 rgb[BLUE] = clamp((int)bf);
|
fx.c | 80 rgb[RED] = clamp(interp(lutrgb,p ,off,dr,dg,db)); 81 rgb[GREEN] = clamp(interp(lutrgb,p+1,off,dr,dg,db)); 82 rgb[BLUE] = clamp(interp(lutrgb,p+2,off,dr,dg,db));
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
levels.rsh | 28 pixel = clamp(pixel, 0.f, 255.f); 31 pixel = clamp(pixel, 0.f, 255.f); 40 pixel = clamp(pixel, 0.f, 255.f); 43 pixel = clamp(pixel, 0.f, 255.f);
|
colormatrix.fs | 32 f = clamp(f, 0.f, 255.f);
|
contrast.rs | 36 out->rgb = convert_uchar3(clamp(v, 0.f, 255.f));
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
levels.rsh | 28 pixel = clamp(pixel, 0.f, 255.f); 31 pixel = clamp(pixel, 0.f, 255.f); 40 pixel = clamp(pixel, 0.f, 255.f); 43 pixel = clamp(pixel, 0.f, 255.f);
|
colormatrix.fs | 32 f = clamp(f, 0.f, 255.f);
|
contrast.rs | 35 out->rgb = convert_uchar3(clamp(v, 0.f, 255.f));
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
levels.rsh | 28 pixel = clamp(pixel, 0.f, 255.f); 31 pixel = clamp(pixel, 0.f, 255.f); 40 pixel = clamp(pixel, 0.f, 255.f); 43 pixel = clamp(pixel, 0.f, 255.f);
|
colormatrix.fs | 32 f = clamp(f, 0.f, 255.f);
|
contrast.rs | 35 out->rgb = convert_uchar3(clamp(v, 0.f, 255.f));
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/ |
Color.java | 60 this.rgba[0] = ShaderUtils.clamp(r, 0, 1);
61 this.rgba[1] = ShaderUtils.clamp(g, 0, 1);
62 this.rgba[2] = ShaderUtils.clamp(b, 0, 1);
63 this.rgba[3] = ShaderUtils.clamp(a, 0, 1);
129 float r = ShaderUtils.clamp(this.rgba[0] * 0.393f + this.rgba[1] * 0.769f + this.rgba[2] * 0.189f, 0, 1);
130 float g = ShaderUtils.clamp(this.rgba[0] * 0.349f + this.rgba[1] * 0.686f + this.rgba[2] * 0.168f, 0, 1);
131 float b = ShaderUtils.clamp(this.rgba[0] * 0.272f + this.rgba[1] * 0.534f + this.rgba[2] * 0.131f, 0, 1);
|
ShaderUtils.java | 65 return new Color((int) ShaderUtils.clamp(ShaderUtils.mix(a.getRed(), b.getRed(), f), 0, 255), (int) ShaderUtils.clamp(
66 ShaderUtils.mix(a.getGreen(), b.getGreen(), f), 0, 255), (int) ShaderUtils.clamp(
83 return ShaderUtils.clamp((x - a) / (b - a), 0, 1);
90 public static final float clamp(final float x, final float a, final float b) {
method in class:ShaderUtils 158 x = ShaderUtils.clamp(x, 0, 1) * nspans;
194 float cutoff = ShaderUtils.clamp(0.5f / swidth, 0, maxFreq);
199 float fade = ShaderUtils.clamp(2 * (cutoff - f) / cutoff, 0, 1);
|
/external/replicaisland/src/com/replica/replicaisland/ |
Utils.java | 39 public final static int clamp(int value, int min, int max) { method in class:Utils 52 result = clamp(value, max, min);
|
/development/samples/RenderScript/Levels/src/com/android/rs/levels/ |
levels.rs | 31 pixel = clamp(pixel, 0.f, 255.f); 36 pixel = clamp(pixel, 0.f, 255.f);
|
/frameworks/native/services/sensorservice/ |
quat.h | 65 } clamp; local 71 q.x = sqrtf( clamp( Hx - My - Az + 1) * 0.25f ); 72 q.y = sqrtf( clamp(-Hx + My - Az + 1) * 0.25f ); 73 q.z = sqrtf( clamp(-Hx - My + Az + 1) * 0.25f ); 74 q.w = sqrtf( clamp( Hx + My + Az + 1) * 0.25f );
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/common/ |
UtilsTest.java | 175 assertEquals(1000, Utils.clamp(300, 1000, 2000)); 176 assertEquals(1300, Utils.clamp(1300, 1000, 2000)); 177 assertEquals(2000, Utils.clamp(2300, 1000, 2000)); 179 assertEquals(0.125f, Utils.clamp(0.1f, 0.125f, 0.5f)); 180 assertEquals(0.25f, Utils.clamp(0.25f, 0.125f, 0.5f)); 181 assertEquals(0.5f, Utils.clamp(0.9f, 0.125f, 0.5f));
|
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
AlphaAnimation.java | 45 mCurrentAlpha = Utils.clamp(mStartAlpha
|
Animation.java | 84 float x = Utils.clamp((float) elapse / mDuration, 0f, 1f);
|
/external/jmonkeyengine/engine/src/test/jme3test/gui/ |
TestSoftwareMouse.java | 66 x = FastMath.clamp(x, 0, settings.getWidth()); 67 y = FastMath.clamp(y, 0, settings.getHeight());
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
FadeTexture.java | 75 return Utils.clamp(1.0f - r, 0.0f, 1.0f);
|
/external/smack/src/org/xbill/DNS/ |
TTL.java | 30 * @param clamp Whether to clamp values in the range [MAX_VALUE + 1, 2^32 -1] 37 parse(String s, boolean clamp) { 69 else if (ttl > MAX_VALUE && clamp)
|