Go to the documentation of this file.
38 #ifndef __BASE_FRAMEBUFFER_HH__
39 #define __BASE_FRAMEBUFFER_HH__
201 #endif // __BASE_FRAMEBUFFER_HH__
static const FrameBuffer dummy
Static "dummy" frame buffer.
void clear()
Fill the frame buffer with black pixels.
std::vector< Pixel > pixels
Frame buffer backing store.
Configurable RGB pixel converter.
void copyIn(const uint8_t *fb, const PixelConverter &conv)
Fill the frame buffer with pixel data from an external buffer of the same width and height as this fr...
Basic support for object serialization.
unsigned _width
Width in pixels.
void resize(unsigned width, unsigned height)
Resize the frame buffer.
FrameBuffer()
Create an empty (0x0) frame buffer.
const Pixel & pixel(unsigned x, unsigned y) const
Get a pixel from an (x, y) coordinate.
Pixel & pixel(unsigned x, unsigned y)
Get a pixel from an (x, y) coordinate.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
unsigned area() const
Total number of pixels in frame buffer.
Internal gem5 representation of a Pixel.
void copyOut(std::vector< uint8_t > &fb, const PixelConverter &conv) const
Store the contents of this frame buffer in an external buffer of the same width and height as this fr...
void copyOut(uint8_t *fb, const PixelConverter &conv) const
Store the contents of this frame buffer in an external buffer of the same width and height as this fr...
void fill(const Pixel &pixel)
Fill the frame buffer with a single pixel value.
unsigned _height
Height in pixels.
void serialize(CheckpointOut &cp) const override
Serialize an object.
Internal gem5 representation of a frame buffer.
void copyIn(const std::vector< uint8_t > &fb, const PixelConverter &conv)
Fill the frame buffer with pixel data from an external buffer of the same width and height as this fr...
uint64_t getHash() const
Create a hash of the image that can be used for quick comparisons.
std::ostream CheckpointOut
unsigned width() const
Frame buffer width in pixels.
unsigned height() const
Frame buffer height in pixels.
Generated on Wed Sep 30 2020 14:02:07 for gem5 by doxygen 1.8.17