gem5
v20.1.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. 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 ImgWriter | |
ImgWriter (const FrameBuffer *_fb) | |
virtual | ~ImgWriter () |
Private Types | |
typedef PngPixel24 | PixelType |
Private Attributes | |
struct PngWriter::PngPixel24 | M5_ATTR_PACKED |
Static Private Attributes | |
static const char * | _imgExtension = "png" |
Additional Inherited Members | |
Protected Attributes inherited from ImgWriter | |
const FrameBuffer & | fb |
Image writer implementing support for PNG.
Definition at line 50 of file pngwriter.hh.
|
private |
Definition at line 100 of file pngwriter.hh.
|
inline |
Create a png that takes data in a given mode & size and outputs to an ostream.
Definition at line 57 of file pngwriter.hh.
|
inline |
Definition at line 61 of file pngwriter.hh.
|
inlineoverridevirtual |
Return Image format as a string.
Implements ImgWriter.
Definition at line 68 of file pngwriter.hh.
References _imgExtension.
|
overridevirtual |
Write the frame buffer data into the provided ostream.
png | stream to write to |
Implements ImgWriter.
Definition at line 112 of file pngwriter.cc.
References FrameBuffer::area(), ImgWriter::fb, FrameBuffer::height(), FrameBuffer::pixel(), PngWriter::PngStructHandle::pngInfoP, PngWriter::PngStructHandle::pngWriteP, warn, ArmISA::width, FrameBuffer::width(), writePng(), and RiscvISA::x.
|
staticprivate |
Definition at line 104 of file pngwriter.hh.
Referenced by getImgExtension().
|
private |