aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/RREEncoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/RREEncoder.h')
-rw-r--r--common/rfb/RREEncoder.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/common/rfb/RREEncoder.h b/common/rfb/RREEncoder.h
index c0de9995..b13135b4 100644
--- a/common/rfb/RREEncoder.h
+++ b/common/rfb/RREEncoder.h
@@ -1,5 +1,5 @@
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
- * Copyright 2014 Pierre Ossman for Cendio AB
+ * Copyright 2014-2022 Pierre Ossman for Cendio AB
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -33,7 +33,12 @@ namespace rfb {
virtual void writeRect(const PixelBuffer* pb, const Palette& palette);
virtual void writeSolidRect(int width, int height,
const PixelFormat& pf,
- const rdr::U8* colour);
+ const uint8_t* colour);
+ private:
+ template<class T>
+ inline void writePixel(rdr::OutStream* os, T pixel);
+ template<class T>
+ int rreEncode(T* data, int w, int h, rdr::OutStream* os, T bg);
private:
rdr::MemOutStream mos;
ManagedPixelBuffer bufferCopy;