HomeSort by relevance Sort by last modified time
    Searched refs:CLAMP (Results 1 - 25 of 195) sorted by null

1 2 3 4 5 6 7 8

  /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);
LinearGradientTest.java 37 lg = new LinearGradient(0, 0, 0, 40, color, position, TileMode.CLAMP);
53 lg = new LinearGradient(0, 0, 0, 40, Color.RED, Color.BLUE, 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_CompatLibLegacy/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 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...]
  /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/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/rs/java/android/renderscript/
Sampler.java 36 CLAMP (4),
93 * clamp.
104 b.setWrapS(Value.CLAMP);
105 b.setWrapT(Value.CLAMP);
113 * clamp.
124 b.setWrapS(Value.CLAMP);
125 b.setWrapT(Value.CLAMP);
133 * wrap modes set to clamp.
144 b.setWrapS(Value.CLAMP);
145 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...]
  /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/packages/SystemUI/src/com/android/systemui/
BitmapHelper.java 44 paint.setShader(new BitmapShader(input, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP));
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
ShaderTests.java 75 Shader.TileMode.CLAMP);
119 Shader.TileMode.CLAMP, Shader.TileMode.CLAMP);
125 null, Shader.TileMode.CLAMP);
  /frameworks/base/graphics/java/android/graphics/
Shader.java 47 CLAMP (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 +
  /external/mesa3d/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/tnl/
t_rasterpos.c 127 diffuseColor[3] = CLAMP(
238 Rcolor[0] = CLAMP(diffuseColor[0], 0.0F, 1.0F);
239 Rcolor[1] = CLAMP(diffuseColor[1], 0.0F, 1.0F);
240 Rcolor[2] = CLAMP(diffuseColor[2], 0.0F, 1.0F);
241 Rcolor[3] = CLAMP(diffuseColor[3], 0.0F, 1.0F);
242 Rspec[0] = CLAMP(specularColor[0], 0.0F, 1.0F);
243 Rspec[1] = CLAMP(specularColor[1], 0.0F, 1.0F);
244 Rspec[2] = CLAMP(specularColor[2], 0.0F, 1.0F);
245 Rspec[3] = CLAMP(specularColor[3], 0.0F, 1.0F);
422 ctx->Current.RasterPos[3] = CLAMP(ctx->Current.RasterPos[3]
    [all...]
  /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;
  /external/mesa3d/src/gallium/auxiliary/util/
u_format_yuv.h 61 const float _r = CLAMP(r, 0.0f, 1.0f);
62 const float _g = CLAMP(g, 0.0f, 1.0f);
63 const float _b = CLAMP(b, 0.0f, 1.0f);
117 *r = CLAMP(_r, 0, 255);
118 *g = CLAMP(_g, 0, 255);
119 *b = CLAMP(_b, 0, 255);

Completed in 8144 milliseconds

1 2 3 4 5 6 7 8