From 62ea8a2b24b1f1090cd6ed1e9d728ee32cbb65a6 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 15 Jul 2011 08:26:18 +0000 Subject: 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 --- common/rfb/PixelTransformer.cxx | 20 ++++++++++++++++++++ common/rfb/PixelTransformer.h | 6 ++++++ 2 files changed, 26 insertions(+) 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 -- cgit v1.2.3