Lines Matching refs:i
23 for (size_t i = 0; i < rowBytes; ++i) { in RowMatches() local
24 if (expected[i] != actual[i]) { in RowMatches()
26 << "row " << rowIndex << " byte " << i in RowMatches()
28 << "(" << testing::PrintToString(expected[i]) in RowMatches()
30 << "(" << testing::PrintToString(actual[i]) << ")"; in RowMatches()
42 for (int i = 0; i < height * rowLength; i += rowLength) { in ImageMatches() local
45 i / rowLength, rowBytes, expected + i * bpp, actual + i * bpp); in ImageMatches()
50 << (i / rowLength); in ImageMatches()
74 for (int i = 0; i < height; i++) { in createTestPatternRGB888() local
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()
90 for (int i = 0; i < height; i++) { in createTestPatternRGBA8888() local
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()
113 for (int i = 0; i < height; i++) { in createTestTextureRGB888SingleColor() local
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()
129 for (int i = 0; i < height; i++) { in createTestTextureRGBA8888SingleColor() local
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()