gem5  v22.0.0.1
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:


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)

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

Definition at line 64 of file pngwriter.hh.

Member Function Documentation

◆ getImgExtension()

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

Return Image format as a string.

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

Member Data Documentation

◆ _imgExtension

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

Definition at line 108 of file pngwriter.hh.

Referenced by getImgExtension().

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

Generated on Sat Jun 18 2022 08:13:20 for gem5 by doxygen 1.8.17