vncinput.hh (10839:10cac0f0f419) | vncinput.hh (11359:b0b976a1ceda) |
---|---|
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 | 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 |
|
55/** 56 * A device that expects to receive input from the vnc server should derrive 57 * (through mulitple inheritence if necessary from VncKeyboard or VncMouse 58 * and call setKeyboard() or setMouse() respectively on the vnc server. 59 */ 60class VncKeyboard 61{ 62 public: --- 151 unchanged lines hidden (view full) --- 214 215 /** Flag indicating whether to capture snapshots of frame buffer or not */ 216 bool captureEnabled; 217 218 /** Current frame number being captured to a file */ 219 int captureCurrentFrame; 220 221 /** Directory to store captured frames to */ | 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 */ |
222 std::string captureOutputDirectory; | 224 OutputDirectory *captureOutputDirectory; |
223 224 /** Computed hash of the last captured frame */ 225 uint64_t captureLastHash; 226 227 /** Cached bitmap object for writing out frame buffers to file */ 228 std::unique_ptr<Bitmap> captureBitmap; 229 230 /** Captures the current frame buffer to a file */ 231 void captureFrameBuffer(); 232}; 233#endif | 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 |