|
gem5
v21.0.1.0
|
#include <ostream>#include "base/compiler.hh"#include "base/framebuffer.hh"#include "enums/ImageFormat.hh"Go to the source code of this file.
Classes | |
| class | ImgWriter |
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, X86ISA::type, and warn.
Referenced by VncInput::setFrameBuffer().