HomeSort by relevance Sort by last modified time
    Searched refs:clamp (Results 1 - 25 of 111) sorted by null

1 2 3 4 5

  /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
  /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);
  /frameworks/compile/libbcc/lib/ScriptCRT/
Android.mk 35 clamp.c
39 neon/clamp.ll
clamp.c 20 extern float __attribute__((overloadable)) clamp(float amount, float low, float high) { function
24 extern float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high) { function
31 extern float3 __attribute__((overloadable)) clamp(float3 amount, float3 low, float3 high) { function
39 extern float4 __attribute__((overloadable)) clamp(float4 amount, float4 low, float4 high) { function
48 extern float2 __attribute__((overloadable)) clamp(float2 amount, float low, float high) { function
55 extern float3 __attribute__((overloadable)) clamp(float3 amount, float low, float high) { function
63 extern float4 __attribute__((overloadable)) clamp(float4 amount, float low, float high) { function
  /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/base/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));
  /frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
UT_clamp.java 27 super(rstc, "Clamp (Full)", ctx);
33 ScriptC_clamp s = new ScriptC_clamp(pRS, mRes, R.raw.clamp);
  /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());
  /gdk/samples/PhotoEditor/jni/
whiteblack.cpp 27 using android::apps::photoeditor::utils::clamp;
41 xform[i] = clamp(floor(vgamma), 0, k256Multiply255);
98 red = clamp(red, 0, 255);
99 green = clamp(green, 0, 255);
100 blue = clamp(blue, 0, 255);
convolution.cpp 23 using android::apps::photoeditor::utils::clamp;
94 red = clamp(red, 0, 255);
95 green = clamp(green, 0, 255);
96 blue = clamp(blue, 0, 255);
utils.h 43 inline int clamp(int x, int min, int max) { function in namespace:android::apps::photoeditor::utils
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
FadeTexture.java 76 return Utils.clamp(1.0f - r, 0.0f, 1.0f);
CropView.java 335 point.x = Utils.clamp(((point.x - getWidth() * 0.5f) / s
337 point.y = Utils.clamp(((point.y - getHeight() * 0.5f) / s
383 float scale = Utils.clamp(SELECTION_RATIO * Math.min(
395 centerX = Utils.clamp(centerX, limitX, mImageWidth - limitX);
403 centerY = Utils.clamp(centerY, limitY, mImageHeight - limitY);
460 dx = Utils.clamp(dx, -r.left, 1 - r.right);
461 dy = Utils.clamp(dy, -r.top , 1 - r.bottom);
475 r.right = Utils.clamp(point.x, left, 1f);
478 r.left = Utils.clamp(point.x, 0, right);
481 r.top = Utils.clamp(point.y, 0, bottom)
    [all...]
Paper.java 135 mValue = Utils.clamp(mValue + deltaDistance, -1.0f, 1.0f);
145 float finish = Utils.clamp(mValue + velocity * VELOCITY_FACTOR,
154 float t = Utils.clamp((float)(now() - mStartTime) / mDuration, 0.0f, 1.0f);
  /development/tools/emulator/system/camera/
Converters.h 133 clamp(int x) function in namespace:android
192 #define YUV2RO(C, D, E) clamp((298 * (C) + 409 * (E) + 128) >> 8)
193 #define YUV2GO(C, D, E) clamp((298 * (C) - 100 * (D) - 208 * (E) + 128) >> 8)
194 #define YUV2BO(C, D, E) clamp((298 * (C) + 516 * (D) + 128) >> 8)
199 #define YUV2R(y, u, v) clamp((298 * ((y)-16) + 409 * ((v)-128) + 128) >> 8)
200 #define YUV2G(y, u, v) clamp((298 * ((y)-16) - 100 * ((u)-128) - 208 * ((v)-128) + 128) >> 8)
201 #define YUV2B(y, u, v) clamp((298 * ((y)-16) + 516 * ((u)-128) + 128) >> 8)
  /external/webkit/Source/WebCore/platform/chromium/
PlatformThemeChromiumGtk.cpp 48 static SkScalar clamp(SkScalar value, SkScalar min, SkScalar max) function in namespace:WebCore
57 color[1] = clamp(hsv[1] + saturateAmount, 0.0, 1.0);
58 color[2] = clamp(hsv[2] + brightenAmount, 0.0, 1.0);
91 SkScalar minDiff = clamp((hsv1[1] + hsv2[1]) * 1.2, 0.28, 0.5);
92 SkScalar diff = clamp(fabs(hsv1[2] - hsv2[2]) / 2, minDiff, 0.5);
  /external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
TextureGeneratorClouds.java 94 texres.intensity = FastMath.clamp(texres.intensity, 0.0f, 1.0f);
111 texres.green = FastMath.clamp(texres.green, 0.0f, 1.0f);
112 texres.blue = FastMath.clamp(texres.blue, 0.0f, 1.0f);
TexturePixel.java 277 public void clamp(float min, float max) { method in class:TexturePixel
278 this.red = FastMath.clamp(this.red, min, max);
279 this.green = FastMath.clamp(this.green, min, max);
280 this.blue = FastMath.clamp(this.blue, min, max);
281 this.alpha = FastMath.clamp(this.alpha, min, max);
282 this.intensity = FastMath.clamp(this.intensity, min, max);
  /external/icu4c/i18n/
decContext.c 80 context->clamp=0; /* no clamping */
94 context->clamp=1; /* clamp exponents */
105 context->clamp=1; /* clamp exponents */
116 context->clamp=1; /* clamp exponents */
  /external/jmonkeyengine/engine/src/core-effects/Common/MatDefs/Water/
simple_water.frag 79 projCoord = clamp(projCoord, 0.001, 0.999);
119 fresnelTerm=clamp(fresnelTerm,0.0,1.0);

Completed in 3993 milliseconds

1 2 3 4 5