/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/ |
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));
|
/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);
|
/external/replicaisland/tools/ |
ExtractPoints.js | 293 function clamp(input) { function
|
/external/eigen/Eigen/src/Eigen2Support/Geometry/ |
AlignedBox.h | 91 inline AlignedBox& clamp(const AlignedBox& b) function in class:Eigen::AlignedBox
|
/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);
|
/frameworks/compile/libbcc/lib/Renderscript/runtime/arch/ |
generic.c | 21 extern float4 __attribute__((overloadable)) clamp(float4 amount, float4 low, float4 high); 28 * CLAMP 30 extern float __attribute__((overloadable)) clamp(float amount, float low, float high) { function 34 extern float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high) { function 41 extern float3 __attribute__((overloadable)) clamp(float3 amount, float3 low, float3 high) { function 49 extern float4 __attribute__((overloadable)) clamp(float4 amount, float4 low, float4 high) { function 58 extern float2 __attribute__((overloadable)) clamp(float2 amount, float low, float high) { function 65 extern float3 __attribute__((overloadable)) clamp(float3 amount, float low, float high) { function 73 extern float4 __attribute__((overloadable)) clamp(float4 amount, float low, float high) { function 740 color = clamp(color, 0.f, 1.f) [all...] |
/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 );
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
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);
|
/frameworks/rs/cpu_ref/ |
rsCpuIntrinsicInlines.h | 106 static inline int4 clamp(int4 amount, int low, int high) { function 115 static inline float4 clamp(float4 amount, float low, float high) { function
|
/device/generic/goldfish/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/eigen/Eigen/src/Geometry/ |
AlignedBox.h | 207 inline AlignedBox& clamp(const AlignedBox& b) function in class:Eigen::AlignedBox
|
/external/jmonkeyengine/engine/src/android/jme3tools/android/ |
Fixed.java | 379 public static int clamp(int n, int min, int max) { method in class:Fixed
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
ColorRGBA.java | 44 * values. A call to clamp will assure that the values are within the
209 * <code>clamp</code> insures that all values are between 0 and 1. If any
214 public void clamp() {
method in class:ColorRGBA
|
FastMath.java | 911 * Take a float input and clamp it between min and max. 918 public static float clamp(float input, float min, float max) { method in class:FastMath [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
GeometryMath.java | 25 public static float clamp(float i, float low, float high) { method in class:GeometryMath
|
ImageStraighten.java | 94 setLocalStraighten(GeometryMath.clamp(value, MIN_STRAIGHTEN_ANGLE, MAX_STRAIGHTEN_ANGLE));
|
/frameworks/av/media/libstagefright/yuv/ |
YUVImage.cpp | 367 uint8_t clamp(uint8_t v, uint8_t minValue, uint8_t maxValue) { function in namespace:android 381 *r = clamp(*r, 0, 255); 382 *g = clamp(*g, 0, 255); 383 *b = clamp(*b, 0, 255);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
Utils.java | 99 public static int clamp(int x, int min, int max) { method in class:Utils 106 public static float clamp(float x, float min, float max) { method in class:Utils 113 public static long clamp(long x, long min, long max) { method in class:Utils
|
/external/icu4c/i18n/ |
decContext.h | 43 /* clamp -- must be either 0 or 1 */ 95 uint8_t clamp; /* flag: apply IEEE exponent clamp */ member in struct:__anon8656
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/ |
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/skia/tests/ |
MathTest.cpp | 449 int clamp = SkClampMax(value, max); local 451 REPORTER_ASSERT(reporter, clamp == clamp2);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
BeanBag.java | 86 static float clamp(float x, float a, float b) { method in class:BeanBag.Board 258 float a = randsign() * clamp(mag(vx, vy) * 0.33f, 0, 1080f);
|
ExpandHelper.java | 243 float newHeight = clamp(target); 251 private float clamp(float target) { method in class:ExpandHelper 440 final float newHeight = clamp(rawHeight);
|
/frameworks/native/opengl/libs/ETC1/ |
etc1.cpp | 122 static inline etc1_byte clamp(int x) { function 191 *q++ = clamp(r + delta); 192 *q++ = clamp(g + delta); 193 *q++ = clamp(b + delta); 311 int decodedG = clamp(g + modifier); 316 int decodedR = clamp(r + modifier); 321 int decodedB = clamp(b + modifier);
|