/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/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/ |
D | draw_pipe_offset.c | 46 float clamp; member 94 if (offset->clamp) in do_offset_tri() 95 zoffset = (offset->clamp < 0.0f) ? MAX2(zoffset, offset->clamp) : in do_offset_tri() 96 MIN2(zoffset, offset->clamp); in do_offset_tri() 133 offset->clamp = stage->draw->rasterizer->offset_clamp; in offset_first_tri()
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pipe_offset.c | 46 float clamp; member 94 if (offset->clamp) in do_offset_tri() 95 zoffset = (offset->clamp < 0.0f) ? MAX2(zoffset, offset->clamp) : in do_offset_tri() 96 MIN2(zoffset, offset->clamp); in do_offset_tri() 133 offset->clamp = stage->draw->rasterizer->offset_clamp; in offset_first_tri()
|
/external/llvm/test/CodeGen/R600/ |
D | kcache-fold.ll | 39 %32 = call float @llvm.AMDIL.clamp.(float %7, float 0.000000e+00, float 1.000000e+00) 40 %33 = call float @llvm.AMDIL.clamp.(float %15, float 0.000000e+00, float 1.000000e+00) 41 %34 = call float @llvm.AMDIL.clamp.(float %23, float 0.000000e+00, float 1.000000e+00) 42 %35 = call float @llvm.AMDIL.clamp.(float %31, float 0.000000e+00, float 1.000000e+00) 87 %32 = call float @llvm.AMDIL.clamp.(float %7, float 0.000000e+00, float 1.000000e+00) 88 %33 = call float @llvm.AMDIL.clamp.(float %15, float 0.000000e+00, float 1.000000e+00) 89 %34 = call float @llvm.AMDIL.clamp.(float %23, float 0.000000e+00, float 1.000000e+00) 90 %35 = call float @llvm.AMDIL.clamp.(float %31, float 0.000000e+00, float 1.000000e+00) 99 declare float @llvm.AMDIL.clamp.(float, float, float) readnone
|
D | schedule-fs-loop.ll | 33 %17 = call float @llvm.AMDIL.clamp.(float %temp4.0, float 0.000000e+00, float 1.000000e+00) 34 %18 = call float @llvm.AMDIL.clamp.(float %temp5.0, float 0.000000e+00, float 1.000000e+00) 35 %19 = call float @llvm.AMDIL.clamp.(float %temp6.0, float 0.000000e+00, float 1.000000e+00) 36 %20 = call float @llvm.AMDIL.clamp.(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00) 51 declare float @llvm.AMDIL.clamp.(float, float, float) #0
|
D | schedule-fs-loop-nested.ll | 46 %30 = call float @llvm.AMDIL.clamp.(float %temp4.0, float 0.000000e+00, float 1.000000e+00) 47 %31 = call float @llvm.AMDIL.clamp.(float %temp5.0, float 0.000000e+00, float 1.000000e+00) 48 %32 = call float @llvm.AMDIL.clamp.(float %temp6.0, float 0.000000e+00, float 1.000000e+00) 49 %33 = call float @llvm.AMDIL.clamp.(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00) 84 declare float @llvm.AMDIL.clamp.(float, float, float) #0
|
D | schedule-fs-loop-nested-if.ll | 47 %27 = call float @llvm.AMDIL.clamp.(float %temp.0, float 0.000000e+00, float 1.000000e+00) 48 %28 = call float @llvm.AMDIL.clamp.(float %temp1.0, float 0.000000e+00, float 1.000000e+00) 49 %29 = call float @llvm.AMDIL.clamp.(float %temp2.0, float 0.000000e+00, float 1.000000e+00) 50 %30 = call float @llvm.AMDIL.clamp.(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00) 79 declare float @llvm.AMDIL.clamp.(float, float, float) #0
|
/external/chromium_org/components/policy/core/browser/ |
D | configuration_policy_handler.cc | 94 bool clamp) in IntRangePolicyHandlerBase() argument 98 clamp_(clamp) { in IntRangePolicyHandlerBase() 226 bool clamp) in IntRangePolicyHandler() argument 227 : IntRangePolicyHandlerBase(policy_name, min, max, clamp), in IntRangePolicyHandler() 254 bool clamp) in IntPercentageToDoublePolicyHandler() argument 255 : IntRangePolicyHandlerBase(policy_name, min, max, clamp), in IntPercentageToDoublePolicyHandler()
|
D | configuration_policy_handler.h | 100 bool clamp); 195 bool clamp); 218 bool clamp);
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_quant_common.c | 125 return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant() 129 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant() 138 clamp(base_qindex + data, 0, MAXQ); // Delta value in vp9_get_qindex()
|
D | vp9_mv.h | 35 mv->col = clamp(mv->col, min_col, max_col); in clamp_mv() 36 mv->row = clamp(mv->row, min_row, max_row); in clamp_mv()
|
/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()
|
/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/libvpx/vp8/common/arm/neon/ |
D | mbloopfilter_neon.asm | 381 vqsub.s8 q1, q5, q8 ; vp8_filter = clamp(ps1-qs1) 396 ; vp8_filter = clamp(vp8_filter + 3 * ( qs0 - ps0)) 406 vqadd.s8 q2, q13, q11 ; Filter1 = clamp(Filter2+4) 407 vqadd.s8 q13, q13, q12 ; Filter2 = clamp(Filter2+3) 417 vqsub.s8 q7, q7, q2 ; qs0 = clamp(qs0 - Filter1) 419 vqadd.s8 q6, q6, q13 ; ps0 = clamp(ps0 + Filter2) 441 vqshrn.s16 d0, q0, #7 ; u = clamp((63 + Filter2 * 9)>>7) 443 vqshrn.s16 d24, q12, #7 ; u = clamp((63 + Filter2 * 18)>>7) 445 vqshrn.s16 d28, q14, #7 ; u = clamp((63 + Filter2 * 27)>>7) 450 vqsub.s8 q11, q9, q0 ; s = clamp(qs2 - u) [all …]
|
/external/llvm/lib/Target/R600/ |
D | SIInstrInfo.td | 172 i32imm:$abs, i32imm:$clamp, 174 opName#"_e64 $dst, $src0, $abs, $clamp, $omod, $neg", [] 198 i32imm:$abs, i32imm:$clamp, 200 opName#"_e64 $dst, $src0, $src1, $abs, $clamp, $omod, $neg", [] 226 i32imm:$abs, i32imm:$clamp, 228 opName#"_e64 $dst, $src0, $src1, $abs, $clamp, $omod, $neg", [] 250 InstFlag:$abs, InstFlag:$clamp, 252 opName#"_e64 $dst, $src0, $src1, $abs, $clamp, $omod, $neg", 272 InstFlag:$abs, InstFlag:$clamp, InstFlag:$omod, InstFlag:$neg), 273 opName#" $dst, $src0, $src1, $src2, $abs, $clamp, $omod, $neg", pattern [all …]
|
/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/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_tile_soa.py | 133 … value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False) 144 … value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False) 202 value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False) 275 … value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False) 286 … value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False)
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
D | lp_tile_soa.py | 133 … value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False) 144 … value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False) 202 value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False) 275 … value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False) 286 … value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False)
|
/external/libvpx/libvpx/vp9/common/arm/neon/ |
D | vp9_loopfilter_neon.asm | 237 vqsub.s8 d27, d5, d16 ; filter = clamp(ps1-qs1) 249 ; filter = clamp(filter + 3 * ( qs0 - ps0)) 254 vqadd.s8 d28, d27, d19 ; filter2 = clamp(filter+3) 255 vqadd.s8 d27, d27, d17 ; filter1 = clamp(filter+4) 259 vqadd.s8 d19, d6, d28 ; u = clamp(ps0 + filter2) 260 vqsub.s8 d26, d7, d27 ; u = clamp(qs0 - filter1) 269 vqadd.s8 d21, d5, d27 ; u = clamp(ps1 + filter) 270 vqsub.s8 d20, d16, d27 ; u = clamp(qs1 - filter) 539 vqsub.s8 d29, d25, d26 ; filter = clamp(ps1-qs1) 549 ; filter = clamp(filter + 3 * ( qs0 - ps0)) [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
D | RenderLayerScrollableArea.h | 122 …Offset(int x, ScrollOffsetClamping clamp = ScrollOffsetUnclamped) { scrollToOffset(IntSize(x, scro… 123 …Offset(int y, ScrollOffsetClamping clamp = ScrollOffsetUnclamped) { scrollToOffset(IntSize(scrollX…
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/ |
D | r300_state_inlines.h | 42 boolean clamp) in r300_translate_blend_function() argument 46 return clamp ? R300_COMB_FCN_ADD_CLAMP : R300_COMB_FCN_ADD_NOCLAMP; in r300_translate_blend_function() 48 return clamp ? R300_COMB_FCN_SUB_CLAMP : R300_COMB_FCN_SUB_NOCLAMP; in r300_translate_blend_function() 50 return clamp ? R300_COMB_FCN_RSUB_CLAMP : R300_COMB_FCN_RSUB_NOCLAMP; in r300_translate_blend_function()
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_state_inlines.h | 42 boolean clamp) in r300_translate_blend_function() argument 46 return clamp ? R300_COMB_FCN_ADD_CLAMP : R300_COMB_FCN_ADD_NOCLAMP; in r300_translate_blend_function() 48 return clamp ? R300_COMB_FCN_SUB_CLAMP : R300_COMB_FCN_SUB_NOCLAMP; in r300_translate_blend_function() 50 return clamp ? R300_COMB_FCN_RSUB_CLAMP : R300_COMB_FCN_RSUB_NOCLAMP; in r300_translate_blend_function()
|