/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);
|
/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);
|
/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...] |
/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 +
|
/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/chromium_org/third_party/mesa/src/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/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/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;
|
draw_vs_exec.c | 166 output[slot][0] = CLAMP(machine->Outputs[slot].xyzw[0].f[j], 0.0f, 1.0f); 167 output[slot][1] = CLAMP(machine->Outputs[slot].xyzw[1].f[j], 0.0f, 1.0f); 168 output[slot][2] = CLAMP(machine->Outputs[slot].xyzw[2].f[j], 0.0f, 1.0f); 169 output[slot][3] = CLAMP(machine->Outputs[slot].xyzw[3].f[j], 0.0f, 1.0f);
|
/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/chromium_org/third_party/mesa/src/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);
|
/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);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Vertices.java | 54 Shader s = new BitmapShader(bm, Shader.TileMode.CLAMP, 55 Shader.TileMode.CLAMP);
|