gem5  v20.1.0.0
Functions | Variables
pixel.test.cc File Reference
#include <gtest/gtest.h>
#include "base/pixel.hh"

Go to the source code of this file.

Functions

 TEST (FBTest, PixelConversionRGBA8888)
 
 TEST (FBTest, PixelConversionRGB565)
 
 TEST (FBTest, PixelToMemRGBA8888LE)
 
 TEST (FBTest, MemToPixelRGBA8888LE)
 
 TEST (FBTest, MemToPixelRGBA8888BE)
 

Variables

static Pixel pixel_red (0xff, 0x00, 0x00)
 
static Pixel pixel_green (0x00, 0xff, 0x00)
 
static Pixel pixel_blue (0x00, 0x00, 0xff)
 

Function Documentation

◆ TEST() [1/5]

TEST ( FBTest  ,
MemToPixelRGBA8888BE   
)

◆ TEST() [2/5]

TEST ( FBTest  ,
MemToPixelRGBA8888LE   
)

◆ TEST() [3/5]

TEST ( FBTest  ,
PixelConversionRGB565   
)

Definition at line 63 of file pixel.test.cc.

References EXPECT_EQ, pixel_blue, pixel_green, pixel_red, and PixelConverter::rgb565_le.

◆ TEST() [4/5]

TEST ( FBTest  ,
PixelConversionRGBA8888   
)

Definition at line 46 of file pixel.test.cc.

References EXPECT_EQ, pixel_blue, pixel_green, pixel_red, and PixelConverter::rgba8888_le.

◆ TEST() [5/5]

TEST ( FBTest  ,
PixelToMemRGBA8888LE   
)

Variable Documentation

◆ pixel_blue

Pixel pixel_blue(0x00, 0x00, 0xff)
static

Referenced by TEST().

◆ pixel_green

Pixel pixel_green(0x00, 0xff, 0x00)
static

Referenced by TEST().

◆ pixel_red

Pixel pixel_red(0xff, 0x00, 0x00)
static

Referenced by TEST().


Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17