diff options
author | DRC <dcommander@users.sourceforge.net> | 2011-08-17 02:27:59 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2011-08-17 02:27:59 +0000 |
commit | ffe09d68f578f6765ed73f3b2bf9d4ea37a0b66b (patch) | |
tree | 35a2d8caf9c4393a894b39a3f1e3a6a3748f02a2 /common/rfb/PixelTransformer.h | |
parent | 4c44600b9b8c0ca5b5bf078470cdc4c1b4fc2c48 (diff) | |
download | tigervnc-ffe09d68f578f6765ed73f3b2bf9d4ea37a0b66b.tar.gz tigervnc-ffe09d68f578f6765ed73f3b2bf9d4ea37a0b66b.zip |
Further optimizations to the Tight encoder to eliminate getImage() overhead. The encoder now directly accesses the framebuffer for solid rectangle computation, JPEG encoding, and color counting (if pixel translation is not required.) Also moved everything in tightEncode.h into the TightEncoder class to eliminate all of the static mess (this will be important later on if we decide to multi-thread the encoder.)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4631 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/PixelTransformer.h')
-rw-r--r-- | common/rfb/PixelTransformer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/rfb/PixelTransformer.h b/common/rfb/PixelTransformer.h index 54b05a5b..a368b63a 100644 --- a/common/rfb/PixelTransformer.h +++ b/common/rfb/PixelTransformer.h @@ -1,5 +1,6 @@ /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. * Copyright 2011 Pierre Ossman <ossman@cendio.se> for Cendio AB + * Copyright (C) 2011 D. R. Commander. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,6 +21,7 @@ #ifndef __RFB_PIXELTRANSFORMER_H__ #define __RFB_PIXELTRANSFORMER_H__ +#include <stdlib.h> #include <rfb/Rect.h> #include <rfb/PixelFormat.h> @@ -83,6 +85,8 @@ namespace rfb { void translateRect(void* inPtr, int inStride, Rect inRect, void* outPtr, int outStride, Point outCoord) const; + bool willTransform(void); + private: bool economic; |