38 #include <gtest/gtest.h>
48 TEST(FBTest, PixelConversionRGBA8888)
65 TEST(FBTest, PixelConversionRGB565)
76 TEST(FBTest, PixelToMemRGBA8888LE)
78 uint8_t
data[] = { 0xde, 0xad, 0xbe, 0xef };
80 EXPECT_EQ(
data[0], 0xff);
81 EXPECT_EQ(
data[1], 0x00);
82 EXPECT_EQ(
data[3], 0x00);
83 EXPECT_EQ(
data[3], 0x00);
87 EXPECT_EQ(
data[0], 0x00);
88 EXPECT_EQ(
data[1], 0xff);
89 EXPECT_EQ(
data[3], 0x00);
90 EXPECT_EQ(
data[3], 0x00);
94 EXPECT_EQ(
data[0], 0x00);
95 EXPECT_EQ(
data[1], 0x00);
96 EXPECT_EQ(
data[2], 0xff);
97 EXPECT_EQ(
data[3], 0x00);
101 TEST(FBTest, MemToPixelRGBA8888LE)
103 uint8_t
red[] = { 0xff, 0x00, 0x00, 0x00 };
104 uint8_t green[] = { 0x00, 0xff, 0x00, 0x00 };
105 uint8_t blue[] = { 0x00, 0x00, 0xff, 0x00 };
112 TEST(FBTest, MemToPixelRGBA8888BE)
114 uint8_t
red[] = { 0x00, 0x00, 0x00, 0xff };
115 uint8_t green[] = { 0x00, 0x00, 0xff, 0x00 };
116 uint8_t blue[] = { 0x00, 0xff, 0x00, 0x00 };