/external/deqp/framework/delibs/deimage/ |
deARGB.h | 63 return deARGB_set(deClamp32(deARGB_getRed(a) + deARGB_getRed(b), 0, 255), 64 deClamp32(deARGB_getGreen(a) + deARGB_getGreen(b), 0, 255), 65 deClamp32(deARGB_getBlue(a) + deARGB_getBlue(b), 0, 255), 66 deClamp32(deARGB_getAlpha(a) + deARGB_getAlpha(b), 0, 255));
|
deImage.c | 140 int x1 = deClamp32(x0+1, 0, srcWidth-1); 141 int y1 = deClamp32(y0+1, 0, srcHeight-1);
|
/external/deqp/framework/common/ |
tcuRGBA.hpp | 158 return RGBA(deClamp32(a.getRed() + b.getRed(), 0, 255), 159 deClamp32(a.getGreen() + b.getGreen(), 0, 255), 160 deClamp32(a.getBlue() + b.getBlue(), 0, 255), 161 deClamp32(a.getAlpha() + b.getAlpha(), 0, 255)); 166 return RGBA(deClamp32(a.getRed() - b.getRed(), 0, 255), 167 deClamp32(a.getGreen() - b.getGreen(), 0, 255), 168 deClamp32(a.getBlue() - b.getBlue(), 0, 255), 169 deClamp32(a.getAlpha() - b.getAlpha(), 0, 255)); 174 return RGBA(deClamp32(a.getRed() * b, 0, 255), 175 deClamp32(a.getGreen() * b, 0, 255) [all...] |
tcuRGBA.cpp | 39 int r = deClamp32(int(v.x() * 255.0f + 0.5f), 0, 255); 40 int g = deClamp32(int(v.y() * 255.0f + 0.5f), 0, 255); 41 int b = deClamp32(int(v.z() * 255.0f + 0.5f), 0, 255); 42 int a = deClamp32(int(v.w() * 255.0f + 0.5f), 0, 255);
|
tcuTexVerifierUtil.cpp | 138 return deClamp32(c, -1, size); 141 return deClamp32(c, 0, size-1);
|
tcuCompressedTexture.cpp | 465 dst[dstOffset+0] = (deUint8)deClamp32((int)baseR[subBlock] + modifier, 0, 255); 466 dst[dstOffset+1] = (deUint8)deClamp32((int)baseG[subBlock] + modifier, 0, 255); 467 dst[dstOffset+2] = (deUint8)deClamp32((int)baseB[subBlock] + modifier, 0, 255); 578 dst[dstOffset+0] = (deUint8)deClamp32((int)baseR[subBlock] + modifier, 0, 255); 579 dst[dstOffset+1] = (deUint8)deClamp32((int)baseG[subBlock] + modifier, 0, 255); 580 dst[dstOffset+2] = (deUint8)deClamp32((int)baseB[subBlock] + modifier, 0, 255); 615 paintR[1] = (deUint8)deClamp32((int)paintR[2] + dist, 0, 255); 616 paintG[1] = (deUint8)deClamp32((int)paintG[2] + dist, 0, 255); 617 paintB[1] = (deUint8)deClamp32((int)paintB[2] + dist, 0, 255); 618 paintR[3] = (deUint8)deClamp32((int)paintR[2] - dist, 0, 255) [all...] |
tcuTexture.cpp | 403 deUint32 rs = (deUint32)deClamp32(deFloorFloatToInt32(rc / e + 0.5f), 0, (1<<9)-1); 404 deUint32 gs = (deUint32)deClamp32(deFloorFloatToInt32(gc / e + 0.5f), 0, (1<<9)-1); 405 deUint32 bs = (deUint32)deClamp32(deFloorFloatToInt32(bc / e + 0.5f), 0, (1<<9)-1); [all...] |
tcuImageCompare.cpp | 301 diffMask.setPixel(tcu::RGBA(deClamp32(sum*diffFactor, 0, 255), deClamp32(255-sum*diffFactor, 0, 255), 0, 255).toVec(), x, y); 333 int score = deClamp32(deFloorFloatToInt32(100.0f - (de::max(sum-(float)bestScoreDiff, 0.0f) / (float)(worstScoreDiff-bestScoreDiff))*100.0f), 0, 100); [all...] |
/external/deqp/modules/glshared/ |
glsTextureTestUtil.hpp | 243 return tcu::RGBA(deClamp32(deRoundFloatToInt32(v.x()*255.0f), 0, 255), 244 deClamp32(deRoundFloatToInt32(v.y()*255.0f), 0, 255), 245 deClamp32(deRoundFloatToInt32(v.z()*255.0f), 0, 255), 246 deClamp32(deRoundFloatToInt32(v.w()*255.0f), 0, 255)); 252 return tcu::RGBA((mask&tcu::RGBA::RED_MASK) ? deClamp32(deRoundFloatToInt32(v.x()*255.0f), 0, 255) : 0, 253 (mask&tcu::RGBA::GREEN_MASK) ? deClamp32(deRoundFloatToInt32(v.y()*255.0f), 0, 255) : 0, 254 (mask&tcu::RGBA::BLUE_MASK) ? deClamp32(deRoundFloatToInt32(v.z()*255.0f), 0, 255) : 0, 255 (mask&tcu::RGBA::ALPHA_MASK) ? deClamp32(deRoundFloatToInt32(v.w()*255.0f), 0, 255) : 0xff);
|
glsShaderRenderCase.cpp | 69 return RGBA(deClamp32(deRoundFloatToInt32(a.x() * 255.0f), 0, 255), 70 deClamp32(deRoundFloatToInt32(a.y() * 255.0f), 0, 255), 71 deClamp32(deRoundFloatToInt32(a.z() * 255.0f), 0, 255), 72 deClamp32(deRoundFloatToInt32(a.w() * 255.0f), 0, 255));
|
glsCalibration.cpp | 332 int numMeasureFrames = deClamp32(deRoundFloatToInt32(m_params.targetMeasureDurationUs / m_calibrateIterations.back().frameTime), minFrames, maxFrames);
|
/external/deqp/modules/egl/ |
teglGLES2SharingTests.cpp | 658 int r = deClamp32((int)(255.0f * color.x()), 0, 255); 659 int g = deClamp32((int)(255.0f * color.y()), 0, 255); 660 int b = deClamp32((int)(255.0f * color.z()), 0, 255); 661 int a = deClamp32((int)(255.0f * color.w()), 0, 255); 809 int red = deClamp32((int)(255.0f * color.x()), 0, 255); 810 int green = deClamp32((int)(255.0f * color.y()), 0, 255); 811 int blue = deClamp32((int)(255.0f * color.z()), 0, 255); 812 int alpha = deClamp32((int)(255.0f * color.w()), 0, 255); 1098 int red = deClamp32((int)(255.0f * color.x()), 0, 255); 1099 int green = deClamp32((int)(255.0f * color.y()), 0, 255) [all...] |
/external/deqp/framework/randomshaders/ |
rsgProgramExecutor.cpp | 205 return tcu::RGBA(deClamp32(deRoundFloatToInt32(rgba.x()*255), 0, 255), 206 deClamp32(deRoundFloatToInt32(rgba.y()*255), 0, 255), 207 deClamp32(deRoundFloatToInt32(rgba.z()*255), 0, 255), 208 deClamp32(deRoundFloatToInt32(rgba.w()*255), 0, 255));
|
/external/deqp/modules/gles2/functional/ |
es2fDepthStencilClearTests.cpp | 440 tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), oldColor.getGreen(), deClamp32(deRoundFloatToInt32(step * 255.0f), 0, 255), oldColor.getAlpha()); 488 tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), deClamp32(deRoundFloatToInt32(step * 255.0f), 0, 255), oldColor.getBlue(), oldColor.getAlpha());
|
es2fTextureMipmapTests.cpp | 168 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); 520 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); [all...] |
/external/deqp/modules/gles3/functional/ |
es3fDepthStencilClearTests.cpp | 443 tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), oldColor.getGreen(), deClamp32(deRoundFloatToInt32(step * 255.0f), 0, 255), oldColor.getAlpha()); 491 tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), deClamp32(deRoundFloatToInt32(step * 255.0f), 0, 255), oldColor.getBlue(), oldColor.getAlpha());
|
es3fTextureMipmapTests.cpp | 214 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); 561 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); [all...] |
/external/deqp/framework/delibs/debase/ |
deInt32.h | 136 DE_INLINE int deClamp32 (int a, int mn, int mx)
|
/external/deqp/modules/gles2/accuracy/ |
es2aTextureMipmapTests.cpp | 164 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); 463 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff);
|
/external/deqp/modules/gles3/accuracy/ |
es3aTextureMipmapTests.cpp | 156 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); 451 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff);
|
/external/deqp/framework/opengl/simplereference/ |
sglrReferenceContext.cpp | [all...] |