/cts/tests/tests/graphics/src/android/graphics/cts/ |
Shader_TileModeTest.java | 26 assertEquals(TileMode.CLAMP, TileMode.valueOf("CLAMP")); 34 assertEquals(TileMode.CLAMP, tileMode[0]);
|
ComposeShaderTest.java | 43 Color.GREEN, Color.BLUE, Shader.TileMode.CLAMP); 45 Color.GREEN, Color.RED, Shader.TileMode.CLAMP); 79 BitmapShader blueShader = new BitmapShader(greenBitmap, TileMode.CLAMP, TileMode.CLAMP); 80 BitmapShader redShader = new BitmapShader(cyanBitmap, TileMode.CLAMP, TileMode.CLAMP);
|
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
UT_sampler.java | 41 b.setWrapS(Sampler.Value.CLAMP); 42 b.setWrapT(Sampler.Value.CLAMP); 89 _RS_ASSERT("minification.getWrapS() == Sampler.Value.CLAMP", 90 minification.getWrapS() == Sampler.Value.CLAMP); 91 _RS_ASSERT("minification.getWrapT() == Sampler.Value.CLAMP", 92 minification.getWrapT() == Sampler.Value.CLAMP); 100 _RS_ASSERT("magnification.getWrapS() == Sampler.Value.CLAMP", 101 magnification.getWrapS() == Sampler.Value.CLAMP); 102 _RS_ASSERT("magnification.getWrapT() == Sampler.Value.CLAMP", 103 magnification.getWrapT() == Sampler.Value.CLAMP); [all...] |
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
UT_sampler.java | 43 b.setWrapS(Value.CLAMP); 44 b.setWrapT(Value.CLAMP); 91 _RS_ASSERT("minification.getWrapS() == Sampler.Value.CLAMP", 92 minification.getWrapS() == Sampler.Value.CLAMP); 93 _RS_ASSERT("minification.getWrapT() == Sampler.Value.CLAMP", 94 minification.getWrapT() == Sampler.Value.CLAMP); 102 _RS_ASSERT("magnification.getWrapS() == Sampler.Value.CLAMP", 103 magnification.getWrapS() == Sampler.Value.CLAMP); 104 _RS_ASSERT("magnification.getWrapT() == Sampler.Value.CLAMP", 105 magnification.getWrapT() == Sampler.Value.CLAMP); [all...] |
/packages/apps/Gallery2/jni/filters/ |
saturated.c | 48 destination[RED] = CLAMP(Rc); 49 destination[GREEN] = CLAMP(Gc); 50 destination[BLUE] = CLAMP(Bc);
|
vibrance.c | 57 destination[RED] = CLAMP(Rc); 58 destination[GREEN] = CLAMP(Gc); 59 destination[BLUE] = CLAMP(Bc);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GradientStopsActivity.java | 48 colors, positions, Shader.TileMode.CLAMP); 58 colors, positions, Shader.TileMode.CLAMP); 68 colors, positions, Shader.TileMode.CLAMP); 77 colors, null, Shader.TileMode.CLAMP); 101 colors, null, Shader.TileMode.CLAMP); 109 colors, null, Shader.TileMode.CLAMP); 117 colors, null, Shader.TileMode.CLAMP);
|
BigGradientActivity.java | 45 0xff333333, Shader.TileMode.CLAMP));
|
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
multisample.c | 43 ctx->Multisample.SampleCoverageValue = (GLfloat) CLAMP(value, 0.0, 1.0);
|
pack.c | 494 #define SRC_CONVERT(x) CLAMP((int)x, -32768, 32767) 510 #define SRC_CONVERT(x) CLAMP((int)x, -128, 127) 560 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 7) << 5) 561 | (CLAMP(rgba[i][GCOMP], 0, 7) << 2) 562 | (CLAMP(rgba[i][BCOMP], 0, 3) ); 572 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 7) ) 573 | (CLAMP(rgba[i][GCOMP], 0, 7) << 3) 574 | (CLAMP(rgba[i][BCOMP], 0, 3) << 6); 584 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 31) << 11) 585 | (CLAMP(rgba[i][GCOMP], 0, 63) << 5 [all...] |
pixeltransfer.c | 92 GLfloat r = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); 93 GLfloat g = CLAMP(rgba[i][GCOMP], 0.0F, 1.0F); 94 GLfloat b = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); 95 GLfloat a = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F); 137 depthValues[i] = CLAMP(d, 0.0F, 1.0F); 152 d = CLAMP(d, 0.0, max); 182 rgba[i][RCOMP] = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); 183 rgba[i][GCOMP] = CLAMP(rgba[i][GCOMP], 0.0F, 1.0F); 184 rgba[i][BCOMP] = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); 185 rgba[i][ACOMP] = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F) [all...] |
depth.c | 50 depth = CLAMP( depth, 0.0, 1.0 ); 145 zmin = CLAMP(zmin, 0.0, 1.0); 146 zmax = CLAMP(zmax, 0.0, 1.0);
|
/external/mesa3d/src/mesa/main/ |
multisample.c | 43 ctx->Multisample.SampleCoverageValue = (GLfloat) CLAMP(value, 0.0, 1.0);
|
pack.c | 494 #define SRC_CONVERT(x) CLAMP((int)x, -32768, 32767) 510 #define SRC_CONVERT(x) CLAMP((int)x, -128, 127) 560 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 7) << 5) 561 | (CLAMP(rgba[i][GCOMP], 0, 7) << 2) 562 | (CLAMP(rgba[i][BCOMP], 0, 3) ); 572 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 7) ) 573 | (CLAMP(rgba[i][GCOMP], 0, 7) << 3) 574 | (CLAMP(rgba[i][BCOMP], 0, 3) << 6); 584 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 31) << 11) 585 | (CLAMP(rgba[i][GCOMP], 0, 63) << 5 [all...] |
pixeltransfer.c | 92 GLfloat r = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); 93 GLfloat g = CLAMP(rgba[i][GCOMP], 0.0F, 1.0F); 94 GLfloat b = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); 95 GLfloat a = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F); 137 depthValues[i] = CLAMP(d, 0.0F, 1.0F); 152 d = CLAMP(d, 0.0, max); 182 rgba[i][RCOMP] = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); 183 rgba[i][GCOMP] = CLAMP(rgba[i][GCOMP], 0.0F, 1.0F); 184 rgba[i][BCOMP] = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); 185 rgba[i][ACOMP] = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F) [all...] |
depth.c | 50 depth = CLAMP( depth, 0.0, 1.0 ); 145 zmin = CLAMP(zmin, 0.0, 1.0); 146 zmax = CLAMP(zmax, 0.0, 1.0);
|
/frameworks/base/graphics/java/android/renderscript/ |
Sampler.java | 47 CLAMP (4), 104 * clamp. 115 b.setWrapS(Value.CLAMP); 116 b.setWrapT(Value.CLAMP); 124 * clamp. 135 b.setWrapS(Value.CLAMP); 136 b.setWrapT(Value.CLAMP); 144 * wrap modes set to clamp. 155 b.setWrapS(Value.CLAMP); 156 b.setWrapT(Value.CLAMP); [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
Sampler.java | 49 CLAMP (4), 106 * clamp. 117 b.setWrapS(Value.CLAMP); 118 b.setWrapT(Value.CLAMP); 126 * clamp. 137 b.setWrapS(Value.CLAMP); 138 b.setWrapT(Value.CLAMP); 146 * wrap modes set to clamp. 157 b.setWrapS(Value.CLAMP); 158 b.setWrapT(Value.CLAMP); [all...] |
SamplerThunker.java | 56 case CLAMP: 57 return android.renderscript.Sampler.Value.CLAMP; 107 if (v == Value.WRAP || v == Value.CLAMP || v == Value.MIRRORED_REPEAT) { 115 if (v == Value.WRAP || v == Value.CLAMP || v == Value.MIRRORED_REPEAT) {
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/translate/ |
translate_generic.c | 265 value |= ((uint32_t)(CLAMP(src[2], 0, 1) * 0x3ff)) & 0x3ff; 266 value |= (((uint32_t)(CLAMP(src[1], 0, 1) * 0x3ff)) & 0x3ff) << 10; 267 value |= (((uint32_t)(CLAMP(src[0], 0, 1) * 0x3ff)) & 0x3ff) << 20; 268 value |= ((uint32_t)(CLAMP(src[3], 0, 1) * 0x3)) << 30; 280 value |= ((uint32_t)CLAMP(src[2], 0, 1023)) & 0x3ff; 281 value |= (((uint32_t)CLAMP(src[1], 0, 1023)) & 0x3ff) << 10; 282 value |= (((uint32_t)CLAMP(src[0], 0, 1023)) & 0x3ff) << 20; 283 value |= ((uint32_t)CLAMP(src[3], 0, 3)) << 30; 295 value |= (uint32_t)(((uint32_t)(CLAMP(src[2], -1, 1) * 0x1ff)) & 0x3ff) ; 296 value |= (uint32_t)((((uint32_t)(CLAMP(src[1], -1, 1) * 0x1ff)) & 0x3ff) << 10) [all...] |
/external/mesa3d/src/gallium/auxiliary/translate/ |
translate_generic.c | 265 value |= ((uint32_t)(CLAMP(src[2], 0, 1) * 0x3ff)) & 0x3ff; 266 value |= (((uint32_t)(CLAMP(src[1], 0, 1) * 0x3ff)) & 0x3ff) << 10; 267 value |= (((uint32_t)(CLAMP(src[0], 0, 1) * 0x3ff)) & 0x3ff) << 20; 268 value |= ((uint32_t)(CLAMP(src[3], 0, 1) * 0x3)) << 30; 280 value |= ((uint32_t)CLAMP(src[2], 0, 1023)) & 0x3ff; 281 value |= (((uint32_t)CLAMP(src[1], 0, 1023)) & 0x3ff) << 10; 282 value |= (((uint32_t)CLAMP(src[0], 0, 1023)) & 0x3ff) << 20; 283 value |= ((uint32_t)CLAMP(src[3], 0, 3)) << 30; 295 value |= (uint32_t)(((uint32_t)(CLAMP(src[2], -1, 1) * 0x1ff)) & 0x3ff) ; 296 value |= (uint32_t)((((uint32_t)(CLAMP(src[1], -1, 1) * 0x1ff)) & 0x3ff) << 10) [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Shader.java | 44 CLAMP (0),
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/nouveau/ |
nv04_state_tex.c | 81 lod_max = CLAMP(MIN2(sa->MaxLod, t->_MaxLambda), 84 lod_bias = CLAMP(ctx->Texture.Unit[i].LodBias +
|
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
s_chan.h | 96 #define CHAN_TO_USHORT(c) ((GLushort) (CLAMP((c), 0.0f, 1.0f) * 65535.0)) 97 #define CHAN_TO_SHORT(c) ((GLshort) (CLAMP((c), 0.0f, 1.0f) * 32767.0))
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nv04_state_tex.c | 81 lod_max = CLAMP(MIN2(sa->MaxLod, t->_MaxLambda), 84 lod_bias = CLAMP(ctx->Texture.Unit[i].LodBias +
|