Searched refs:CLAMP (Results 1 - 25 of 189) sorted by relevance

12345678

/external/chromium_org/third_party/mesa/src/src/mesa/main/
H A Dmultisample.c43 ctx->Multisample.SampleCoverageValue = (GLfloat) CLAMP(value, 0.0, 1.0);
H A Dpack.c494 #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(rgb
[all...]
H A Dpixeltransfer.c92 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(rgb
[all...]
H A Ddepth.c50 depth = CLAMP( depth, 0.0, 1.0 );
145 zmin = CLAMP(zmin, 0.0, 1.0);
146 zmax = CLAMP(zmax, 0.0, 1.0);
H A Dfog.c159 ctx->Fog.Color[0] = CLAMP(params[0], 0.0F, 1.0F);
160 ctx->Fog.Color[1] = CLAMP(params[1], 0.0F, 1.0F);
161 ctx->Fog.Color[2] = CLAMP(params[2], 0.0F, 1.0F);
162 ctx->Fog.Color[3] = CLAMP(params[3], 0.0F, 1.0F);
H A Dlines.c103 factor = CLAMP( factor, 1, 256 );
/external/mesa3d/src/mesa/main/
H A Dmultisample.c43 ctx->Multisample.SampleCoverageValue = (GLfloat) CLAMP(value, 0.0, 1.0);
H A Dpack.c494 #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(rgb
[all...]
H A Dpixeltransfer.c92 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(rgb
[all...]
H A Ddepth.c50 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/
H A Dtranslate_generic.c265 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(sr
[all...]
/external/mesa3d/src/gallium/auxiliary/translate/
H A Dtranslate_generic.c265 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(sr
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/nouveau/
H A Dnv04_state_tex.c81 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/
H A Ds_chan.h96 #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/
H A Dnv04_state_tex.c81 lod_max = CLAMP(MIN2(sa->MaxLod, t->_MaxLambda),
84 lod_bias = CLAMP(ctx->Texture.Unit[i].LodBias +
/external/mesa3d/src/mesa/swrast/
H A Ds_chan.h96 #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/
H A Dt_rasterpos.c127 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(ct
[all...]
/external/mesa3d/src/mesa/tnl/
H A Dt_rasterpos.c127 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(ct
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/
H A Ddraw_pipe_offset.c102 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);
H A Ddraw_vs_exec.c166 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/
H A Ddraw_pipe_offset.c102 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);
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_format_yuv.h61 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/
H A Du_format_yuv.h61 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/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/r200/
H A Dradeon_fog.c108 return CLAMP(temp, 0.0F, 1.0F);
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/radeon/
H A Dradeon_fog.c108 return CLAMP(temp, 0.0F, 1.0F);

Completed in 5355 milliseconds

12345678