gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::BmpWriter Class Reference

#include <bmpwriter.hh>

Inheritance diagram for gem5::BmpWriter:
gem5::ImgWriter

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 FrameBufferfb
 

Detailed Description

Definition at line 54 of file bmpwriter.hh.

Member Typedef Documentation

◆ PixelType

Definition at line 128 of file bmpwriter.hh.

Constructor & Destructor Documentation

◆ BmpWriter()

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.

◆ ~BmpWriter()

gem5::BmpWriter::~BmpWriter ( )
inline

Definition at line 63 of file bmpwriter.hh.

Member Function Documentation

◆ getCompleteHeader()

const BmpWriter::CompleteV1Header gem5::BmpWriter::getCompleteHeader ( ) const
private

◆ getImgExtension()

const char * gem5::BmpWriter::getImgExtension ( ) const
inlineoverridevirtual

Implements gem5::ImgWriter.

Definition at line 70 of file bmpwriter.hh.

References _imgExtension.

◆ write()

void gem5::BmpWriter::write ( std::ostream & bmp) const
overridevirtual

Write the frame buffer data into the provided ostream.

Parameters
bmpstream 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().

Member Data Documentation

◆ _imgExtension

const char * gem5::BmpWriter::_imgExtension = "bmp"
staticprivate

Definition at line 130 of file bmpwriter.hh.

Referenced by getImgExtension().


The documentation for this class was generated from the following files:

Generated on Tue Jun 18 2024 16:24:10 for gem5 by doxygen 1.11.0