diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-01-20 15:05:21 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 14:50:11 +0200 |
commit | b6b4dc6487690e891ec2487c6cf765d36821fe3a (patch) | |
tree | 77d2e0f49461c7ff8fc78872c9763fe9b6f67adb /common/rfb/TransImageGetter.h | |
parent | bcc295e5a60954ff39b011d6a2cbdf052a0efafc (diff) | |
download | tigervnc-b6b4dc6487690e891ec2487c6cf765d36821fe3a.tar.gz tigervnc-b6b4dc6487690e891ec2487c6cf765d36821fe3a.zip |
Remove full support for colour maps
Gets rid of a loooot of code and complexity.
Colour map clients are still supported through an
automatically generated map, but we lose the ability to
develop a client or server that uses colour maps
internally.
Diffstat (limited to 'common/rfb/TransImageGetter.h')
-rw-r--r-- | common/rfb/TransImageGetter.h | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/common/rfb/TransImageGetter.h b/common/rfb/TransImageGetter.h index b241b83c..ec3a2c87 100644 --- a/common/rfb/TransImageGetter.h +++ b/common/rfb/TransImageGetter.h @@ -32,9 +32,7 @@ namespace rfb { class SMsgWriter; - class ColourMap; class PixelBuffer; - class ColourCube; class TransImageGetter : public ImageGetter, public PixelTransformer { @@ -45,25 +43,9 @@ namespace rfb { // init() is called to initialise the translation tables. The PixelBuffer // argument gives the source data and format details, outPF gives the - // client's pixel format. If the client has a colour map, then the writer - // argument is used to send a SetColourMapEntries message to the client. + // client's pixel format. - void init(PixelBuffer* pb, const PixelFormat& outPF, SMsgWriter* writer=0, - ColourCube* cube=0); - - // setColourMapEntries() is called when the PixelBuffer has a colour map - // which has changed. firstColour and nColours specify which part of the - // colour map has changed. If nColours is 0, this means the rest of the - // colour map. The PixelBuffer previously passed to init() must have a - // valid ColourMap object. If the client also has a colour map, then the - // writer argument is used to send a SetColourMapEntries message to the - // client. If the client is true colour then instead we update the - // internal translation table - in this case the caller should also make - // sure that the client receives an update of the relevant parts of the - // framebuffer (the simplest thing to do is just update the whole - // framebuffer, though it is possible to be smarter than this). - - void setColourMapEntries(int firstColour, int nColours); + void init(PixelBuffer* pb, const PixelFormat& outPF, SMsgWriter* writer=0); // getImage() gets the given rectangle of data from the PixelBuffer, // translates it into the client's pixel format and puts it in the buffer @@ -90,17 +72,12 @@ namespace rfb { void setOffset(const Point& offset_) { offset = offset_; } private: - static void cmCallback(int firstColour, int nColours, - ColourMap* cm, void* data); - - private: bool economic; PixelBuffer* pb; PixelFormat outPF; SMsgWriter* writer; rdr::U8* table; transFnType transFn; - ColourCube* cube; Point offset; }; } |