gem5 v24.0.0.0
|
Image writer implementing support for PNG. More...
#include <pngwriter.hh>
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. | |
~PngWriter () | |
const char * | getImgExtension () const override |
Return Image format as a string. | |
void | write (std::ostream &png) 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 PngPixel24 | PixelType |
Static Private Attributes | |
static const char * | _imgExtension = "png" |
Additional Inherited Members | |
Protected Attributes inherited from gem5::ImgWriter | |
const FrameBuffer & | fb |
Image writer implementing support for PNG.
Definition at line 53 of file pngwriter.hh.
|
private |
Definition at line 106 of file pngwriter.hh.
|
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.
|
inline |
Definition at line 64 of file pngwriter.hh.
|
inlineoverridevirtual |
Return Image format as a string.
Implements gem5::ImgWriter.
Definition at line 71 of file pngwriter.hh.
References _imgExtension.
|
overridevirtual |
Write the frame buffer data into the provided ostream.
png | stream to write to |
Implements gem5::ImgWriter.
Definition at line 116 of file pngwriter.cc.
References gem5::FrameBuffer::area(), gem5::ImgWriter::fb, gem5::FrameBuffer::height(), gem5::FrameBuffer::pixel(), gem5::PngWriter::PngStructHandle::pngInfoP, gem5::PngWriter::PngStructHandle::pngWriteP, warn, gem5::ArmISA::width, gem5::FrameBuffer::width(), gem5::writePng(), and gem5::RiscvISA::x.
|
staticprivate |
Definition at line 108 of file pngwriter.hh.
Referenced by getImgExtension().