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
diff --git a/common/rfb/PixelTransformer.cxx b/common/rfb/PixelTransformer.cxx
index 4c57d1b..ea43d9c 100644
--- a/common/rfb/PixelTransformer.cxx
+++ b/common/rfb/PixelTransformer.cxx
@@ -250,6 +250,26 @@
   }
 }
 
+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 b5ba8c0..54b05a5 100644
--- a/common/rfb/PixelTransformer.h
+++ b/common/rfb/PixelTransformer.h
@@ -54,6 +54,12 @@
               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