|
gem5
v19.0.0.0
|
Color channel conversion and scaling helper class. More...
#include <pixel.hh>
Public Member Functions | |
| Channel (unsigned offset, unsigned width) | |
| uint8_t | toPixel (uint32_t word) const |
| Get the value of a single color channel represented as an 8-bit number. More... | |
| uint32_t | fromPixel (uint8_t ch) const |
| Convert an 8-bit representation of a color into an external format. More... | |
Public Attributes | |
| unsigned | offset |
| Offset in bits. More... | |
| unsigned | mask |
| Bit mask (after shifting) More... | |
| float | factor |
| Scaling factor when converting to the full range of an 8-bit color channel. More... | |
| PixelConverter::Channel::Channel | ( | unsigned | offset, |
| unsigned | width | ||
| ) |
|
inline |
Convert an 8-bit representation of a color into an external format.
Definition at line 114 of file pixel.hh.
References ArmISA::mask, and ArmISA::offset.
|
inline |
Get the value of a single color channel represented as an 8-bit number.
Definition at line 106 of file pixel.hh.
References ArmISA::mask.
| float PixelConverter::Channel::factor |
| unsigned PixelConverter::Channel::mask |
Bit mask (after shifting)
Definition at line 121 of file pixel.hh.
Referenced by VncServer::VncServer().
| unsigned PixelConverter::Channel::offset |