Home
last modified time | relevance | path

Searched refs:deClamp32 (Results 1 – 21 of 21) sorted by relevance

/external/deqp/framework/common/
DtcuRGBA.hpp158 return RGBA(deClamp32(a.getRed() + b.getRed(), 0, 255), in operator +()
159 deClamp32(a.getGreen() + b.getGreen(), 0, 255), in operator +()
160 deClamp32(a.getBlue() + b.getBlue(), 0, 255), in operator +()
161 deClamp32(a.getAlpha() + b.getAlpha(), 0, 255)); in operator +()
166 return RGBA(deClamp32(a.getRed() - b.getRed(), 0, 255), in operator -()
167 deClamp32(a.getGreen() - b.getGreen(), 0, 255), in operator -()
168 deClamp32(a.getBlue() - b.getBlue(), 0, 255), in operator -()
169 deClamp32(a.getAlpha() - b.getAlpha(), 0, 255)); in operator -()
174 return RGBA(deClamp32(a.getRed() * b, 0, 255), in operator *()
175 deClamp32(a.getGreen() * b, 0, 255), in operator *()
[all …]
DtcuRGBA.cpp39 int r = deClamp32(int(v.x() * 255.0f + 0.5f), 0, 255); in RGBA()
40 int g = deClamp32(int(v.y() * 255.0f + 0.5f), 0, 255); in RGBA()
41 int b = deClamp32(int(v.z() * 255.0f + 0.5f), 0, 255); in RGBA()
42 int a = deClamp32(int(v.w() * 255.0f + 0.5f), 0, 255); in RGBA()
DtcuCompressedTexture.cpp465 dst[dstOffset+0] = (deUint8)deClamp32((int)baseR[subBlock] + modifier, 0, 255); in decompressETC1Block()
466 dst[dstOffset+1] = (deUint8)deClamp32((int)baseG[subBlock] + modifier, 0, 255); in decompressETC1Block()
467 dst[dstOffset+2] = (deUint8)deClamp32((int)baseB[subBlock] + modifier, 0, 255); in decompressETC1Block()
578 dst[dstOffset+0] = (deUint8)deClamp32((int)baseR[subBlock] + modifier, 0, 255); in decompressETC2Block()
579 dst[dstOffset+1] = (deUint8)deClamp32((int)baseG[subBlock] + modifier, 0, 255); in decompressETC2Block()
580 dst[dstOffset+2] = (deUint8)deClamp32((int)baseB[subBlock] + modifier, 0, 255); in decompressETC2Block()
615 paintR[1] = (deUint8)deClamp32((int)paintR[2] + dist, 0, 255); in decompressETC2Block()
616 paintG[1] = (deUint8)deClamp32((int)paintG[2] + dist, 0, 255); in decompressETC2Block()
617 paintB[1] = (deUint8)deClamp32((int)paintB[2] + dist, 0, 255); in decompressETC2Block()
618 paintR[3] = (deUint8)deClamp32((int)paintR[2] - dist, 0, 255); in decompressETC2Block()
[all …]
DtcuTexVerifierUtil.cpp138 return deClamp32(c, -1, size); in wrap()
141 return deClamp32(c, 0, size-1); in wrap()
DtcuTexture.cpp403 deUint32 rs = (deUint32)deClamp32(deFloorFloatToInt32(rc / e + 0.5f), 0, (1<<9)-1); in packRGB999E5()
404 deUint32 gs = (deUint32)deClamp32(deFloorFloatToInt32(gc / e + 0.5f), 0, (1<<9)-1); in packRGB999E5()
405 deUint32 bs = (deUint32)deClamp32(deFloorFloatToInt32(bc / e + 0.5f), 0, (1<<9)-1); in packRGB999E5()
1115 return deClamp32(c, -1, size); in wrap()
1118 return deClamp32(c, 0, size-1); in wrap()
1130 …return deClamp32(c, 0, size-1); // \note Actual mirroring done already in unnormalization function. in wrap()
1876 int level = deClamp32((int)deFloatCeil(lod + 0.5f) - 1, 0, maxLevel); in sampleLevelArray1D()
1886 int level0 = deClamp32((int)deFloatFloor(lod), 0, maxLevel); in sampleLevelArray1D()
1916 int level = deClamp32((int)deFloatCeil(lod + 0.5f) - 1, 0, maxLevel); in sampleLevelArray1DOffset()
1926 int level0 = deClamp32((int)deFloatFloor(lod), 0, maxLevel); in sampleLevelArray1DOffset()
[all …]
DtcuImageCompare.cpp301 …diffMask.setPixel(tcu::RGBA(deClamp32(sum*diffFactor, 0, 255), deClamp32(255-sum*diffFactor, 0, 25… in computeSquaredDiffSum()
333 …int score = deClamp32(deFloorFloatToInt32(100.0f - (de::max(sum-(float)bestScoreDiff, 0.0f) /… in measurePixelDiffAccuracy()
/external/deqp/framework/delibs/deimage/
DdeARGB.h63 return deARGB_set(deClamp32(deARGB_getRed(a) + deARGB_getRed(b), 0, 255), in deARGB_add()
64 deClamp32(deARGB_getGreen(a) + deARGB_getGreen(b), 0, 255), in deARGB_add()
65 deClamp32(deARGB_getBlue(a) + deARGB_getBlue(b), 0, 255), in deARGB_add()
66 deClamp32(deARGB_getAlpha(a) + deARGB_getAlpha(b), 0, 255)); in deARGB_add()
DdeImage.c140 int x1 = deClamp32(x0+1, 0, srcWidth-1); in deImage_scale()
141 int y1 = deClamp32(y0+1, 0, srcHeight-1); in deImage_scale()
/external/deqp/modules/glshared/
DglsTextureTestUtil.hpp243 return tcu::RGBA(deClamp32(deRoundFloatToInt32(v.x()*255.0f), 0, 255), in toRGBA()
244 deClamp32(deRoundFloatToInt32(v.y()*255.0f), 0, 255), in toRGBA()
245 deClamp32(deRoundFloatToInt32(v.z()*255.0f), 0, 255), in toRGBA()
246 deClamp32(deRoundFloatToInt32(v.w()*255.0f), 0, 255)); in toRGBA()
252 …return tcu::RGBA((mask&tcu::RGBA::RED_MASK) ? deClamp32(deRoundFloatToInt32(v.x()*255.0f), 0, 255… in toRGBAMasked()
253 (mask&tcu::RGBA::GREEN_MASK) ? deClamp32(deRoundFloatToInt32(v.y()*255.0f), 0, 255) : 0, in toRGBAMasked()
254 (mask&tcu::RGBA::BLUE_MASK) ? deClamp32(deRoundFloatToInt32(v.z()*255.0f), 0, 255) : 0, in toRGBAMasked()
255 (mask&tcu::RGBA::ALPHA_MASK) ? deClamp32(deRoundFloatToInt32(v.w()*255.0f), 0, 255) : 0xff); in toRGBAMasked()
DglsShaderRenderCase.cpp69 return RGBA(deClamp32(deRoundFloatToInt32(a.x() * 255.0f), 0, 255), in toRGBA()
70 deClamp32(deRoundFloatToInt32(a.y() * 255.0f), 0, 255), in toRGBA()
71 deClamp32(deRoundFloatToInt32(a.z() * 255.0f), 0, 255), in toRGBA()
72 deClamp32(deRoundFloatToInt32(a.w() * 255.0f), 0, 255)); in toRGBA()
DglsCalibration.cpp332 …int numMeasureFrames = deClamp32(deRoundFloatToInt32(m_params.targetMeasureDurationUs / m_calibr… in recomputeParameters()
/external/deqp/modules/egl/
DteglGLES2SharingTests.cpp658 int r = deClamp32((int)(255.0f * color.x()), 0, 255); in renderResource()
659 int g = deClamp32((int)(255.0f * color.y()), 0, 255); in renderResource()
660 int b = deClamp32((int)(255.0f * color.z()), 0, 255); in renderResource()
661 int a = deClamp32((int)(255.0f * color.w()), 0, 255); in renderResource()
809 int red = deClamp32((int)(255.0f * color.x()), 0, 255); in renderResource()
810 int green = deClamp32((int)(255.0f * color.y()), 0, 255); in renderResource()
811 int blue = deClamp32((int)(255.0f * color.z()), 0, 255); in renderResource()
812 int alpha = deClamp32((int)(255.0f * color.w()), 0, 255); in renderResource()
1098 int red = deClamp32((int)(255.0f * color.x()), 0, 255); in renderResource()
1099 int green = deClamp32((int)(255.0f * color.y()), 0, 255); in renderResource()
[all …]
/external/deqp/framework/randomshaders/
DrsgProgramExecutor.cpp205 return tcu::RGBA(deClamp32(deRoundFloatToInt32(rgba.x()*255), 0, 255), in toColor()
206 deClamp32(deRoundFloatToInt32(rgba.y()*255), 0, 255), in toColor()
207 deClamp32(deRoundFloatToInt32(rgba.z()*255), 0, 255), in toColor()
208 deClamp32(deRoundFloatToInt32(rgba.w()*255), 0, 255)); in toColor()
/external/deqp/modules/gles2/functional/
Des2fDepthStencilClearTests.cpp440 …tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), oldColor.getGreen(), deClamp32(deRoundFloatToInt… in renderReference()
488 …tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), deClamp32(deRoundFloatToInt32(step * 255.0f), 0,… in renderReference()
Des2fTextureMipmapTests.cpp168 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
520 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
/external/deqp/modules/gles3/functional/
Des3fDepthStencilClearTests.cpp443 …tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), oldColor.getGreen(), deClamp32(deRoundFloatToInt… in renderReference()
491 …tcu::RGBA newColor = tcu::RGBA(oldColor.getRed(), deClamp32(deRoundFloatToInt32(step * 255.0f), 0,… in renderReference()
Des3fTextureMipmapTests.cpp212 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
559 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
1158 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
1475 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
1777 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
2098 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
/external/deqp/modules/gles3/accuracy/
Des3aTextureMipmapTests.cpp156 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
451 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
/external/deqp/modules/gles2/accuracy/
Des2aTextureMipmapTests.cpp164 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
463 deUint32 inc = deClamp32(step*levelNdx, 0x00, 0xff); in init()
/external/deqp/framework/delibs/debase/
DdeInt32.h136 DE_INLINE int deClamp32 (int a, int mn, int mx) in deClamp32() function
/external/deqp/framework/opengl/simplereference/
DsglrReferenceContext.cpp4622 const int copyX = deClamp32(x, 0, src.raw().getHeight()); in readPixels()
4623 const int copyY = deClamp32(y, 0, src.raw().getDepth()); in readPixels()
4624 const int copyWidth = deClamp32(width, 0, src.raw().getHeight()-x); in readPixels()
4625 const int copyHeight = deClamp32(height, 0, src.raw().getDepth()-y); in readPixels()