From 12fb1ca0b5f4ba139889e6005a4aed6d03467864 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Thu, 28 Sep 2017 13:01:08 +0100 Subject: 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 Reviewed-on: https://gem5-review.googlesource.com/5181 Reviewed-by: Jason Lowe-Power Maintainer: Andreas Sandberg --- src/dev/arm/hdlcd.hh | 4 ++-- src/dev/arm/pl111.hh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dev/arm') diff --git a/src/dev/arm/hdlcd.hh b/src/dev/arm/hdlcd.hh index ecfe1ea87..dd52e202c 100644 --- a/src/dev/arm/hdlcd.hh +++ b/src/dev/arm/hdlcd.hh @@ -79,7 +79,7 @@ #include #include -#include "base/bitmap.hh" +#include "base/bmpwriter.hh" #include "base/framebuffer.hh" #include "base/output.hh" #include "dev/arm/amba_device.hh" @@ -350,7 +350,7 @@ class HDLcd: public AmbaDmaDevice EventFunctionWrapper virtRefreshEvent; /** Helper to write out bitmaps */ - Bitmap bmp; + BmpWriter bmp; /** Picture of what the current frame buffer looks like */ OutputStream *pic; diff --git a/src/dev/arm/pl111.hh b/src/dev/arm/pl111.hh index a9189e9a1..3040ea72d 100644 --- a/src/dev/arm/pl111.hh +++ b/src/dev/arm/pl111.hh @@ -49,7 +49,7 @@ #include #include -#include "base/bitmap.hh" +#include "base/bmpwriter.hh" #include "base/framebuffer.hh" #include "base/output.hh" #include "dev/arm/amba_device.hh" @@ -266,7 +266,7 @@ class Pl111: public AmbaDmaDevice VncInput *vnc; /** Helper to write out bitmaps */ - Bitmap bmp; + BmpWriter bmp; /** Picture of what the current frame buffer looks like */ OutputStream *pic; -- cgit v1.2.3