/external/deqp/framework/common/ |
tcuRGBA.hpp | 38 class RGBA 57 RGBA (void) { m_value = 0; } 59 RGBA (int r, int g, int b, int a) 68 explicit RGBA (deUint32 val) 73 explicit RGBA (const Vec4& v); 85 bool isBelowThreshold (RGBA thr) const { return (getRed() <= thr.getRed()) && (getGreen() <= thr.getGreen()) && (getBlue() <= thr.getBlue()) && (getAlpha() <= thr.getAlpha()); } 87 static RGBA fromBytes (const deUint8* bytes) { return RGBA(bytes[0], bytes[1], bytes[2], bytes[3]); } 92 bool operator== (const RGBA& v) const { return (m_value == v.m_value); } 93 bool operator!= (const RGBA& v) const { return (m_value != v.m_value); [all...] |
tcuRGBA.cpp | 31 RGBA::RGBA (const Vec4& v) 40 Vec4 RGBA::toVec (void) const 48 IVec4 RGBA::toIVec (void) const 53 RGBA computeAbsDiffMasked (RGBA a, RGBA b, deUint32 cmpMask) 62 if (cmpMask & RGBA::RED_MASK) 64 int ra = (aPacked >> RGBA::RED_SHIFT) & 0xFF; 65 int rb = (bPacked >> RGBA::RED_SHIFT) & 0xFF [all...] |
tcuBilinearImageCompare.hpp | 33 class RGBA; 35 bool bilinearCompare (const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const PixelBufferAccess& errorMask, const RGBA threshold);
|
tcuSurface.hpp | 56 void setPixel (int x, int y, RGBA col); 57 RGBA getPixel (int x, int y) const; 70 inline void Surface::setPixel (int x, int y, RGBA col) 87 inline RGBA Surface::getPixel (int x, int y) const 94 DE_STATIC_ASSERT(RGBA::RED_SHIFT == 0 && RGBA::GREEN_SHIFT == 8 && RGBA::BLUE_SHIFT == 16 && RGBA::ALPHA_SHIFT == 24); 97 return RGBA(*pixAddr); 100 return RGBA(byteAddr[0], byteAddr[1], byteAddr[2], byteAddr[3]) [all...] |
tcuPixelFormat.hpp | 64 inline RGBA getColorThreshold (void) const 66 return RGBA( 91 inline RGBA convertColor (const RGBA& col) const 93 return RGBA(convertChannel(col.getRed(), redBits),
|
tcuBilinearImageCompare.cpp | 41 // tcu::RGBA::*_SHIFT values. 61 inline RGBA readRGBA8 (const ConstPixelBufferAccess& src, deUint32 x, deUint32 y) 66 res |= getChannel<0>(raw) << RGBA::RED_SHIFT; 67 res |= getChannel<1>(raw) << RGBA::GREEN_SHIFT; 68 res |= getChannel<2>(raw) << RGBA::BLUE_SHIFT; 69 res |= getChannel<3>(raw) << RGBA::ALPHA_SHIFT; 71 return RGBA(res); 86 RGBA bilinearSampleRGBA8 (const ConstPixelBufferAccess& access, deUint32 u, deUint32 v) 106 res |= interpolateChannel(fx1, fy1, getChannel<0>(p00), getChannel<0>(p01), getChannel<0>(p10), getChannel<0>(p11)) << RGBA::RED_SHIFT; 107 res |= interpolateChannel(fx1, fy1, getChannel<1>(p00), getChannel<1>(p01), getChannel<1>(p10), getChannel<1>(p11)) << RGBA::GREEN_SHIFT [all...] |
/prebuilts/go/darwin-x86/src/image/color/palette/ |
palette.go | 24 color.RGBA{0x00, 0x00, 0x00, 0xff}, 25 color.RGBA{0x00, 0x00, 0x44, 0xff}, 26 color.RGBA{0x00, 0x00, 0x88, 0xff}, 27 color.RGBA{0x00, 0x00, 0xcc, 0xff}, 28 color.RGBA{0x00, 0x44, 0x00, 0xff}, 29 color.RGBA{0x00, 0x44, 0x44, 0xff}, 30 color.RGBA{0x00, 0x44, 0x88, 0xff}, 31 color.RGBA{0x00, 0x44, 0xcc, 0xff}, 32 color.RGBA{0x00, 0x88, 0x00, 0xff}, 33 color.RGBA{0x00, 0x88, 0x44, 0xff} [all...] |
/prebuilts/go/linux-x86/src/image/color/palette/ |
palette.go | 24 color.RGBA{0x00, 0x00, 0x00, 0xff}, 25 color.RGBA{0x00, 0x00, 0x44, 0xff}, 26 color.RGBA{0x00, 0x00, 0x88, 0xff}, 27 color.RGBA{0x00, 0x00, 0xcc, 0xff}, 28 color.RGBA{0x00, 0x44, 0x00, 0xff}, 29 color.RGBA{0x00, 0x44, 0x44, 0xff}, 30 color.RGBA{0x00, 0x44, 0x88, 0xff}, 31 color.RGBA{0x00, 0x44, 0xcc, 0xff}, 32 color.RGBA{0x00, 0x88, 0x00, 0xff}, 33 color.RGBA{0x00, 0x88, 0x44, 0xff} [all...] |
/external/deqp/modules/internal/ |
ditImageCompareTests.cpp | 48 dst.setStorage(tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), tmp.getWidth(), tmp.getHeight()); 114 BilinearCompareCase (tcu::TestContext& testCtx, const char* name, const char* refImg, const char* cmpImg, const tcu::RGBA& threshold, bool expectedResult) 153 const tcu::RGBA m_threshold; 193 addChild(new BilinearCompareCase(m_testCtx, "identical", "cube_ref.png", "cube_ref.png", tcu::RGBA(0,0,0,0), true)); 194 addChild(new BilinearCompareCase(m_testCtx, "empty_to_white", "empty_256x256.png", "white_256x256.png", tcu::RGBA(7,7,7,2), false)); 195 addChild(new BilinearCompareCase(m_testCtx, "white_to_empty", "white_256x256.png", "empty_256x256.png", tcu::RGBA(7,7,7,2), false)); 196 addChild(new BilinearCompareCase(m_testCtx, "cube", "cube_ref.png", "cube_cmp.png", tcu::RGBA(7,7,7,2), false)); 197 addChild(new BilinearCompareCase(m_testCtx, "cube_2", "cube_2_ref.png", "cube_2_cmp.png", tcu::RGBA(7,7,7,2), false)); 198 addChild(new BilinearCompareCase(m_testCtx, "cube_sphere", "cube_sphere_ref.png", "cube_sphere_cmp.png", tcu::RGBA(7,7,7,2), false)); 199 addChild(new BilinearCompareCase(m_testCtx, "cube_nmap", "cube_nmap_ref.png", "cube_nmap_cmp.png", tcu::RGBA(7,7,7,2), false)) [all...] |
/prebuilts/go/darwin-x86/src/image/draw/ |
draw_test.go | 16 r0, g0, b0, a0 := c0.RGBA() 17 r1, g1, b1, a1 := c1.RGBA() 22 return image.NewUniform(color.RGBA{0, 0, uint8(alpha), uint8(alpha)}) 33 m.Set(x, y, color.RGBA{0, uint8(y * alpha / 15), 0, uint8(alpha)}) 53 m.Set(x, y, color.RGBA{0, uint8(y * 0x11), 0, uint8(alpha)}) 101 m.Set(x, y, color.RGBA{uint8(x * alpha / 15), 0, 0, uint8(alpha)}) 111 m.Set(x, y, color.RGBA{uint8(x * alpha / 15), uint8(y * alpha / 15), 0, uint8(alpha)}) 127 {"nop", vgradGreen(255), fillAlpha(0), Over, color.RGBA{136, 0, 0, 255}}, 128 {"clear", vgradGreen(255), fillAlpha(0), Src, color.RGBA{0, 0, 0, 0}}, 133 {"fill", fillBlue(90), fillAlpha(255), Over, color.RGBA{88, 0, 90, 255}} [all...] |
/prebuilts/go/linux-x86/src/image/draw/ |
draw_test.go | 16 r0, g0, b0, a0 := c0.RGBA() 17 r1, g1, b1, a1 := c1.RGBA() 22 return image.NewUniform(color.RGBA{0, 0, uint8(alpha), uint8(alpha)}) 33 m.Set(x, y, color.RGBA{0, uint8(y * alpha / 15), 0, uint8(alpha)}) 53 m.Set(x, y, color.RGBA{0, uint8(y * 0x11), 0, uint8(alpha)}) 101 m.Set(x, y, color.RGBA{uint8(x * alpha / 15), 0, 0, uint8(alpha)}) 111 m.Set(x, y, color.RGBA{uint8(x * alpha / 15), uint8(y * alpha / 15), 0, uint8(alpha)}) 127 {"nop", vgradGreen(255), fillAlpha(0), Over, color.RGBA{136, 0, 0, 255}}, 128 {"clear", vgradGreen(255), fillAlpha(0), Src, color.RGBA{0, 0, 0, 0}}, 133 {"fill", fillBlue(90), fillAlpha(255), Over, color.RGBA{88, 0, 90, 255}} [all...] |
/external/deqp/modules/gles31/functional/ |
es31fNegativeShaderImageLoadStoreTests.cpp | 101 case tcu::TextureFormat::RGBA: qualifier << "rgba"; break; 407 tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::FLOAT), 408 tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::HALF_FLOAT), 410 tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), 411 tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::SNORM_INT8), 413 tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::SIGNED_INT32), 414 tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::SIGNED_INT16), 415 tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::SIGNED_INT8), 418 tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNSIGNED_INT32) [all...] |
/prebuilts/go/darwin-x86/src/image/color/ |
color.go | 8 // Color can convert itself to alpha-premultiplied 16-bits per channel RGBA. 11 // RGBA returns the alpha-premultiplied red, green, blue and alpha values 18 RGBA() (r, g, b, a uint32) 21 // RGBA represents a traditional 32-bit alpha-premultiplied color, having 8 26 type RGBA struct { 30 func (c RGBA) RGBA() (r, g, b, a uint32) { 51 func (c RGBA64) RGBA() (r, g, b, a uint32) { 60 func (c NRGBA) RGBA() (r, g, b, a uint32) { 84 func (c NRGBA64) RGBA() (r, g, b, a uint32) [all...] |
ycbcr_test.go | 20 r0, g0, b0, a0 := c0.RGBA() 21 r1, g1, b1, a1 := c1.RGBA() 47 // TestYCbCrToRGBConsistency tests that calling the RGBA method (16 bit color) 55 r0, g0, b0, _ := x.RGBA() 94 // TestCMYKToRGBConsistency tests that calling the RGBA method (16 bit color) 103 r0, g0, b0, _ := x.RGBA() 127 RGBA{0xff, 0xff, 0xff, 0xff}, 128 RGBA{0x80, 0x00, 0x00, 0xff}, 129 RGBA{0x7f, 0x00, 0x00, 0x7f}, 130 RGBA{0x00, 0x00, 0x00, 0x7f} [all...] |
/prebuilts/go/linux-x86/src/image/color/ |
color.go | 8 // Color can convert itself to alpha-premultiplied 16-bits per channel RGBA. 11 // RGBA returns the alpha-premultiplied red, green, blue and alpha values 18 RGBA() (r, g, b, a uint32) 21 // RGBA represents a traditional 32-bit alpha-premultiplied color, having 8 26 type RGBA struct { 30 func (c RGBA) RGBA() (r, g, b, a uint32) { 51 func (c RGBA64) RGBA() (r, g, b, a uint32) { 60 func (c NRGBA) RGBA() (r, g, b, a uint32) { 84 func (c NRGBA64) RGBA() (r, g, b, a uint32) [all...] |
ycbcr_test.go | 20 r0, g0, b0, a0 := c0.RGBA() 21 r1, g1, b1, a1 := c1.RGBA() 47 // TestYCbCrToRGBConsistency tests that calling the RGBA method (16 bit color) 55 r0, g0, b0, _ := x.RGBA() 94 // TestCMYKToRGBConsistency tests that calling the RGBA method (16 bit color) 103 r0, g0, b0, _ := x.RGBA() 127 RGBA{0xff, 0xff, 0xff, 0xff}, 128 RGBA{0x80, 0x00, 0x00, 0xff}, 129 RGBA{0x7f, 0x00, 0x00, 0x7f}, 130 RGBA{0x00, 0x00, 0x00, 0x7f} [all...] |
/external/deqp/external/vulkancts/framework/vulkan/ |
vkImageUtil.cpp | 149 case FMT_CASE(RGBA, UNORM_SHORT_4444): return VK_FORMAT_R4G4B4A4_UNORM_PACK16; 150 case FMT_CASE(RGBA, UNORM_SHORT_5551): return VK_FORMAT_R5G5B5A1_UNORM_PACK16; 176 case FMT_CASE(RGBA, UNORM_INT8): return VK_FORMAT_R8G8B8A8_UNORM; 177 case FMT_CASE(RGBA, SNORM_INT8): return VK_FORMAT_R8G8B8A8_SNORM; 178 case FMT_CASE(RGBA, UNSIGNED_INT8): return VK_FORMAT_R8G8B8A8_UINT; 179 case FMT_CASE(RGBA, SIGNED_INT8): return VK_FORMAT_R8G8B8A8_SINT; 182 case FMT_CASE(RGBA, UNORM_INT_1010102_REV): return VK_FORMAT_A2B10G10R10_UNORM_PACK32; 183 case FMT_CASE(RGBA, SNORM_INT_1010102_REV): return VK_FORMAT_A2B10G10R10_SNORM_PACK32; 184 case FMT_CASE(RGBA, UNSIGNED_INT_1010102_REV): return VK_FORMAT_A2B10G10R10_UINT_PACK32; 185 case FMT_CASE(RGBA, SIGNED_INT_1010102_REV): return VK_FORMAT_A2B10G10R10_SINT_PACK32 [all...] |
/external/deqp/modules/gles2/functional/ |
es2fColorClearTest.cpp | 40 using tcu::RGBA; 90 ClearInfo (const tcu::IVec4& rect, deUint8 colorMask, tcu::RGBA color) 97 tcu::RGBA m_color; 149 RGBA clearCol(r, g, b, a); 186 tcu::RGBA spanColor; 200 tcu::RGBA clearCol = op.m_color; 236 RGBA colorThreshold = pixelFormat.getColorThreshold(); 237 RGBA matchColor(0, 255, 0, 255); 238 RGBA diffColor(255, 0, 0, 255); 239 RGBA maxDiff(0, 0, 0, 0) [all...] |
/external/deqp/modules/gles3/functional/ |
es3fColorClearTest.cpp | 40 using tcu::RGBA; 90 ClearInfo (const tcu::IVec4& rect, deUint8 colorMask, tcu::RGBA color) 97 tcu::RGBA m_color; 149 RGBA clearCol(r, g, b, a); 186 tcu::RGBA spanColor; 200 tcu::RGBA clearCol = op.m_color; 236 RGBA colorThreshold = pixelFormat.getColorThreshold(); 237 RGBA matchColor(0, 255, 0, 255); 238 RGBA diffColor(255, 0, 0, 255); 239 RGBA maxDiff(0, 0, 0, 0) [all...] |
es3fShaderFragDataTests.cpp | 64 static bool compareSingleColor (tcu::TestLog& log, const tcu::Surface& surface, tcu::RGBA expectedColor, tcu::RGBA threshold) 75 const tcu::RGBA resultColor = surface.getPixel(x, y); 201 const tcu::RGBA threshold = renderCtx.getRenderTarget().getPixelFormat().getColorThreshold() + tcu::RGBA(1,1,1,1); 207 isOk = compareSingleColor(m_testCtx.getLog(), result, tcu::RGBA::green(), threshold); 299 gl.clearBufferfv(GL_COLOR, 0, tcu::RGBA::red().toVec().getPtr()); 300 gl.clearBufferfv(GL_COLOR, 1, tcu::RGBA::red().toVec().getPtr()); 319 const tcu::RGBA threshold = renderCtx.getRenderTarget().getPixelFormat().getColorThreshold() + tcu::RGBA(1,1,1,1) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
vktDrawSimpleTest.cpp | 68 m_data.push_back(PositionColorVertex(tcu::Vec4( 1.0f, -1.0f, 1.0f, 1.0f), tcu::RGBA::blue().toVec())); 69 m_data.push_back(PositionColorVertex(tcu::Vec4( -1.0f, 1.0f, 1.0f, 1.0f), tcu::RGBA::blue().toVec())); 70 m_data.push_back(PositionColorVertex(tcu::Vec4( -0.3f, -0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec())); 71 m_data.push_back(PositionColorVertex(tcu::Vec4( -0.3f, 0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec())); 72 m_data.push_back(PositionColorVertex(tcu::Vec4( 0.3f, -0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec())); 73 m_data.push_back(PositionColorVertex(tcu::Vec4( 0.3f, -0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec())); 74 m_data.push_back(PositionColorVertex(tcu::Vec4( 0.3f, 0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec())); 75 m_data.push_back(PositionColorVertex(tcu::Vec4( -0.3f, 0.3f, 1.0f, 1.0f), tcu::RGBA::blue().toVec())); 76 m_data.push_back(PositionColorVertex(tcu::Vec4( -1.0f, 1.0f, 1.0f, 1.0f), tcu::RGBA::blue().toVec())); 79 m_data.push_back(PositionColorVertex(tcu::Vec4( 1.0f, -1.0f, 1.0f, 1.0f), tcu::RGBA::blue().toVec())) [all...] |
/prebuilts/go/darwin-x86/src/image/ |
names.go | 28 func (c *Uniform) RGBA() (r, g, b, a uint32) { 29 return c.C.RGBA() 46 _, _, _, a := c.C.RGBA()
|
/prebuilts/go/linux-x86/src/image/ |
names.go | 28 func (c *Uniform) RGBA() (r, g, b, a uint32) { 29 return c.C.RGBA() 46 _, _, _, a := c.C.RGBA()
|
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/ |
vktSpvAsmInstructionTests.cpp | 74 using tcu::RGBA; [all...] |
/external/skia/src/gpu/ |
GrSwizzle.h | 14 /** Represents a rgba swizzle. It can be converted either into a string or a eight bit int. 19 GrSwizzle() { *this = RGBA(); } 67 static const GrSwizzle& RGBA() { 68 static GrSwizzle gRGBA("rgba"); 90 return RGBA(); 99 return RGBA();
|