/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
imgprocutil.h | 27 inline int clamp(int min, int val, int max) { function
|
colorspace.cpp | 39 // Clamp to range 0-255 40 static inline uint32 clamp(int32 x) { function 48 color.channel[kRed] = clamp(y + static_cast<int>(1.402 * v)); 49 color.channel[kGreen] = clamp(y - static_cast<int>(0.344 * u + 0.714 * v)); 50 color.channel[kBlue] = clamp(y + static_cast<int>(1.772 * u));
|
/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/libvpx/libvpx/vp9/common/ |
vp9_common.h | 50 static INLINE int clamp(int value, int low, int high) { function
|
/external/chromium_org/third_party/WebKit/Source/core/platform/chromium/ |
PlatformThemeChromiumDefault.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/eigen/Eigen/src/Eigen2Support/Geometry/ |
AlignedBox.h | 91 inline AlignedBox& clamp(const AlignedBox& b) function in class:Eigen::AlignedBox
|
/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/chromium_org/third_party/angle_dx11/src/libGLESv2/ |
mathutil.h | 56 inline T clamp(T x, MIN min, MAX max) function in namespace:gl 64 return clamp(x, 0.0f, 1.0f);
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/ |
draw_pipe_offset.c | 46 float clamp; member in struct:offset_stage 94 if (offset->clamp) 95 zoffset = (offset->clamp < 0.0f) ? MAX2(zoffset, offset->clamp) : 96 MIN2(zoffset, offset->clamp); 102 v0[2] = CLAMP(v0[2] + zoffset, 0.0f, 1.0f); 103 v1[2] = CLAMP(v1[2] + zoffset, 0.0f, 1.0f); 104 v2[2] = CLAMP(v2[2] + zoffset, 0.0f, 1.0f); 133 offset->clamp = stage->draw->rasterizer->offset_clamp;
|
/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);
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
draw_pipe_offset.c | 46 float clamp; member in struct:offset_stage 94 if (offset->clamp) 95 zoffset = (offset->clamp < 0.0f) ? MAX2(zoffset, offset->clamp) : 96 MIN2(zoffset, offset->clamp); 102 v0[2] = CLAMP(v0[2] + zoffset, 0.0f, 1.0f); 103 v1[2] = CLAMP(v1[2] + zoffset, 0.0f, 1.0f); 104 v2[2] = CLAMP(v2[2] + zoffset, 0.0f, 1.0f); 133 offset->clamp = stage->draw->rasterizer->offset_clamp;
|
/frameworks/rs/cpu_ref/ |
rsCpuIntrinsicInlines.h | 87 static inline int4 clamp(int4 amount, int low, int high) { function 96 static inline float4 clamp(float4 amount, float low, float high) { function 105 static inline int2 clamp(int2 amount, int low, int high) { function 112 static inline float2 clamp(float2 amount, float low, float high) { function 119 static inline int clamp(int amount, int low, int high) { function 123 static inline float clamp(float amount, float low, float high) { function
|
/external/chromium_org/chrome/browser/resources/file_manager/js/image_editor/ |
image_util.js | 64 ImageUtil.clamp = function(min, value, max) { 222 * Clamp the rectangle to the bounds by moving it. 227 Rect.prototype.clamp = function(bounds) {
|
/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/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/ |
lp_bld_pack.c | 505 boolean clamp; local 513 clamp = TRUE; 516 * saturate them, so no need to clamp for those cases. */ 521 clamp = FALSE; 523 if(clamp) {
|
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
s_stencil.c | 83 /** Clamp the stencil value to [0, 255] */ 85 clamp(GLint val) function 150 STENCIL_OP(clamp(s + 1)); 154 STENCIL_OP(clamp(s - 1));
|
/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
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
lp_bld_pack.c | 505 boolean clamp; local 513 clamp = TRUE; 516 * saturate them, so no need to clamp for those cases. */ 521 clamp = FALSE; 523 if(clamp) {
|
/external/mesa3d/src/mesa/swrast/ |
s_stencil.c | 83 /** Clamp the stencil value to [0, 255] */ 85 clamp(GLint val) function 150 STENCIL_OP(clamp(s + 1)); 154 STENCIL_OP(clamp(s - 1));
|
/frameworks/base/core/java/com/android/internal/notification/ |
DemoContactNotificationScorer.java | 138 private final static int clamp(int x, int low, int high) { method in class:DemoContactNotificationScorer 147 theScore = clamp(theScore, -2 * pm, 2 * pm);
|