gem5  v20.1.0.0
Classes | Functions
pixel.hh File Reference
#include <cmath>
#include <cstdint>
#include <string>
#include <vector>
#include "base/compiler.hh"
#include "base/cprintf.hh"
#include "base/str.hh"
#include "base/types.hh"

Go to the source code of this file.

Classes

struct  Pixel
 Internal gem5 representation of a Pixel. More...
 
class  PixelConverter
 Configurable RGB pixel converter. More...
 
struct  PixelConverter::Channel
 Color channel conversion and scaling helper class. More...
 

Functions

bool operator== (const Pixel &lhs, const Pixel &rhs)
 
bool to_number (const std::string &value, Pixel &retval)
 
std::ostream & operator<< (std::ostream &os, const Pixel &pxl)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const Pixel pxl 
)
inline

Definition at line 223 of file pixel.hh.

References csprintf(), X86ISA::os, and PixelConverter::rgba8888_le.

◆ operator==()

bool operator== ( const Pixel lhs,
const Pixel rhs 
)
inline

Definition at line 69 of file pixel.hh.

References Pixel::blue, Pixel::green, Pixel::padding, and Pixel::red.

◆ to_number()

bool to_number ( const std::string &  value,
Pixel retval 
)
inline

Definition at line 212 of file pixel.hh.

References PixelConverter::rgba8888_le, and PixelConverter::toPixel().


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