/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/ |
D | Color.java | 60 this.rgba[0] = ShaderUtils.clamp(r, 0, 1); in Color() 61 this.rgba[1] = ShaderUtils.clamp(g, 0, 1); in Color() 62 this.rgba[2] = ShaderUtils.clamp(b, 0, 1); in Color() 63 this.rgba[3] = ShaderUtils.clamp(a, 0, 1); in Color() 129 …float r = ShaderUtils.clamp(this.rgba[0] * 0.393f + this.rgba[1] * 0.769f + this.rgba[2] * 0.189f,… in toSepia() 130 …float g = ShaderUtils.clamp(this.rgba[0] * 0.349f + this.rgba[1] * 0.686f + this.rgba[2] * 0.168f,… in toSepia() 131 …float b = ShaderUtils.clamp(this.rgba[0] * 0.272f + this.rgba[1] * 0.534f + this.rgba[2] * 0.131f,… in toSepia()
|
D | ShaderUtils.java | 65 …return new Color((int) ShaderUtils.clamp(ShaderUtils.mix(a.getRed(), b.getRed(), f), 0, 255), (int… in mix() 66 ShaderUtils.mix(a.getGreen(), b.getGreen(), f), 0, 255), (int) ShaderUtils.clamp( in mix() 83 return ShaderUtils.clamp((x - a) / (b - a), 0, 1); in boxstep() 90 public static final float clamp(final float x, final float a, final float b) { in clamp() method in ShaderUtils 158 x = ShaderUtils.clamp(x, 0, 1) * nspans; in spline() 194 float cutoff = ShaderUtils.clamp(0.5f / swidth, 0, maxFreq); in sinValue() 199 float fade = ShaderUtils.clamp(2 * (cutoff - f) / cutoff, 0, 1); in sinValue()
|
/external/jmonkeyengine/engine/src/core-data/Common/ShaderLib/ |
D | Shadow.glsllib | 66 s_00 = clamp(s_00, 0.0, 1.0); 70 s_10 = clamp(s_10, 0.0, 1.0); 74 s_01 = clamp(s_01, 0.0, 1.0); 78 s_11 = clamp(s_11, 0.0, 1.0); 80 float xb0 = mix(s_00, s_10, clamp(bl.x, 0.0, 1.0)); 81 float xb1 = mix(s_01, s_11, clamp(bl.x, 0.0, 1.0)); 82 float yb = mix(xb0, xb1, clamp(bl.y, 0.0, 1.0)); 92 shadow += clamp(Shadow_DoShadowCompareOffset(tex,projCoord,vec2(x,y)) + 102 return clamp(Shadow_DoDither_2x2(tex, projCoord) + Shadow_BorderCheck(projCoord.xy), 0.0, 1.0);
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
D | TexturePixel.java | 277 public void clamp(float min, float max) { in clamp() method in TexturePixel 278 this.red = FastMath.clamp(this.red, min, max); in clamp() 279 this.green = FastMath.clamp(this.green, min, max); in clamp() 280 this.blue = FastMath.clamp(this.blue, min, max); in clamp() 281 this.alpha = FastMath.clamp(this.alpha, min, max); in clamp() 282 this.intensity = FastMath.clamp(this.intensity, min, max); in clamp()
|
D | TextureGeneratorClouds.java | 94 texres.intensity = FastMath.clamp(texres.intensity, 0.0f, 1.0f); in generate() 111 texres.green = FastMath.clamp(texres.green, 0.0f, 1.0f); in generate() 112 texres.blue = FastMath.clamp(texres.blue, 0.0f, 1.0f); in generate()
|
D | TextureGenerator.java | 183 f = FastMath.clamp(f, 0.0f, 1.0f); in computeColorband() 190 result[i][0] = FastMath.clamp(result[i][0], 0.0f, 1.0f); in computeColorband() 191 result[i][1] = FastMath.clamp(result[i][1], 0.0f, 1.0f); in computeColorband() 192 result[i][2] = FastMath.clamp(result[i][2], 0.0f, 1.0f); in computeColorband() 193 result[i][3] = FastMath.clamp(result[i][3], 0.0f, 1.0f); in computeColorband()
|
/external/webkit/Source/WebCore/platform/chromium/ |
D | PlatformThemeChromiumGtk.cpp | 48 static SkScalar clamp(SkScalar value, SkScalar min, SkScalar max) in clamp() function 57 color[1] = clamp(hsv[1] + saturateAmount, 0.0, 1.0); in saturateAndBrighten() 58 color[2] = clamp(hsv[2] + brightenAmount, 0.0, 1.0); in saturateAndBrighten() 91 SkScalar minDiff = clamp((hsv1[1] + hsv2[1]) * 1.2, 0.28, 0.5); in outlineColor() 92 SkScalar diff = clamp(fabs(hsv1[2] - hsv2[2]) / 2, minDiff, 0.5); in outlineColor()
|
/external/jmonkeyengine/engine/src/core-effects/Common/MatDefs/Post/ |
D | CartoonEdge.frag | 44 normalDelta = clamp((normalDelta - m_NormalThreshold) * m_NormalSensitivity, 0.0, 1.0); 45 depthDelta = clamp((depthDelta - m_DepthThreshold) * m_DepthSensitivity, 0.0, 1.0); 48 float edgeAmount = clamp(normalDelta + depthDelta, 0.0, 1.0) * m_EdgeIntensity;
|
D | CartoonEdge15.frag | 46 normalDelta = clamp((normalDelta - m_NormalThreshold) * m_NormalSensitivity, 0.0, 1.0); 47 depthDelta = clamp((depthDelta - m_DepthThreshold) * m_DepthSensitivity, 0.0, 1.0); 50 float edgeAmount = clamp(normalDelta + depthDelta, 0.0, 1.0) * m_EdgeIntensity;
|
/external/libvpx/vp8/common/arm/neon/ |
D | mbloopfilter_neon.asm | 425 vqsub.s8 q1, q5, q8 ; vp8_filter = clamp(ps1-qs1) 441 ; vp8_filter = clamp(vp8_filter + 3 * ( qs0 - ps0)) 453 vqadd.s8 q2, q13, q11 ; Filter1 = clamp(Filter2+4) 454 vqadd.s8 q13, q13, q12 ; Filter2 = clamp(Filter2+3) 464 vqsub.s8 q7, q7, q2 ; qs0 = clamp(qs0 - Filter1) 468 vqadd.s8 q6, q6, q13 ; ps0 = clamp(ps0 + Filter2) 485 vqshrn.s16 d20, q10, #7 ; u = clamp((63 + Filter2 * 9)>>7) 487 vqshrn.s16 d24, q12, #7 ; u = clamp((63 + Filter2 * 18)>>7) 489 vqshrn.s16 d28, q14, #7 ; u = clamp((63 + Filter2 * 27)>>7) 492 vqsub.s8 q11, q9, q10 ; s = clamp(qs2 - u) [all …]
|
D | loopfilter_neon.asm | 358 vqsub.s8 q1, q5, q8 ; vp8_filter = clamp(ps1-qs1) 372 ; vp8_filter = clamp(vp8_filter + 3 * ( qs0 - ps0)) 377 vqadd.s8 q2, q1, q10 ; Filter2 = clamp(vp8_filter+3) 378 vqadd.s8 q1, q1, q9 ; Filter1 = clamp(vp8_filter+4) 382 vqadd.s8 q11, q6, q2 ; u = clamp(ps0 + Filter2) 383 vqsub.s8 q10, q7, q1 ; u = clamp(qs0 - Filter1) 389 vqadd.s8 q13, q5, q1 ; u = clamp(ps1 + vp8_filter) 390 vqsub.s8 q12, q8, q1 ; u = clamp(qs1 - vp8_filter)
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | Utils.java | 39 public final static int clamp(int value, int min, int max) { in clamp() method in Utils 52 result = clamp(value, max, min); in clamp()
|
/external/iptables/extensions/ |
D | libxt_TCPMSS.man | 25 \-j TCPMSS \-\-clamp\-mss\-to\-pmtu 32 \fB\-\-clamp\-mss\-to\-pmtu\fP 33 Automatically clamp MSS value to (path_MTU \- 40 for IPv4; \-60 for IPv6).
|
/external/jmonkeyengine/engine/src/test/jme3test/gui/ |
D | TestSoftwareMouse.java | 66 x = FastMath.clamp(x, 0, settings.getWidth()); 67 y = FastMath.clamp(y, 0, settings.getHeight());
|
/external/icu4c/i18n/ |
D | decContext.c | 80 context->clamp=0; /* no clamping */ in uprv_decContextDefault() 94 context->clamp=1; /* clamp exponents */ in uprv_decContextDefault() 105 context->clamp=1; /* clamp exponents */ in uprv_decContextDefault() 116 context->clamp=1; /* clamp exponents */ in uprv_decContextDefault()
|
/external/jmonkeyengine/engine/src/core-data/Common/MatDefs/Misc/ |
D | SoftParticle.frag | 14 float val = clamp( 2.0*( (d > 0.5) ? 1.0-d : d ), 0.0, 1.0); 20 return clamp((d)*m_Softness,0.0,1.0);
|
/external/mesa3d/src/glsl/builtins/profiles/ |
D | 100.vert | 143 float clamp(float x, float minVal, float maxVal); 144 vec2 clamp(vec2 x, vec2 minVal, vec2 maxVal); 145 vec3 clamp(vec3 x, vec3 minVal, vec3 maxVal); 146 vec4 clamp(vec4 x, vec4 minVal, vec4 maxVal); 148 vec2 clamp(vec2 x, float minVal, float maxVal); 149 vec3 clamp(vec3 x, float minVal, float maxVal); 150 vec4 clamp(vec4 x, float minVal, float maxVal);
|
D | 100.frag | 143 float clamp(float x, float minVal, float maxVal); 144 vec2 clamp(vec2 x, vec2 minVal, vec2 maxVal); 145 vec3 clamp(vec3 x, vec3 minVal, vec3 maxVal); 146 vec4 clamp(vec4 x, vec4 minVal, vec4 maxVal); 148 vec2 clamp(vec2 x, float minVal, float maxVal); 149 vec3 clamp(vec3 x, float minVal, float maxVal); 150 vec4 clamp(vec4 x, float minVal, float maxVal);
|
D | 110.vert | 143 float clamp(float x, float minVal, float maxVal); 144 vec2 clamp(vec2 x, vec2 minVal, vec2 maxVal); 145 vec3 clamp(vec3 x, vec3 minVal, vec3 maxVal); 146 vec4 clamp(vec4 x, vec4 minVal, vec4 maxVal); 148 vec2 clamp(vec2 x, float minVal, float maxVal); 149 vec3 clamp(vec3 x, float minVal, float maxVal); 150 vec4 clamp(vec4 x, float minVal, float maxVal);
|
D | 110.frag | 143 float clamp(float x, float minVal, float maxVal); 144 vec2 clamp(vec2 x, vec2 minVal, vec2 maxVal); 145 vec3 clamp(vec3 x, vec3 minVal, vec3 maxVal); 146 vec4 clamp(vec4 x, vec4 minVal, vec4 maxVal); 148 vec2 clamp(vec2 x, float minVal, float maxVal); 149 vec3 clamp(vec3 x, float minVal, float maxVal); 150 vec4 clamp(vec4 x, float minVal, float maxVal);
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/blending/ |
D | AbstractTextureBlender.java | 81 result[0] = FastMath.clamp(result[0], 0.0f, 1.0f); in blendPixel() 82 result[1] = FastMath.clamp(result[1], 0.0f, 1.0f); in blendPixel() 83 result[2] = FastMath.clamp(result[2], 0.0f, 1.0f); in blendPixel()
|
D | TextureBlenderLuminance.java | 179 result[0] = FastMath.clamp(result[0], 0.0f, 1.0f); in blendPixel() 180 result[1] = FastMath.clamp(result[1], 0.0f, 1.0f); in blendPixel() 181 result[2] = FastMath.clamp(result[2], 0.0f, 1.0f); in blendPixel()
|
/external/jmonkeyengine/engine/src/bullet-native/ |
D | com_jme3_bullet_joints_Point2PointJoint.cpp | 65 (JNIEnv * env, jobject object, jlong jointId, jfloat clamp) { in Java_com_jme3_bullet_joints_Point2PointJoint_setImpulseClamp() argument 72 joint->m_setting.m_impulseClamp = clamp; in Java_com_jme3_bullet_joints_Point2PointJoint_setImpulseClamp()
|
/external/jmonkeyengine/engine/src/terrain/Common/MatDefs/Terrain/ |
D | TerrainLighting.vert | 43 lightDir.w = clamp(1.0 - position.w * dist * posLight, 0.0, 1.0); 61 vec4 wvLightPos = (g_ViewMatrix * vec4(g_LightPosition.xyz,clamp(g_LightColor.w,0.0,1.0)));
|
/external/jmonkeyengine/engine/src/core-data/Common/MatDefs/Light/ |
D | Lighting.vert | 89 lightDir.w = clamp(1.0 - position.w * dist * posLight, 0.0, 1.0); 124 spotFallOff = clamp((curAngleCos - outerAngleCos) / innerMinusOuter, 0.0, 1.0); 150 vec4 wvLightPos = (g_ViewMatrix * vec4(g_LightPosition.xyz,clamp(g_LightColor.w,0.0,1.0)));
|