gem5
v20.1.0.0
|
#include <bmpwriter.hh>
Classes | |
struct | BmpPixel32 |
struct | CompleteV1Header |
struct | FileHeader |
struct | InfoHeaderV1 |
Public Member Functions | |
BmpWriter (const FrameBuffer *fb) | |
Create a bitmap that takes data in a given mode & size and outputs to an ostream. More... | |
~BmpWriter () | |
const char * | getImgExtension () const override |
void | write (std::ostream &bmp) const override |
Write the frame buffer data into the provided ostream. More... | |
Public Member Functions inherited from ImgWriter | |
ImgWriter (const FrameBuffer *_fb) | |
virtual | ~ImgWriter () |
Private Types | |
typedef BmpPixel32 | PixelType |
Private Member Functions | |
const CompleteV1Header | getCompleteHeader () const |
Private Attributes | |
struct BmpWriter::FileHeader | M5_ATTR_PACKED |
struct BmpWriter::InfoHeaderV1 | M5_ATTR_PACKED |
struct BmpWriter::CompleteV1Header | M5_ATTR_PACKED |
struct BmpWriter::BmpPixel32 | M5_ATTR_PACKED |
Static Private Attributes | |
static const char * | _imgExtension = "bmp" |
Additional Inherited Members | |
Protected Attributes inherited from ImgWriter | |
const FrameBuffer & | fb |
Definition at line 51 of file bmpwriter.hh.
|
private |
Definition at line 120 of file bmpwriter.hh.
BmpWriter::BmpWriter | ( | const FrameBuffer * | fb | ) |
Create a bitmap that takes data in a given mode & size and outputs to an ostream.
Definition at line 47 of file bmpwriter.cc.
|
inline |
Definition at line 60 of file bmpwriter.hh.
|
private |
Definition at line 53 of file bmpwriter.cc.
References FrameBuffer::area(), ImgWriter::fb, header, FrameBuffer::height(), and FrameBuffer::width().
Referenced by write().
|
inlineoverridevirtual |
|
overridevirtual |
Write the frame buffer data into the provided ostream.
bmp | stream to write to |
Implements ImgWriter.
Definition at line 86 of file bmpwriter.cc.
References ImgWriter::fb, getCompleteHeader(), header, FrameBuffer::height(), FrameBuffer::pixel(), FrameBuffer::width(), and RiscvISA::x.
Referenced by Pl111::dmaDone().
|
staticprivate |
Definition at line 122 of file bmpwriter.hh.
Referenced by getImgExtension().
|
private |
|
private |
|
private |
|
private |