diff options
author | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2017-09-28 13:01:08 +0100 |
---|---|---|
committer | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2017-10-31 11:17:29 +0000 |
commit | 12fb1ca0b5f4ba139889e6005a4aed6d03467864 (patch) | |
tree | 455740b7e0cc3cf8e088a2473ef1c7f9b9814d30 /src/base/vnc/Vnc.py | |
parent | 1025ef1598b8b7c3d00b82d30458e375697b8eff (diff) | |
download | gem5-12fb1ca0b5f4ba139889e6005a4aed6d03467864.tar.xz |
base: Introducing utility for writing raw data in png format
Originally it was possible to use a Bitmap writer class for dumping a
framebuffer snapshot in a .bmp file. This patch enables you to choose
another format. In particular it implements the writing of PNG Images
using libpng library. The latter has to be already installed in your
machine, otherwise gem5 will default to the Bitmap format. This
configurable writer has been introduced in the VNC frame dumping mechanism,
which is storing changed frame buffers from the VNC server
Change-Id: Id7e5763c82235f1ce90381c8486b85a7cce734ce
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/5181
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/base/vnc/Vnc.py')
-rw-r--r-- | src/base/vnc/Vnc.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/vnc/Vnc.py b/src/base/vnc/Vnc.py index a7faefb41..0aed0dc84 100644 --- a/src/base/vnc/Vnc.py +++ b/src/base/vnc/Vnc.py @@ -37,11 +37,16 @@ from m5.SimObject import SimObject from m5.params import * +from Graphics import * + class VncInput(SimObject): type = 'VncInput' cxx_header = "base/vnc/vncinput.hh" frame_capture = Param.Bool(False, "capture changed frames to files") + img_format = Param.ImageFormat( + "Bitmap", "Format of the dumped Framebuffer" + ) class VncServer(VncInput): type = 'VncServer' |