diff options
author | Constantin Kaplinsky <const@tightvnc.com> | 2006-05-26 05:24:24 +0000 |
---|---|---|
committer | Constantin Kaplinsky <const@tightvnc.com> | 2006-05-26 05:24:24 +0000 |
commit | 1ae2eb0b58a028349d3857eb079cad389e67aa53 (patch) | |
tree | c78b2afa651d1d049651d3cdef46c588e113202e /common/rfb/ScaledPixelBuffer.h | |
parent | 3cb96488621541bc39562823e3f17dcf560f00b0 (diff) | |
download | tigervnc-1ae2eb0b58a028349d3857eb079cad389e67aa53.tar.gz tigervnc-1ae2eb0b58a028349d3857eb079cad389e67aa53.zip |
Merged the changes from revision range 582:588 into reorganized sources. These changes accidentally were not included in files copied during directory structure reorganization.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@594 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/ScaledPixelBuffer.h')
-rw-r--r-- | common/rfb/ScaledPixelBuffer.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/common/rfb/ScaledPixelBuffer.h b/common/rfb/ScaledPixelBuffer.h index 3b6aa7ef..d69f0ac1 100644 --- a/common/rfb/ScaledPixelBuffer.h +++ b/common/rfb/ScaledPixelBuffer.h @@ -24,6 +24,7 @@ #include <rdr/types.h> #include <rfb/Rect.h> +#include <rfb/PixelFormat.h> using namespace rdr; @@ -31,7 +32,7 @@ namespace rfb { class ScaledPixelBuffer { public: - ScaledPixelBuffer(U8 **data, int width, int height, int scale); + ScaledPixelBuffer(U8 **data, int width, int height, int scale, PixelFormat pf); ScaledPixelBuffer(); virtual ~ScaledPixelBuffer(); @@ -51,6 +52,9 @@ namespace rfb { // Set the new source buffer and its parameters void setSourceBuffer(U8 **src_data, int w, int h); + // Set the new pixel format + void setPF(const PixelFormat &pf); + // Set the new scale, in percent virtual void setScale(int scale); @@ -68,14 +72,12 @@ namespace rfb { // parameters (width, height, pixel format) void calculateScaledBufferSize(); - // Recreate the scaled pixel buffer - virtual void recreateScaledBuffer(); int src_width; int src_height; int scaled_width; int scaled_height; - int bpp; + PixelFormat pf; int scale; double scale_ratio; U8 **src_data; |