gem5 v24.0.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. | |
~BmpWriter () | |
const char * | getImgExtension () const override |
void | write (std::ostream &bmp) const override |
Write the frame buffer data into the provided ostream. | |
Public Member Functions inherited from gem5::ImgWriter | |
ImgWriter (const FrameBuffer *_fb) | |
virtual | ~ImgWriter () |
Private Types | |
typedef BmpPixel32 | PixelType |
Private Member Functions | |
const CompleteV1Header | getCompleteHeader () const |
Static Private Attributes | |
static const char * | _imgExtension = "bmp" |
Additional Inherited Members | |
Protected Attributes inherited from gem5::ImgWriter | |
const FrameBuffer & | fb |
Definition at line 54 of file bmpwriter.hh.
|
private |
Definition at line 128 of file bmpwriter.hh.
gem5::BmpWriter::BmpWriter | ( | const FrameBuffer * | fb | ) |
Create a bitmap that takes data in a given mode & size and outputs to an ostream.
Definition at line 50 of file bmpwriter.cc.
|
inline |
Definition at line 63 of file bmpwriter.hh.
|
private |
Definition at line 56 of file bmpwriter.cc.
References gem5::FrameBuffer::area(), gem5::ImgWriter::fb, header, gem5::FrameBuffer::height(), and gem5::FrameBuffer::width().
Referenced by write().
|
inlineoverridevirtual |
|
overridevirtual |
Write the frame buffer data into the provided ostream.
bmp | stream to write to |
Implements gem5::ImgWriter.
Definition at line 89 of file bmpwriter.cc.
References gem5::ImgWriter::fb, getCompleteHeader(), header, gem5::FrameBuffer::height(), gem5::FrameBuffer::pixel(), gem5::FrameBuffer::width(), and gem5::RiscvISA::x.
Referenced by gem5::Pl111::dmaDone().
|
staticprivate |
Definition at line 130 of file bmpwriter.hh.
Referenced by getImgExtension().