Lines Matching refs:bpp
36 testing::AssertionResult ImageMatches(int width, int height, int bpp, int rowLength, in ImageMatches() argument
43 size_t rowBytes = width * bpp; in ImageMatches()
45 i / rowLength, rowBytes, expected + i * bpp, actual + i * bpp); in ImageMatches()
70 int bpp = 3; in createTestPatternRGB888() local
72 TestTexture res(bpp * width * height); in createTestPatternRGB888()
76 res[i * bpp * width + j * bpp + 0] = i % 0x100; in createTestPatternRGB888()
77 res[i * bpp * width + j * bpp + 1] = j % 0x100; in createTestPatternRGB888()
78 res[i * bpp * width + j * bpp + 2] = (i * width + j) % 0x100; in createTestPatternRGB888()
86 int bpp = 4; in createTestPatternRGBA8888() local
88 TestTexture res(bpp * width * height); in createTestPatternRGBA8888()
92 res[i * bpp * width + j * bpp + 0] = i % 0x100; in createTestPatternRGBA8888()
93 res[i * bpp * width + j * bpp + 1] = j % 0x100; in createTestPatternRGBA8888()
94 res[i * bpp * width + j * bpp + 2] = (i * width + j) % 0x100; in createTestPatternRGBA8888()
95 res[i * bpp * width + j * bpp + 3] = (width - j) % 0x100; in createTestPatternRGBA8888()
109 int bpp = 3; in createTestTextureRGB888SingleColor() local
111 TestTexture res(bpp * width * height); in createTestTextureRGB888SingleColor()
115 res[i * bpp * width + j * bpp + 0] = clamp(r, 0.0f, 1.0f) * 255.0f; in createTestTextureRGB888SingleColor()
116 res[i * bpp * width + j * bpp + 1] = clamp(g, 0.0f, 1.0f) * 255.0f; in createTestTextureRGB888SingleColor()
117 res[i * bpp * width + j * bpp + 2] = clamp(b, 0.0f, 1.0f) * 255.0f; in createTestTextureRGB888SingleColor()
125 int bpp = 4; in createTestTextureRGBA8888SingleColor() local
127 TestTexture res(bpp * width * height); in createTestTextureRGBA8888SingleColor()
131 res[i * bpp * width + j * bpp + 0] = clamp(r, 0.0f, 1.0f) * 255.0f; in createTestTextureRGBA8888SingleColor()
132 res[i * bpp * width + j * bpp + 1] = clamp(g, 0.0f, 1.0f) * 255.0f; in createTestTextureRGBA8888SingleColor()
133 res[i * bpp * width + j * bpp + 2] = clamp(b, 0.0f, 1.0f) * 255.0f; in createTestTextureRGBA8888SingleColor()
134 res[i * bpp * width + j * bpp + 3] = clamp(a, 0.0f, 1.0f) * 255.0f; in createTestTextureRGBA8888SingleColor()