Go to the documentation of this file.
52 unsigned ro,
unsigned go,
unsigned bo,
53 unsigned rw,
unsigned gw,
unsigned bw,
54 ByteOrder _byte_order)
57 byte_order(_byte_order),
93 p[
i] = (
word >> (8 *
i)) & 0xFF;
Configurable RGB pixel converter.
static const PixelConverter rgb565_be
Predefined 16-bit RGB565 (red in least significant bits, big endian) conversion helper.
Channel(unsigned offset, unsigned width)
PixelConverter(unsigned length, unsigned ro, unsigned go, unsigned bo, unsigned rw, unsigned gw, unsigned bw, ByteOrder byte_order=ByteOrder::little)
static const PixelConverter rgba8888_le
Predefined 32-bit RGB (red in least significant bits, 8 bits/channel, little endian) conversion helpe...
ByteOrder byte_order
Byte order when stored to memory.
void writeWord(uint8_t *p, uint32_t word) const
Write a word of a given length and endianness to memory.
unsigned length
Bytes per pixel when stored in memory (including padding)
static const PixelConverter rgba8888_be
Predefined 32-bit RGB (red in least significant bits, 8 bits/channel, big endian) conversion helper.
static const PixelConverter rgb565_le
Predefined 16-bit RGB565 (red in least significant bits, little endian) conversion helper.
uint32_t readWord(const uint8_t *p) const
Read a word of a given length and endianness from memory.
Generated on Wed Sep 30 2020 14:02:07 for gem5 by doxygen 1.8.17