38 #include <gtest/gtest.h> 46 TEST(FBTest, PixelConversionRGBA8888)
63 TEST(FBTest, PixelConversionRGB565)
74 TEST(FBTest, PixelToMemRGBA8888LE)
76 uint8_t
data[] = { 0xde, 0xad, 0xbe, 0xef };
99 TEST(FBTest, MemToPixelRGBA8888LE)
101 uint8_t
red[] = { 0xff, 0x00, 0x00, 0x00 };
102 uint8_t green[] = { 0x00, 0xff, 0x00, 0x00 };
103 uint8_t blue[] = { 0x00, 0x00, 0xff, 0x00 };
110 TEST(FBTest, MemToPixelRGBA8888BE)
112 uint8_t
red[] = { 0x00, 0x00, 0x00, 0xff };
113 uint8_t green[] = { 0x00, 0x00, 0xff, 0x00 };
114 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)