Go to the documentation of this file.
44 #include <sys/types.h>
50 #include "debug/VNC.hh"
57 _videoWidth(
fb->
width()), _videoHeight(
fb->height()),
58 captureEnabled(
p->frame_capture),
59 captureCurrentFrame(0), captureLastHash(0),
60 imgFormat(
p->img_format)
65 const string FRAME_OUTPUT_SUBDIR =
"frames_" +
name();
76 panic(
"Trying to VNC frame buffer to NULL!");
98 DPRINTF(VNC,
"Updating video params: width: %d height: %d\n",
123 char frameFilenameBuffer[64];
124 snprintf(frameFilenameBuffer, 64,
"fb.%06d.%lld.%s.gz",
127 const string frameFilename(frameFilenameBuffer);
139 VncInputParams::create()
OutputStream * create(const std::string &name, bool binary=false, bool no_gz=false)
Creates a file in this directory (optionally compressed).
OutputDirectory * createSubdirectory(const std::string &name)
Creates a subdirectory within this directory.
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.
std::ostream * stream() const
Get the output underlying output stream.
void close(OutputStream *file)
Closes an output file and free the corresponding OutputFile.
virtual const std::string name() const
Overload hash function for BasicBlockRange type.
Internal gem5 representation of a frame buffer.
uint64_t getHash() const
Create a hash of the image that can be used for quick comparisons.
unsigned width() const
Frame buffer width in pixels.
unsigned height() const
Frame buffer height in pixels.
void remove(const std::string &name, bool recursive=false)
Removes a specified file or subdirectory.
#define panic(...)
This implements a cprintf based panic() function.
Tick curTick()
The current simulated tick.
Abstract superclass for simulation objects.
Generated on Wed Sep 30 2020 14:02:08 for gem5 by doxygen 1.8.17