gem5  v21.1.0.2
Classes | Public Member Functions | Private Types | Static Private Attributes | List of all members
gem5::PngWriter Class Reference

Image writer implementing support for PNG. More...

#include <pngwriter.hh>

Inheritance diagram for gem5::PngWriter:
gem5::ImgWriter

Classes

struct  PngPixel24
 Png Pixel type: not containing padding. More...
 
struct  PngStructHandle
 

Public Member Functions

 PngWriter (const FrameBuffer *_fb)
 Create a png that takes data in a given mode & size and outputs to an ostream. More...
 
 ~PngWriter ()
 
const char * getImgExtension () const override
 Return Image format as a string. More...
 
void write (std::ostream &png) 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 PngPixel24 PixelType
 

Static Private Attributes

static const char * _imgExtension = "png"
 

Additional Inherited Members

- Protected Attributes inherited from gem5::ImgWriter
const FrameBufferfb
 

Detailed Description

Image writer implementing support for PNG.

Definition at line 53 of file pngwriter.hh.

Member Typedef Documentation

◆ PixelType

Definition at line 104 of file pngwriter.hh.

Constructor & Destructor Documentation

◆ PngWriter()

gem5::PngWriter::PngWriter ( const FrameBuffer _fb)
inline

Create a png that takes data in a given mode & size and outputs to an ostream.

Definition at line 60 of file pngwriter.hh.

◆ ~PngWriter()

gem5::PngWriter::~PngWriter ( )
inline

Definition at line 64 of file pngwriter.hh.

Member Function Documentation

◆ getImgExtension()

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

Return Image format as a string.

Returns
img extension (e.g. .png for Png)

Implements gem5::ImgWriter.

Definition at line 71 of file pngwriter.hh.

References _imgExtension.

◆ write()

void gem5::PngWriter::write ( std::ostream &  png) const
overridevirtual

Member Data Documentation

◆ _imgExtension

const char * gem5::PngWriter::_imgExtension = "png"
staticprivate

Definition at line 108 of file pngwriter.hh.

Referenced by getImgExtension().


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

Generated on Tue Sep 21 2021 12:27:58 for gem5 by doxygen 1.8.17