50#include "debug/VNC.hh"
66 const std::string FRAME_OUTPUT_SUBDIR =
"frames_" +
name();
67 simout.remove(FRAME_OUTPUT_SUBDIR,
true);
77 panic(
"Trying to VNC frame buffer to NULL!");
95 const unsigned width(
fb->width());
96 const unsigned height(
fb->height());
99 DPRINTF(VNC,
"Updating video params: width: %d height: %d\n",
118 uint64_t new_hash =
fb->getHash();
124 char frameFilenameBuffer[64];
125 snprintf(frameFilenameBuffer, 64,
"fb.%06d.%lld.%s.gz",
128 const std::string frameFilename(frameFilenameBuffer);
Internal gem5 representation of a frame buffer.
virtual std::string name() const
std::ostream * stream() const
Get the output underlying output stream.
#define panic(...)
This implements a cprintf based panic() function.
SimObject(const Params &p)
Copyright (c) 2024 Arm Limited All rights reserved.
Tick curTick()
The universal simulation clock.
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.