gem5
v20.1.0.0
|
#include "base/imgwriter.hh"
#include "base/bmpwriter.hh"
#include "base/logging.hh"
#include "config/use_png.hh"
Go to the source code of this file.
Functions | |
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. More... | |
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.
The dynamic type of the object being pointed depends upon the enum type passed as a first parameter. If the enum contains an invalid value, the function will produce a warning and will default to Bitamp.
type | Image writer type (e.g. Bitamp, Png) |
fb | Pointer to a FrameBuffer object This contains the raw data which will be stored as an image when calling the appropriate object method |
Definition at line 50 of file imgwriter.cc.
References ArmISA::fb, M5_FALLTHROUGH, type, and warn.
Referenced by VncInput::setFrameBuffer().