vncinput.cc (10839:10cac0f0f419) vncinput.cc (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

--- 109 unchanged lines hidden (view full) ---

118
119 // get the filename for the current frame
120 char frameFilenameBuffer[64];
121 snprintf(frameFilenameBuffer, 64, "fb.%06d.%lld.bmp.gz",
122 captureCurrentFrame, static_cast<long long int>(curTick()));
123 const string frameFilename(frameFilenameBuffer);
124
125 // create the compressed framebuffer file
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

--- 109 unchanged lines hidden (view full) ---

118
119 // get the filename for the current frame
120 char frameFilenameBuffer[64];
121 snprintf(frameFilenameBuffer, 64, "fb.%06d.%lld.bmp.gz",
122 captureCurrentFrame, static_cast<long long int>(curTick()));
123 const string frameFilename(frameFilenameBuffer);
124
125 // create the compressed framebuffer file
126 ostream *fb_out = simout.create(captureOutputDirectory + frameFilename,
127 true);
128 captureBitmap->write(*fb_out);
129 simout.close(fb_out);
126 OutputStream *fb_out(captureOutputDirectory->create(frameFilename, true));
127 captureBitmap->write(*fb_out->stream());
128 captureOutputDirectory->close(fb_out);
130
131 ++captureCurrentFrame;
132}
133
134// create the VNC Replayer object
135VncInput *
136VncInputParams::create()
137{
138 return new VncInput(this);
139}
129
130 ++captureCurrentFrame;
131}
132
133// create the VNC Replayer object
134VncInput *
135VncInputParams::create()
136{
137 return new VncInput(this);
138}