summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-07-15 08:26:18 +0000
committerPierre Ossman <ossman@cendio.se>2011-07-15 08:26:18 +0000
commit62ea8a2b24b1f1090cd6ed1e9d728ee32cbb65a6 (patch)
treee3a1b10c6e607e9fe2a2fb8dd7ca4f6bb71cfaf7
parent470839a2d8687a671d55898e6b93ad07e5293e14 (diff)
downloadtigervnc-62ea8a2b24b1f1090cd6ed1e9d728ee32cbb65a6.tar.gz
tigervnc-62ea8a2b24b1f1090cd6ed1e9d728ee32cbb65a6.zip
Make it possible to query a PixelTransformer for the formats it is converting
between. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4591 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--common/rfb/PixelTransformer.cxx20
-rw-r--r--common/rfb/PixelTransformer.h6
2 files changed, 26 insertions, 0 deletions
diff --git a/common/rfb/PixelTransformer.cxx b/common/rfb/PixelTransformer.cxx
index 4c57d1b0..ea43d9c7 100644
--- a/common/rfb/PixelTransformer.cxx
+++ b/common/rfb/PixelTransformer.cxx
@@ -250,6 +250,26 @@ void PixelTransformer::init(const PixelFormat& inPF_, ColourMap* inCM_,
}
}
+const PixelFormat &PixelTransformer::getInPF() const
+{
+ return inPF;
+}
+
+const ColourMap *PixelTransformer::getInColourMap() const
+{
+ return inCM;
+}
+
+const PixelFormat &PixelTransformer::getOutPF() const
+{
+ return outPF;
+}
+
+const ColourCube *PixelTransformer::getOutColourCube() const
+{
+ return cube;
+}
+
void PixelTransformer::setColourMapEntries(int firstCol, int nCols)
{
if (nCols == 0)
diff --git a/common/rfb/PixelTransformer.h b/common/rfb/PixelTransformer.h
index b5ba8c0c..54b05a5b 100644
--- a/common/rfb/PixelTransformer.h
+++ b/common/rfb/PixelTransformer.h
@@ -54,6 +54,12 @@ namespace rfb {
const PixelFormat& outPF, ColourCube* cube = NULL,
setCMFnType cmCallback = NULL, void *cbData = NULL);
+ const PixelFormat &getInPF() const;
+ const ColourMap *getInColourMap() const;
+
+ const PixelFormat &getOutPF() const;
+ const ColourCube *getOutColourCube() const;
+
// setColourMapEntries() is called when the colour map specified to init()
// has changed. firstColour and nColours specify which part of the
// colour map has changed. If nColours is 0, this means the rest of the