44 #include "config/use_png.hh" 51 std::unique_ptr<ImgWriter>
65 return std::unique_ptr<PngWriter>(
new PngWriter(fb));
68 return std::unique_ptr<BmpWriter>(
new BmpWriter(fb));
70 warn(
"Invalid Image Type specified, defaulting to Bitmap\n");
71 return std::unique_ptr<BmpWriter>(
new BmpWriter(fb));
Internal gem5 representation of a frame buffer.
std::unique_ptr< ImgWriter > createImgWriter(Enums::ImageFormat type, const FrameBuffer *fb)
Factory Function which allocates a ImgWriter object and returns a smart pointer to it...
Image writer implementing support for PNG.