gem5  v20.1.0.0
Classes | Functions
imgwriter.hh File Reference
#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< ImgWritercreateImgWriter (Enums::ImageFormat type, const FrameBuffer *fb)
 Factory Function which allocates a ImgWriter object and returns a smart pointer to it. More...
 

Function Documentation

◆ createImgWriter()

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.

Parameters
typeImage writer type (e.g. Bitamp, Png)
fbPointer to a FrameBuffer object This contains the raw data which will be stored as an image when calling the appropriate object method
Returns
smart pointer to the allocated Image Writer

Definition at line 50 of file imgwriter.cc.

References ArmISA::fb, M5_FALLTHROUGH, type, and warn.

Referenced by VncInput::setFrameBuffer().


Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17