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

1 2 3 4 5 6

  /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
41 rgb[RED] = clamp((int)(m*rgb[RED]+c));
42 rgb[GREEN] = clamp((int)(m*rgb[GREEN]+c));
43 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/base/tests/RenderScriptTests/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 35 f = clamp(f, 0.f, 255.f);
  /frameworks/base/tests/RenderScriptTests/ImageProcessing2/src/com/android/rs/image/
levels.rsh 27 pixel = clamp(pixel, 0.f, 255.f);
30 pixel = clamp(pixel, 0.f, 255.f);
38 pixel = clamp(pixel, 0.f, 255.f);
41 pixel = clamp(pixel, 0.f, 255.f);
colormatrix.rs 35 f = clamp(f, 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());
  /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);
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
FadeTexture.java 74 return Utils.clamp(1.0f - r, 0.0f, 1.0f);
CropView.java 336 point.x = Utils.clamp(((point.x - getWidth() * 0.5f) / s
338 point.y = Utils.clamp(((point.y - getHeight() * 0.5f) / s
384 float scale = Utils.clamp(SELECTION_RATIO * Math.min(
396 centerX = Utils.clamp(centerX, limitX, mImageWidth - limitX);
404 centerY = Utils.clamp(centerY, limitY, mImageHeight - limitY);
461 dx = Utils.clamp(dx, -r.left, 1 - r.right);
462 dy = Utils.clamp(dy, -r.top , 1 - r.bottom);
476 r.right = Utils.clamp(point.x, left, 1f);
479 r.left = Utils.clamp(point.x, 0, right);
482 r.top = Utils.clamp(point.y, 0, bottom)
    [all...]
  /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);

Completed in 431 milliseconds

1 2 3 4 5 6