1/* 2 * Copyright (c) 2010, 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 38 unchanged lines hidden (view full) --- 47 48#include <iostream> 49#include <memory> 50 51#include "base/bitmap.hh" 52#include "params/VncInput.hh" 53#include "sim/sim_object.hh" 54 |
55class OutputDirectory; 56 |
57/** 58 * A device that expects to receive input from the vnc server should derrive 59 * (through mulitple inheritence if necessary from VncKeyboard or VncMouse 60 * and call setKeyboard() or setMouse() respectively on the vnc server. 61 */ 62class VncKeyboard 63{ 64 public: --- 151 unchanged lines hidden (view full) --- 216 217 /** Flag indicating whether to capture snapshots of frame buffer or not */ 218 bool captureEnabled; 219 220 /** Current frame number being captured to a file */ 221 int captureCurrentFrame; 222 223 /** Directory to store captured frames to */ |
224 OutputDirectory *captureOutputDirectory; |
225 226 /** Computed hash of the last captured frame */ 227 uint64_t captureLastHash; 228 229 /** Cached bitmap object for writing out frame buffers to file */ 230 std::unique_ptr<Bitmap> captureBitmap; 231 232 /** Captures the current frame buffer to a file */ 233 void captureFrameBuffer(); 234}; 235#endif |