mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-07-22 08:31:13 +02:00
68 lines
2.1 KiB
C++
68 lines
2.1 KiB
C++
/* Copyright (C) 2025 Kasm Technologies Corp
|
|
*
|
|
* This is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This software is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this software; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
* USA.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "CConnection.h"
|
|
#include "CMsgReader.h"
|
|
#include "LogWriter.h"
|
|
|
|
extern "C" {
|
|
#include <libavutil/frame.h>
|
|
}
|
|
|
|
static rfb::LogWriter vlog("Benchmarking");
|
|
|
|
namespace benchmarking {
|
|
using namespace rfb;
|
|
|
|
class MockTestConnection : public CConnection {
|
|
public:
|
|
virtual void setNewFrame(const AVFrame *frame) = 0;
|
|
};
|
|
|
|
static constexpr rdr::S32 default_encodings[] = {
|
|
|
|
encodingTight,
|
|
encodingHextile,
|
|
encodingRRE,
|
|
encodingRaw,
|
|
pseudoEncodingQualityLevel0 + 6,
|
|
pseudoEncodingCompressLevel0 + 2,
|
|
pseudoEncodingDesktopSize,
|
|
pseudoEncodingLastRect,
|
|
pseudoEncodingQEMUKeyEvent,
|
|
pseudoEncodingExtendedDesktopSize,
|
|
pseudoEncodingFence,
|
|
pseudoEncodingContinuousUpdates,
|
|
pseudoEncodingDesktopName,
|
|
pseudoEncodingExtendedClipboard,
|
|
pseudoEncodingWEBP,
|
|
pseudoEncodingJpegVideoQualityLevel0 + 7,
|
|
pseudoEncodingWebpVideoQualityLevel0 + 7,
|
|
pseudoEncodingTreatLosslessLevel0 + 7,
|
|
pseudoEncodingDynamicQualityMinLevel0 + 4,
|
|
pseudoEncodingDynamicQualityMaxLevel0 + 9,
|
|
pseudoEncodingVideoAreaLevel1 - 1 + 65,
|
|
pseudoEncodingVideoTimeLevel0 + 5,
|
|
pseudoEncodingVideoOutTimeLevel1 - 1 + 3,
|
|
pseudoEncodingFrameRateLevel10 - 10 + 60,
|
|
pseudoEncodingMaxVideoResolution
|
|
};
|
|
}
|