40 #include <gtest/gtest.h> 48 TEST(FBTest, PixelConversionRGBA8888)
65 TEST(FBTest, PixelConversionRGB565)
76 TEST(FBTest, PixelToMemRGBA8888LE)
78 uint8_t
data[] = { 0xde, 0xad, 0xbe, 0xef };
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 };
static Pixel pixel_blue(0x00, 0x00, 0xff)
static Pixel pixel_green(0x00, 0xff, 0x00)
static const PixelConverter rgba8888_le
Predefined 32-bit RGB (red in least significant bits, 8 bits/channel, little endian) conversion helpe...
uint32_t fromPixel(const Pixel &pixel) const
Convert a Pixel into a color word.
static const PixelConverter rgb565_le
Predefined 16-bit RGB565 (red in least significant bits, little endian) conversion helper...
static Pixel pixel_red(0xff, 0x00, 0x00)
Internal gem5 representation of a Pixel.
static const PixelConverter rgba8888_be
Predefined 32-bit RGB (red in least significant bits, 8 bits/channel, big endian) conversion helper...
#define EXPECT_EQ(lhs, rhs)
A macro which verifies that lhs and rhs are equal to each other.
TEST(FBTest, PixelConversionRGBA8888)