gem5  v22.1.0.0
Classes | Public Member Functions | Private Types | Private Member Functions | Static Private Attributes | List of all members
gem5::BmpWriter Class Reference

#include <bmpwriter.hh>

Inheritance diagram for gem5::BmpWriter:


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 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()

gem5::BmpWriter::~BmpWriter ( )

Definition at line 63 of file bmpwriter.hh.

Member Function Documentation

◆ getCompleteHeader()

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

◆ getImgExtension()

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

Implements gem5::ImgWriter.

Definition at line 70 of file bmpwriter.hh.

References _imgExtension.

◆ write()

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

Write the frame buffer data into the provided ostream.

bmpstream to write to

Implements gem5::ImgWriter.

Definition at line 89 of file

References gem5::ImgWriter::fb, getCompleteHeader(), header, gem5::FrameBuffer::height(), gem5::FrameBuffer::pixel(), gem5::FrameBuffer::width(), and gem5::VegaISA::x.

Referenced by gem5::Pl111::dmaDone().

Member Data Documentation

◆ _imgExtension

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

Definition at line 130 of file bmpwriter.hh.

Referenced by getImgExtension().

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

Generated on Wed Dec 21 2022 10:23:11 for gem5 by doxygen 1.9.1